Fixed iOS 7 compatibility issue

Added code to detect the device OS version and configure the width accordingly. 7.0f for iOS 7 or below and 3.5 for iOS 7 and above.