解决方法
应该可以这样做:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil]; UITableViewController *tableVC = [storyboard instantiateViewControllerWithIdentifier:@"MyTable"];
如果你想模拟出现的视图控制器,而不是实际把它放在屏幕上:
[tableVC loadView]; [tableVC viewWillAppear:YES]; [tableVC viewDidAppear:YES];
这样做是否真的是一个好主意是另一回事.