0
下面是我的代码:如何将具有特定ID的故事板加载到UIViewController?
UIViewController *viewController = [UIViewController new];
if (indexPath.section == 0){
UIViewController *controller;
switch (indexPath.row) {
case 0:
controller = [[self storyboard] instantiateViewControllerWithIdentifier:@"ProfileSettings"];
[[viewController view] setBackgroundColor:[UIColor greenColor]];
所有我要的是“负荷”控制器到的viewController,但我不知道这是否是可能的..可以任你解释我做错了什么?