下面是我的代码:
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 中,但我不确定这是否可能......你们中的任何人都可以解释我做错了什么吗?