我很困惑storyboard和编程推送视图之间的关系。
我正在使用SWRevealViewController来显示一个菜单项。
如果我使用以下方式推送到storyboard:
我的Storyboard里显示了所有的信息,但是没有“返回”按钮到SWRevealViewController。
如果我使用以下方式推向视图控制器
我正在使用SWRevealViewController来显示一个菜单项。
如果我使用以下方式推送到storyboard:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
PhotosViewController *controller = [storyboard instantiateViewControllerWithIdentifier:@"PhotosViewController"];
[self presentModalViewController:controller animated:YES];
[self.navigationController pushViewController:controller animated:YES];
我的Storyboard里显示了所有的信息,但是没有“返回”按钮到SWRevealViewController。
如果我使用以下方式推向视图控制器
PhotosViewController *frontViewController = [[StreamScreen alloc] init];
newFrontController = [[UINavigationController alloc] initWithRootViewController:frontViewController];
我可以查看通过编程添加的所有内容,但无法查看来自storyboard的任何内容。
我的问题是如何访问来自storyboard和编程添加的内容。