美文网首页
判断app安装版本和服务器比较

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

作者: 斑驳的流年无法释怀 | 来源:发表于2017-04-28 10:43 被阅读24次

    -(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安装版本和服务器比较

          本文链接:https://www.haomeiwen.com/subject/epuozttx.html