Dealt with iOS 7 deprecations