iphone - compiler conditionals

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-03-12T02:20:56Z Indexed on 2010/03/12 2:27 UTC
Read the original article Hit count: 493

Filed under:
|
|
|

Two questions:

this code

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

compiles specific codes for specific versions of the iPhone. How could this be transformed to compile for a range of devices? For example: if iphone version < 3.1 or if version >= 3.2, and so one...

2) where do I get a list of all conditionals allowed by Xcode?

thanks for any help.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk