从视图到子表视图
我可以从基于视图的应用程序开始,当触摸按钮时跳转到带有导航栏的“子视图”和后退按钮以返回主视图吗?
另外...这会违反苹果商店的规定吗?
Can I start with a view based based app and when a button is touched jump to a "child view" with a NavigationBar and the back button to go back the main view?
also...would this be a violation of apple's store rules?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然 - 技巧是让您的导航控制器始终存在,但要使用
它来隐藏在您的根视图中。在子视图中,您可以像平常一样推送它们,但
在它们的
viewWillAppear
中使用它们。 (调整动画属性,使其看起来像您喜欢的方式)我不认为它违反了任何规则,我在带有可视主菜单的应用程序中使用了它,该菜单可以推送子视图并可以弹出它们以返回到该视觉主菜单菜单不显示导航栏。
Sure - the trick is to have your navigation controller always present, but to use
to make it hidden in your root view. In the child views you get there by pushing them as normal but use
in their
viewWillAppear
. (tweak the animated property to make it look the way you prefer)I don't think it violates any rules, I have used it in an app with a visual main menu that pushes child views and can pop them to return to that visual main menu showing no navigation bar.