如果在模型中添加要使用的属性,比如:
@property (nonatomic) BOOL isHpot;
运行时会发生这样的错误:table gyoshadetail has no column named isHpot
在数据表中不存在这样的column 。
可以换成另外一种方法:
- (BOOL)isHpot;
- (void)setIsHpot:(BOOL)isHpot;
如果在模型中添加要使用的属性,比如:
@property (nonatomic) BOOL isHpot;
运行时会发生这样的错误:table gyoshadetail has no column named isHpot
在数据表中不存在这样的column 。
可以换成另外一种方法:
- (BOOL)isHpot;
- (void)setIsHpot:(BOOL)isHpot;