iOS 7 and 6 detection