Removing deprecated warnings for iOS 7.