Changed iOS version checking to precompiler #ifs

This stops the Xcode warning when building the app
Merge pull request #131 from KiranPanesar/master

Changed iOS version checking to precompiler #ifs