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

2019-02-26 22:51发布

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条回答
Summer. ? 凉城
2楼-- · 2019-02-26 23:12

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.

alt text

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

查看更多
登录 后发表回答