UITableView delegate and dataSource methods not getting called

    
self.tableview.delegate=self
self.tableview.dataSource=self
Set this two line in your viewDidLoad method and reload tableview.