Updating deprecated methods when going iOS 7 only.