Fixed deprectated methods for iOS 7.0 SDK compatability