Adding support for iOS 6