Value inversion for iOS and Blackberry