Got rid of deprecated methods and replaced them with new ones, functionality remains the same but errors in XCode do not show up anymore for iOS 6.1