You should declare a UITableViewDataSource
, which is an object that implements that protocol and supplies data to your table.
_tableView.dataSource = self;
From Apple Docs
dataSource
The object that acts as the data source of the receiving table view.
@property(nonatomic, assign) id<UITableViewDataSource> dataSource
Discussion
The data source must adopt the UITableViewDataSource protocol. The data source is not retained.
Updated: Please define your class like below as per my first line in the answer that You should declare a UITableViewDataSource
:
@interface BrowserViewController : UIViewController <UITableViewDataSource,UITableViewDelegate>