Edited to remove deprecated methods for ios 6.1

...lity remains the same but errors in XCode do not show up anymore for iOS 6.1