今天遇到个问题,我整个项目都是纯代码,忽然有个引用的VC用了storyboard,导航的跳转不知道如何操做,最后试了不少方法总算能够了对象
首先,找到要跳转的sb。it
UIStoryboard *story = [UIStoryboard storyboardWithName:@"sb的名字" bundle:[NSBundle mainBundle]];引用
而后,经过sbId初始化对象。方法
AnFangDetailVC *vc = [story instantiateViewControllerWithIdentifier:@"StoryboardID"];项目
最后,push跳转。storyboard