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

前端 未结 4 1051
终归单人心
终归单人心 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:01

    In IB, you can drag a 'External Object' from Library->Cocoa Touch->Controllers into your xib window. You can then select that object, view the inspector, and set the class. It is now available to serve as a delegate, etc.

提交回复
热议问题