ecslidingviewcontroller

Loaded the nib but didn't get a UITableView Exception

走远了吗. 提交于 2019-11-28 14:45:32
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: