iphone - 如何在单个 tableviewcontroller 中有主题和子主题?

标签 iphone ios uitableview ios5

我只是想使用 tableview 创建如下所示,但我不确定如何让它工作

 Sports (If it get touched it expands the subtopics) 
    Cricket (When it get Touched it push to next view controller)
    Football
    VolleyBall
 Bike (If it get touched it expands the subtopics)
    HeroHonda (When it get Touched it push to next view controller)
    Kawasaki
    Yamaha

主题和子主题的数量是已知的。

是否有可能像我期望的那样做? 如果表格 View 无法实现,那么还有什么其他方法可以做到这一点?

非常感谢任何帮助。

最佳答案

关注this perfect solution您需要重新加载部分以展开和折叠子主题。

关于iphone - 如何在单个 tableviewcontroller 中有主题和子主题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13749161/

相关文章:

iphone - 表头和表格单元格之间的空间

iOS:实现多个部分设置的最佳方式

ios - UITabBarController 委托(delegate)方法永远不会被调用

ios - 作为子项目添加的静态库与作为目标添加的静态库

iphone - 使用标签栏项目加载 View !

iPhone——获取 UITextField 的调整后的字体大小

ios - 如何在 iOS 上的给定日期执行后台任务?

ios - 如何获取 TableView 是否被选为 Observable<Bool>?

iphone - 我们可以在iPhone应用程序中访问播客吗?

iphone - 如何在初始化后定义 UITableViewCell 样式?