且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以阻止iPhone OS 3.x应用程序在2.x OS上运行吗?

更新时间:2023-09-30 09:47:40

您可以检查

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.