I have a UITableView as a subview of my UIScrollVIew, which is the main view controlled by my MainViewController.
UITableView
UIScrollVIew
MainViewController
In MainView
Have you defined instance variable for tableview with same name. If not then might be this can be the issue-
_myTableView.delegate = self; _myTableView.datasource = self;
Or-
self.myTableView.delegate = self; self.myTableView.datasource = self;