Re: what iPhone system am I running on?
Re: what iPhone system am I running on?
- Subject: Re: what iPhone system am I running on?
- From: "Hank Heijink (Mailinglists)" <email@hidden>
- Date: Tue, 22 Jun 2010 21:55:36 -0400
On Jun 22, 2010, at 6:10 PM, Matt Neuburg wrote:
> How do I check what version of the system I'm running on under iOS? I want
> to register for UIApplicationWillEnterForegroundNotification if I'm running
> on 4.0, but I crash if I try to do this on 3.2... This can't be done with
> conditional compilation; it's got to be some sort of runtime check.
> NSFoundationVersionNumber doesn't seem to go high enough. Thx - m.
I ran into the same thing. This is the solution:
if (&UIApplicationWillEnterForegroundNotification != NULL) {
...register...
}
Best,
Hank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden