我只是想使用 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/