if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) { } 转载于:https://www.cnblogs.com/dingzhijie/p/6600727.html