ipad - UITableView does not respond to scrolling and touches -
i've created custom uiview, , inside uiview, add uitableview thus:
treeview = [[uitableview alloc] initwithframe:cgrectmake(0, 80, slider.frame.size.width, slider.frame.size.height - 80)]; [treeview setdelegate:self]; [treeview setdatasource:self]; [self addsubview:treeview]; [treeview release];
when app loads, table seems load fine. however, when try scroll table, not respond touches @ all.
i implement these delegate/data source methods:
- (nsinteger)numberofsectionsintableview:(uitableview *)tableview; - (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section; - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath; - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath;
does have idea why so?
thanks
there several possibilities:
- your custom view, or 1 of superviews, has
userinteractionenabled
set no. - there view on top of custom view, or on top of table view within custom view.
- the custom view table view inside smaller table view (with clipstobounds=no, subview extends beyond bounds of parent can seen not interacted with). or same view in stack.
- the custom view (or 1 of superviews) overrides
pointinside:withevent:
orhittest:withevent:
incorrectly.
Comments
Post a Comment