在运行收到此错误后,我正在尝试解析 json 并定位到 UITableView:
Error [IRForTarget]: Couldn't find Objective-C indirect
ivar symbol OBJC_IVAR_$_UITableView._headerFooterNibMap
调试,但我找不到任何可靠的修复。
编辑:
我跟踪了代码,发现它在 initWithNibName 方法上给了我错误
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.title = NSLocalizedString(@tabBarTitle, @tabBarTitle);
self.tabBarItem.image = [UIImage imageNamed:@tabBarIcon];
}
return self;
}