detect ios 6 and below