简体   繁体   English

查找应用程序可以运行的iOS版本?

[英]Find what versions of iOS an app can run on?

I'm fairly novice to iOS programming(well, very novice...). 我是iOS编程的新手(好吧,非常新手......)。 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? 无论如何,在我开始深入研究我的应用程序编码之前,有没有办法检查它将运行哪些iOS版本? I'm probably missing something obvious, but I am aiming to make it run on all 4.0 devices to the most current devices. 我可能错过了一些明显的东西,但我的目标是让它在所有4.0设备上运行到最新设备。 I just want to make sure I don't use a library or something that is only supported on iOS 5.0 or something. 我只是想确保我不使用只在iOS 5.0或其他东西上支持的库或其他东西。

You'll can set the “Base SDK” in your projects settings to the version of iOS that you want to target. 您可以将项目设置中的“Base SDK”设置为要定位的iOS版本。 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. 至于无意中使用以前iOS版本中未定义的功能,请注意您的警告 - 它会告诉您是否使用了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. 如果您在开始开发之前确定希望应用程序使用哪些iOS版本,则可以更轻松地完成此操作。 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. 每个框架都有不同支持的iOS版本,您在编程时必须记住这些版本,例如,如果您想创建一个使用新的集成Twitter框架(iOS 5+)的应用程序,您必须将部署目标设置为只有iOS设备运行5.0及更高版本,或者你可以编码检测来检查设备运行的iOS版本,在这种情况下,大致......如果iOS> = 5.0使用twitter,如果iOS <5不使用twitter。

Right click on the Projekt --> Get Info : There you can see the iOS version of your project. 右键单击Projekt - >获取信息:在那里,您可以看到项目的iOS版本。 (latest ios Version) (最新的ios版本)

greez greez

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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