double version = [[UIDevice currentDevice].systemVersion doubleValue];
ios系统版本判断
原文:http://5828666.blog.51cto.com/5818666/1569055