correctly check ios version
Merge pull request #280 from timothyjasonwilliams/0.7

correctly check ios version