Tag: uistoryboard presentviewcontroller

iOS:目前的视图控制器programmatically

我使用presentViewController:animated:completion:方法转到另一个视图控制器。 这是我的代码: AddTaskViewController *add = [[AddTaskViewController alloc] init]; [self presentViewController:add animated:YES completion:nil]; 这段代码进入另一个UIViewController但另一个控制器是空的。 我一直在使用故事板,但现在我需要在代码中完成。