how to run my iphone 2.0 app in iphone os 2.0 and also 3.0 and above os

Posted by Rahul Vyas on Stack Overflow See other posts from Stack Overflow or by Rahul Vyas
Published on 2009-09-23T06:18:57Z Indexed on 2010/03/18 23:21 UTC
Read the original article Hit count: 420

i have iphone with os ver. 2.0 i read that for app store all appplication must be run 3.0 os.so how could i make my application to run in both firmware.is there a way i can detect if os ver.>3.0 then run different statments alse run statments for lower than 3.0 os.currently i am using this.

#if __IPHONE_3_0
cell.textLabel.text=cellValue;
[cell.textLabel setFont:[UIFont systemFontOfSize:15.0]];
[cell.textLabel setLineBreakMode:UILineBreakModeTailTruncation];
#else
cell.text=cellValue;	
[cell setFont:[UIFont systemFontOfSize:15.0]];
[cell setLineBreakMode:UILineBreakModeTailTruncation];	
#endif

will it run on both firmware

i want to make my app to be run on >=3.0 os and lower than this...please help me

how do i check my application for deprecated methods...i can only see this line as deprecated cell.text=cellValue;

is there anything to change.i have installed new sdk named iphone_sdk_3.0__leopard__9m2736__final.dmg

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode