Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to load a uitableview using ECSlidingViewController methods.

When I call this code:

UIStoryboard*  sb = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone"
                                              bundle:nil];
UITableViewController* page = [sb instantiateViewControllerWithIdentifier:@"tableViewPage"];

CGRect frame = self.slidingViewController.topViewController.view.frame;
self.slidingViewController.topViewController = page;
self.slidingViewController.topViewController.view.frame = frame;
[self.slidingViewController resetTopView];

while "tableViewPage" is a tableView Controller, not a view with a table. It gives me:

[UITableViewController loadView] loaded the "Bzc-w8-vsI-view-gnu-XH-Eb0" nib but didn't get a UITableView.'

I tried to made a method like topViewController just for uitableviewcontroller instead of uiviewcontroller ... but I failed. What did I miss?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I think it's trying to tell you that you have a UITableViewController in your storyboard but the top-level view associated with that controller is not a UITableView.

share|improve this answer
 
Thank you, lost so many time on this... –  eestein Dec 24 '13 at 15:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.