Method for detecting iOS version. Terrible hack.