判断版本号

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) { }

原文地址:https://www.cnblogs.com/huoran1120/p/5533296.html