Simple way to separate UITableview datasource and delegate from main UIViewController class?

前端 未结 4 1075
终归单人心
终归单人心 2021-01-02 08:19

The typical UITableView usage pattern is to have the main UIViewController become a target datasource and delegate for the UITableView it is holding on to.

Are there

4条回答
  •  暖寄归人
    2021-01-02 09:13

    You can create separe classes (with UITableViewDelegate , UITableViewDataSource) and add them in IB as external files and link the IBActions

提交回复
热议问题