« Rick's Financial TricksiPhone SDK Snippets »

Compile iPhone Apps Targeting iPhone OS 3.0

05/20/09

Permalink 09:42:42 am, by rekle Email , 52 words   English (US)
Categories: iPhone

Compile iPhone Apps Targeting iPhone OS 3.0

Here's a quick tip for if you want to have an iPhone application that targets both an earlier version of the iPhone OS and the new iPhone OS 3.0. Juse use the __IPHONE_3_0 precompiler define to compile specific code for iPhone 3.0. i.e.

#ifdef __IPHONE_3_0
// iPhone 3.0 specific stuff
#else
// iPhone 2.2 specific stuff
#endif

1 comment

Comment from: bodaay [Visitor]
Thanks I was looking for this :)
06/13/09 @ 09:55

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
March 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Copyright © 2005 - 2010, Rick Ekle

Comments? Contact me at rick@ekle.us or visit me on Twitter at @rekle

Search

XML Feeds

User tools

blog engine