Can I prevent an iPhone OS 3.x app from running on 2.x OS?

╄→гoц情女王★ 提交于 2019-12-02 02:47:56

问题


I don't want my app to run on an iPhone or iPod with any OS prior to 3.0. I was under the impression that the App store would take care of it for me, but I don't think that is the case.

What is the best way to alert the user and then quit? Preferably, I'd like this to happen before the user purchases my app, but if the fact is that a user has my app, and an old iPod or iPhone, I need to keep the app from crashing.


回答1:


You can check for

float version = [[[UIDevice currentDevice] systemVersion] floatValue];

and then display a UIAlertView. But the App won't even start, because OS requirement you set in your project settings.

But remember: The User will be still able to download it.



来源:https://stackoverflow.com/questions/2054963/can-i-prevent-an-iphone-os-3-x-app-from-running-on-2-x-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!