I have a UITableView as a subview of my UIScrollVIew, which is the main view controlled by my MainViewController.
UITableView
UIScrollVIew
MainViewController
In MainView
Maybe it is a typo after all. Check that your function is not didDeselectRowAtIndexPath: (de select instead of select).
didDeselectRowAtIndexPath: