选项卡中带有导航控制器的选项卡栏应用程序。从视图交联
这是我的第一个 iPhone 项目,一切进展顺利,但我遇到了一个小障碍,我似乎找不到一个好的解决方案。预先感谢所有花时间帮助我的人。
我有一个非常直接的选项卡栏应用程序,带有几个选项卡。每个选项卡定义一个由导航栏控制的小部分。客户现在想要在该子部分的视图之一中放置一个按钮,该按钮“深层链接”到不同部分(不同选项卡)的视图中。
举例说明:
Root
- Tab 1 (Bedrock)
- Navigation Controller
- Fred View
- Wilma View
- Betty View
- Barney View
- Tab 2 (Mystery Machine)
- NC
- Scooby View
- Shaggy View
- Daphnie View
...
客户希望“Barney View”中有一个打开“Shaggy View”的按钮
实现此目的的最佳方法是什么?
This is my first iPhone project and all has been going very well but I've run into a small snag that I can't seem to find a good solution for. Thanks in advance to everyone who takes their time to help me out.
I have a very straight forward Tab Bar application with a few tabs. Each tab defines a subsection that is controlled with a Navigation Bar. The client now wants to place a button in one of the views of the subsection that "deep links" into a view of a different section ( different tab).
To Illustrate:
Root
- Tab 1 (Bedrock)
- Navigation Controller
- Fred View
- Wilma View
- Betty View
- Barney View
- Tab 2 (Mystery Machine)
- NC
- Scooby View
- Shaggy View
- Daphnie View
...
The client would like a button in 'Barney View' that opens up 'Shaggy View'
What is the best way to accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要使用 UITabBarController 的
selectedViewController
或selectedIndex
属性来切换选项卡,并使用 UINavigationController 的viewControllers
属性来设置视图堆栈。You will want to use the
selectedViewController
orselectedIndex
property of the UITabBarController to switch tabs, and theviewControllers
property of the UINavigationController to set the view stack.