iOS 5.0 above adapt