变量定义错误

reason: '[<MLDataModel 0xb586180> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key IsAdmin.’

将MLDataModel中变量IsAdmin
从定义

@property (nonatomic, assign)BOOL *IsAdmin;

改为

@property (nonatomic,copy)NSString *IsAdmin;
    原文作者:Dean
    原文地址: https://segmentfault.com/a/1190000000652393
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞