转载自:http://tr4work.blog.163.com/blog/static/137149314201101510715725/

iphone开发技术 - 获取iOS系统版本  

NSLog([[UIDevice currentDevice] name]); // Name of the phone as named by user 

NSLog([[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string 

NSLog([[UIDevice currentDevice] systemName]); // "iPhone OS" 

NSLog([[UIDevice currentDevice] systemVersion]); // "2.2.1" 

NSLog([[UIDevice currentDevice] model]); // "iPhone" on both devices 

NSLog([[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices 

float version = [[[UIDevice currentDevice] systemVersion] floatValue];