[英]UINavigationController with static navigation bar
I'm working on an educational iPhone application and am looking for advice on what is the best architecture for a specific portion of my app. 我正在研究一个教育性的iPhone应用程序,并正在寻找有关应用程序特定部分的最佳体系结构的建议。
I'm working with iOS 5 so I can use container view controllers. 我正在使用iOS 5,因此可以使用容器视图控制器。 I want to do as much as possible in the storyboard.
我想在情节提要中尽可能多地做。
Here's what I want to do: 这是我想做的:
Here is a way I'm thinking of for implementing this behavior: 这是我正在考虑的用于实现此行为的方法:
Showing modally a custom container view controller that would contains: 模态显示自定义容器视图控制器,其中将包含:
The screens would define their navigation bar's right item if any, and the container view controller would be responsible for putting it in the navigation bar. 屏幕将定义其导航栏的正确项(如果有),并且容器视图控制器将负责将其放置在导航栏中。
Does someone have an opinion on this method, or an elegant alternative to suggest? 有人对此方法有意见吗,还是可以建议的优雅替代方法?
Thanks. 谢谢。 Have a great day!
祝你有美好的一天!
you can use Single View based project for this purpose. 您可以为此使用基于单视图的项目。 Add a navigation controller to push when user clicks on tableview content.
添加导航控制器以在用户单击表视图内容时进行推送。 By pushing with animation, your view will be transitioned from tableview to another view controller.
通过推动动画,您的视图将从tableview过渡到另一个视图控制器。
Now you can show up your first chapter and add a swipe gesture to your view so as to change the page. 现在,您可以显示第一章,并向视图中添加滑动手势以更改页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.