变量定义错误

253 查看

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;