S.P*_*.P. 6 iphone core-data objective-c
我正在使用mogenerator.我收到CoreData错误如下:
无法在NSManagedObject类'ClassName'上调用指定的初始值设定项.
有人请帮我解决这个错误.
Mar*_*arc 16
不要分配/初始化你已经掌握的东西......这就是原因!
在cellForRowAtIndexPath中使用的示例
使用
ClassName *class = [arrayOfSomething objectAtIndex:indexPath.row];
代替
ClassName *class = [ClassName alloc] init];
class = [arrayOfSomething objectAtIndex:indexPath.row]
| 归档时间: |
|
| 查看次数: |
10008 次 |
| 最近记录: |