Try another fix to support both iOS 5+ and iOS 6+ deployment targets

http://stackoverflow.com/a/24846028/1049134