2018-08-09上线版本号的比对

上线版本号的比对,要求后台返回字符串

//    NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
//    NSString *vison = infoDict[@"CFBundleVersion"];
    NSString *vison = @"1.2.5";
    NSString *vison2 = @"2.0";
    if ([vison compare:vison2 options:NSNumericSearch] == NSOrderedDescending)
    {
        JMLog(@"%@ is bigger",vison);
    }
    else
    {
        JMLog(@"%@ is bigger",vison2);
    }

你可能感兴趣的:(2018-08-09上线版本号的比对)