Are there Anyone that use TableViewController without subclassing?

后端 未结 4 1727
臣服心动
臣服心动 2021-01-22 00:45

I am just curious. In IB, we can put a tableviewcontroller. However, as far as I know, we always subclass that tableview controller right? That way we can implement delegate, et

4条回答
  •  闹比i
    闹比i (楼主)
    2021-01-22 01:48

    No, this is not necessary to inherit your class with tableViewController. You can use table view by simply putting TableViewController in xib.

    and setting its delegate and datasourse to file's owner you can draw the table cells.

提交回复
热议问题