Add iOS 6 support