Removing deprecated methods in iOS 7.