• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what iPhone system am I running on?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >what iPhone system am I running on? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: GenerateDSYMFile Invalid DWARF error
  • Next by Date: Compile a Single Class?
  • Previous by thread: Re: what iPhone system am I running on?
  • Next by thread: regression in the debugger 3.2.3
  • Index(es):
    • Date
    • Thread