iOS如何接收服务端返回的布尔值

    if ([user[@"chat"] boolValue]) {
            userModel.chat = 1;
        }else {
            userModel.chat = 0;
        }

关键是要调用boolValue,   直接接收的话值是不对的

posted on 2018-03-09 17:27  土匪7  阅读(245)  评论(0编辑  收藏  举报