I'm implementing a PFQueryTableView
controller via storyboard. I've followed the right methods in actually implementing the code (using initWithCoder:
). But whenever I try to run the app it breaks at the PFQueryTableViewController.m
file; specifically at the loadView
method. It breaks at [super loadView]
. Anyone else encounter this problem?
Edit: When I remove the breakpoint I get the following error: 2015-02-10 14:31:52.208 TokenApp[1234:27812] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "94a-xH-nEI-view-RYC-1K-mIS" nib but didn't get a UITableView.
I'm think it's complaining because it's wanting a nib, but I'm not actually using a nib.
The root view of your view controller needs to be a UITableView
.
You can recreate your controller using the UITableViewController
template.
Alternatively, you can manually edit your .storyboard
file and change the relevant <view …>
and </view>
tags to say <tableView…
and </tableView>
. Just make sure you have a backup or your file is under version control.