简体   繁体   中英

Find what versions of iOS an app can run on?

I'm fairly novice to iOS programming(well, very novice...). Anyways, before I start getting too in-depth with the coding of my app, is there a way to check which iOS versions it will run on? I'm probably missing something obvious, but I am aiming to make it run on all 4.0 devices to the most current devices. I just want to make sure I don't use a library or something that is only supported on iOS 5.0 or something.

You'll can set the “Base SDK” in your projects settings to the version of iOS that you want to target. As far as inadvertently using functionality not defined in previous iOS versions, pay attention to your warnings - It will tell you if you're using something not defined in iOS 4.

This is something that is done more easily if you decide what iOS versions you want the app to work on before you start development. Every framework has different supported iOS versions that you will have to keep in mind while programming, for example, if you wanted to make an app that utilized the new integrated Twitter framework (iOS 5+) you would have to either set your deployment target to only iOS devices running 5.0 and above, or you could code detection to check what iOS version the device is running and in this case, roughly... if iOS >=5.0 use twitter, and if iOS < 5 don't use twitter.

Right click on the Projekt --> Get Info : There you can see the iOS version of your project. (latest ios Version)

greez

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM