Thursday, December 16, 2010

How to target a specific iPhone version?

 
 
float version = [[[UIDevice currentDevice] systemVersion] floatValue];
if (version >= 3.0)
    {
    // iPhone 3.0 code here
    }

No comments:

Post a Comment