views:

63

answers:

1

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.

+3  A: 

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.

Henrik P. Hessel
I had one bug report of the user seeing the Default.png and then the app quit. He said he was using an older 8G iPod Touch. I am just wondering if he had 2.x and got as far as the Default.png. It is really too bad that I can't downgrade my iPhone or the Simulator to 2.x so I can test this.
mahboudz