Fixed 2 deprecation warnings.  These calls are now deprecated in iOS 6