« 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
September 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      
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