实现“首页应用程序部分选择器”
这个想法类似于这里的第二个屏幕截图 - 除了该应用程序只是链接到其他应用程序。我正在实现的设计使用每个图标转到应用程序的某个子部分,用户将能够在其中导航,并可能通过选项卡浏览每个子部分的视图。
如何实现每个图标加载视图层次结构,其中每个图标的选项卡/工具栏可能看起来不同,甚至丢失?其中一些视图具有可导航的目录。
The idea is similar to the second screenshot here - except that app simply links to other apps. The design I'm implementing uses each icon to go to a sub-section of sorts of the app, where the user will be able to navigate, and possibly tab through each sub-section's views.
How do I implement each icon loading a view hierarchy where the tab/toolbar can look differently for each icon, and even be missing? Some of these views have navigatable tables of content.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多方法可以实现这一点。我可能会为此做一些事情,假设您不想使用导航控制器(以伪代码形式):
使用导航控制器更容易,因为它会为您处理大部分内容,您只需使用导航控制器推送和弹出子视图即可。但是,如果您不希望导航栏位于屏幕顶部,这就会成为一个问题。如果您不介意顶部栏在那里,那么您将需要使用导航控制器。
There are many ways to accomplish this. I would likely do something to this effect, making the assumption you don't want to use a navigation controller (in pseudo-code):
Using a navigation controller is easier as it will handle most of this for you, you simply push and pop your sub-views using the nav controller. However it becomes an issue if you don't want the navigation bar at the top of the screen. If you don't mind the top bar being there then a navigation controller is what you will want to use.