Fixed depreciated warnings

Updated methods and properties for iOS6. Those numerous XCode warnings were driving me nuts.