【发布时间】:2017-04-29 08:44:08
【问题描述】:
我正在使用下面的代码导航到另一个视图控制器,我想将此 self 分配给另一个类的委托,我该怎么做?
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UINavigationController *controller = [storyboard instantiateViewControllerWithIdentifier:@"storyBoardID"];
self.navigationController presentViewController:controller animated:YES completion:nil];
【问题讨论】:
-
只需在情节提要中添加一个导航控制器,使用 edit => embed In =>Navigation controller 。只需编写您的代码,您的导航就可以完美运行。
-
您的问题解决了吗?
标签: ios objective-c uinavigationcontroller delegates uistoryboardsegue