ios 设备 系统 版本 判断

float system_version =  [[[UIDevice currentDevice] systemVersion] floatValue];
可以定义一个全局的变量,或者在公共类里面进行定义;
float system_version;

- (void) getSystemVersion {
	system_version =  [[[UIDevice currentDevice] systemVersion] floatValue];
}



posted @ 2013-01-14 16:33  沙影无痕  阅读(136)  评论(0编辑  收藏  举报