我仍然是目标-c的新手。我还有其他一切工作,但我无法绕过这个登录屏幕atm。
我可以登录,但之后,我的应用程序崩溃,我收到此错误:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
但是没有登录屏幕,它可以正常工作。我的故事板看起来像这样:
有人能伸出援手吗?
答案 0 :(得分:0)
问题不在您的登录屏幕内,而是在MasterViewController
。对于某些断点,您应该看到您的当前控制器已分配,可能会调用它viewDidLoad
。
但是在tableView的委托实现的某些方法(可能是cellForRowAtIndexPath:
)中你的代码崩溃了。确保正确实现tableView的方法,在XIB / Storyboard中使用单元格的标识符(或使用registerClass:forCellReuseIdentifier:
方法注册等。
此链接可以帮助您解决问题:Why am I getting an error about being unable to dequeue when my UITableView tries to load?