我需要从 UIViewController 导航到 UINavigationController,下面的代码可以做到,但切换后,底部的标签栏消失了,我得到了库存!
HomeViewController *homeList = [self.storyboard instantiateViewControllerWithIdentifier:@"homeList"];
UINavigationController *uc = [self.storyboard instantiateViewControllerWithIdentifier:@"homeNav"];
uc = [[UINavigationController alloc] initWithRootViewController:homeList];
[self presentModalViewController:uc animated:YES];
问题应该在 presentModal 中,但我不知道如何管理。我是 Objective C 和 iOS 开发的新手。