if([[UIDevice currentDevice].systemVersion doubleValue]>=7.0)io
{vi
//是IOS7至以上版本版本
}else{
//IOS7如下版本
}