提供嵌套树的正确方法

时间:2015-06-17 14:58:44

标签: ios user-interface user-experience

我有这样的树:

UITableViewController

我必须联系一位制作人。

起初我已经为每个级别使用了UTableViewController但是我及时发现这不是最好的方法。现在我正在考虑一个{{1}}可膨胀细胞。

你如何处理类似的问题?

1 个答案:

答案 0 :(得分:0)

我建议在选定的单元格下插入新单元格。

你有

-CountryA
-CountryB
-CountryC

用户选择CountryB。然后,在tableView:didSelectRowAtIndexPath中:使用方法insertRowsAtIndexPaths:withRowAnimation:with index paths section 0和rows 2-(CountryB中的区域数)。