Replace APIs & constants deprecated in iOS 6