變量定義錯誤

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;
發佈了96 篇原創文章 · 獲贊 2 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章