I have a view controller with following layout:
- Container View
UIScrollView
UITableView
as a sub view of aUIScrollView
I have another UITableViewController
in which I have a few rows and some methods when the row gets selected. Now I want to display this UITableview
inside the UIScrollView
. So I add the UITableView
as a subview of UIScrollView
. The table is displayed in the scroll view just fine, but when I tap in the scroll view to select the table's row, then row is being highlighted but the method is not getting called when the row is selected..
PBDashboardPickupTable *dashtable = [[PBDashboardPickupTable alloc]initWithNibName:@"PBDashboardPickupTable" bundle:nil];
[self.scrollView addSubview:dashtable.tableView];
Also I have set scroll view's delayContentTouches
to YES
and cancelContentTouch
to NO
from Interface Builder. Also userInteractionEnabled
is set to YES
... then why is the method not getting called when I tap the table view's row?