Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Svinja

macrumors newbie
Original poster
Hi,
is it possible to detect OS version currently running on Iphone in code?

I have a problem which works fine with 2.2.1 version but it doesnt with 3.0(Status bar bug fixed). I need to compile application on 2.2.1 so it can work both on OS 2.2 and 3.0. Thx for your help!
 
Thank you! Didnt know UIDevice exists...
solution is:
float version = [[[UIDevice currentDevice] systemVersion] floatValue];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.