判断app安装版本和服务器比较

-(void)judgeAPPVersion:(NSString *)strVersion
{

NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
NSString *currentVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];

if (strVersion != nil && strVersion.length > 0) {
    //当前iOS版本小于服务器版本
    if ([currentVersion compare:strVersion] == NSOrderedAscending) {
    }
}

}

你可能感兴趣的:(判断app安装版本和服务器比较)