iPhone、Xcode (3.2.5) - 深入了解 TableView +标签栏
警告:Xcode 和编程新手警报!
这里有人在将钻取表功能与选项卡栏视图相结合时遇到过问题吗?基本上我在 Xcode 中设置了一个选项卡栏项目,并按照本教程(直到图6)为了获得第一个表格视图,我按照这个来获得点击每个顶级表视图行时会出现一个二级表。我已经分别完成了每一项,并且知道它们都有效;然而,当组合起来时,我会出现顶级表,我可以触摸它以使行变成蓝色,但它不会进入第二级表视图。
我希望对此有一个解决方案,或者作为替代方案,有人愿意发布一个关于向现有的基于导航的项目添加选项卡栏的迷你教程......无论如何,让我知道您需要什么代码看看,我很乐意发布它。
非常感谢!
WARNING: Xcode and programming newbie alert!
Has anyone here had an issue with combining drill-down table functionality with tab bar views? Basically I set up a Tab Bar project in Xcode, and after following this tutorial (up to Figure 6) to get the first table view in, I followed this one to get a second-level table appearing when each top-level table view row is tapped. I have done each one separately and know they both work; however when combined I get the top-level table appearing, and I can touch it to make the rows go blue, but it doesn't go to the second-level table view.
I'm hoping there's a fix to this, or as an alternative, that someone would be willing to post a mini-tutorial about adding tab bars to existing navigation-based projects... in any case, let me know what code you need to see and I'll gladly post it.
Many thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 IB 的 mainView.xib 中添加一个 tabBarController 并设置连接,如下图所示
(不要介意任何俄语单词 - 它们只是标题)
在本例中,FirstViewController 是一个普通视图,并且
SecondViewController 是一个表视图。
如果这没有帮助 - 发布我们的联系方式,我会告诉你出了什么问题。
in the mainView.xib in IB add a tabBarController and set the connections as in this picture
(never mind any russian word - they are just titles)
In this case FirstViewController is a normal view and
SecondViewController is a tableView.
If this dosen't help - post our connections and I'll tell you whats wrong.