fix for iOS < 7.
fixes #6 toggle switch support