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