You can make any kind of Controller responsible for the views corresponding to the UITableViewDelegate and UITableViewDataSource protocols in your header file (.h):
@interface YourViewControllerClass : UIViewController <UITableViewDelegate, UITableViewDataSource>
And then implement the appropriate methods in your implementation file (.m).
If you are using IB, drag the TableView data source and delegate the outputs to a subclass of the view class.
source share