Tableview delegate methods not called

When will the tableView delegate methods not Work?


   If you are using delegate methods like numberofrowsinsection,didselectrowatindexpath, can edit the row and other delegate methods without import table via delegate and data source in the class file.You must have to import like below.Also want to connect the delegate in the Storyboard from table view to view controller.

class ViewController: UIViewController, UITableViewDataSource,UITableViewDelegate
{

}




Then the delegate methods will work otherwise it will not work.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift