//处理4.4.3变成4.43
- (CGFloat )systemVersion:(NSString *)verSionStr{
NSRange fRange = [verSionStrrangeOfString:@"."];
CGFloat version =0.0f;
if(fRange.location !=NSNotFound){
verSionStr = [verSionStr stringByReplacingOccurrencesOfString:@"."withString:@""];
NSMutableString *mVersion = [NSMutableStringstringWithString:verSionStr];
[mVersion insertString:@"."atIndex:fRange.location];
version = [mVersion floatValue];
}else {
version = [verSionStr floatValue];
}
return version;
}
//版本更新 本地版本小于服务器版本
([self systemVersion:[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey]]<[self systemVersion:[completedOperation.responseJSON objectForKey:@"result"]]) {