Changed iOS version checking to precompiler #ifs

This stops the Xcode warning when building the app