Subhojit Mandal Subhojit Mandal - 1 month ago 7
Objective-C Question

'-[UITableViewController loadView] loaded the "OG7-5c-Gm7-view-xGh-Gb-9hr" nib but didn't get a UITableView.'

I am using a Custom tableView from this source

https://github.com/klevison/KMAccordionTableViewController

this is working fine when i am using tableViewController but when i'am using it with viewController and using a table view inside it its gives me this error

'-[UITableViewController loadView] loaded the "OG7-5c-Gm7-view-xGh-Gb-9hr" nib but didn't get a UITableView.'

Answer

If you must use a plain UIViewController in the storyboard (instead of a UITableViewController, then have a separate UITableViewController that can be embedded in the UIViewController. To do this, drag a UIContainerView from Interface Builder's list of objects into the UIViewController's root view, add whatever constraints are needed, and then control-drag from the container view to the UITableViewController to embed it.