我可以阻止iPhone OS 3.x应用程序在2.x OS上运行吗? [英] Can I prevent an iPhone OS 3.x app from running on 2.x OS?
问题描述
我不希望我的应用程序在3.0之前的任何操作系统的iPhone或iPod上运行.我的印象是App Store会为我照顾它,但我认为情况并非如此.
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.
提醒用户然后退出的最佳方法是什么?最好是,我希望这种情况在用户购买我的应用程序之前发生,但是如果事实是用户拥有我的应用程序以及旧的iPod或iPhone,则需要防止该应用程序崩溃.
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.
推荐答案
您可以检查
float version = [[[UIDevice currentDevice] systemVersion] floatValue];
,然后显示UIAlertView.但是该应用程序甚至无法启动,因为您在项目设置中设置了操作系统要求.
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.
这篇关于我可以阻止iPhone OS 3.x应用程序在2.x OS上运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!