Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 导航栏显示/隐藏
我手头有个问题。
我在 IPAD 应用程序上以编程方式显示导航控制器,特别是一种 MODAL。单击设置按钮会显示模态。现在我想在用户成功注册或成功登录时隐藏控制器视图。有人可以告诉我如何以编程方式实现这一目标。
谢谢
如果您以模态方式呈现 NavigationController,您现在可以使用以下方法将其关闭:
[self.navigationController dismissModalViewControllerAnimated:YES];
使用此代码隐藏您的导航控制器。
[self.navigationController setNavigationBarHidden:YES animated:YES]