我应该在哪里委托这个UITableView?

时间:2012-09-24 15:05:11

标签: objective-c ios uitableview delegation

我正在iOS中构建可滚动的网格布局。

层次结构如下:

(MyController) UITableViewController
  - Parent Table View (UITableView)
    - "Horizontal cell" (UITableViewCell)
      - Sub Table View (UITableView)
        - Sub table view cell (UITableViewCell)
        - Sub table view cell (UITableViewCell)
    - "Horizontal cell" (UITableViewCell)
      - Sub Table View (UITableView)
        - Sub table view cell (UITableViewCell)
        - Sub table view cell (UITableViewCell)
    - "Horizontal cell" (UITableViewCell)
      - Sub Table View (UITableView)
        - Sub table view cell (UITableViewCell)
        - Sub table view cell (UITableViewCell)

我要确定的是子表视图是应该委托给它的父水平单元格还是委托给主视图控制器。

我的直觉是委托给视图控制器,但我见过的这种方法的教程和示例都将子表视图委托给它的父表视图单元格。

修改

为了澄清,水平单元格的表视图将旋转-90 *,以便它的单元格水平滚动以创建网格效果。

0 个答案:

没有答案
相关问题