将导航控制器放置在选项卡控制器中,从表格视图更改为另一个视图
我最近发现了一个关于如何在 tabbarcontroller 中放置导航控制器的好教程(“笔尖方式”)。
http://twilloapp.blogspot.com/2009/ 05/how-to-embed-navigation-controller.html
我继续第二步,向 navcontroller 添加了一个 tableviewcontroller。
我不明白的是,如何从 tableviewcontroller 中使用 navigationbarcontroller ,例如 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
我想要做的是,当用户选择一行时,另一个视图应该使用后退按钮和导航控制器提供的所有内容滑入。
提前致谢!
I recently found a good tutorial about how to place a navigation controller within a tabbarcontroller("The nib way").
http://twilloapp.blogspot.com/2009/05/how-to-embed-navigation-controller.html
I continued with the second step and added a tableviewcontroller to the navcontroller.
What I don't understand, is how I can use the navigationbarcontroller from within my tableviewcontroller and e.g - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
What I want to do is when a user selects a row another view should slide in with the back button and everything that a navigationcontroller provides.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否已开始使用 Apple 的 SimpleDrillDown 示例? 有问题的具体代码是这个例程:
Have you started with Apple's SimpleDrillDown sample? The specific code in question is this routine:
以下是我正在寻找的内容:
由于我已经为我的
NavigationControllers
视图指定了RootView
控制器,因此self
回答了 navigationController。The following was what I was looking for:
Since I've specified the
RootView
Controller for myNavigationControllers
View,self
answers to navigationController.