现在的位置: 首页 > 综合 > 正文

ios 设备 系统 版本 判断

2017年12月09日 ⁄ 综合 ⁄ 共 207字 ⁄ 字号 评论关闭
float system_version =  [[[UIDevice currentDevice] systemVersion] floatValue];
可以定义一个全局的变量,或者在公共类里面进行定义;
float system_version;

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


抱歉!评论已关闭.