Simply add the UITableViewDataSource
(and most likely the UITableViewDelegate
) to your UIViewController declaration. Example:
// MyViewController.h
@interface MyViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
// ...
@end
After that your implementation file MyViewcontroller.m should help you with the code completion.
One note: don't forget to set yourself as dataSource:
_tableview.dataSource = self;