IPHONEAPP-3987 iOS 7 deprecation fixes

Updated to ios6.  Not sure if others use this library.