Fixed a deprecation warning when building for iOS 7.0+