Fix iOS 7 deprecation warning.