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,但我不知道這是否是可能的..可以任你解釋我做錯了什麼?