iphone - UITableView scrolling problems when inside a UIScrollView -
i have uiscrollview (with paging) add 3 uiviews. each of these uiviews has uitableview inside. so, user should able scroll horizontally page wants , scroll vertically in corresponding table.
however, of tables don't receive scrolling gestures. first 1 behave good, other ones not. can't select cells nor scroll table or down.
i used default settings uiscrollview, except these ones defined in viewdidload:
- (void)viewdidload { [super viewdidload]; //load view controllers [self loadviewcontrollers]; //configure scroll view self.scrollview.pagingenabled = yes; self.scrollview.contentsize = cgsizemake(cgrectgetwidth(self.scrollview.frame) * viewcontrollers.count, cgrectgetheight(self.scrollview.frame)); self.scrollview.showshorizontalscrollindicator = no; self.scrollview.showsverticalscrollindicator = no; self.scrollview.scrollstotop = no; self.scrollview.delegate = self; //configure page control self.pagecontrol.numberofpages = viewcontrollers.count; self.pagecontrol.currentpage = 0; }
i can't figure out why can't scroll of tables... appreciated.
thanks in advance!
things check:
- check view hierarchies - being laid on top of uitableview, causing not receive tap?
- are uitableviews being disabled anywhere? set breakpoint in
tableview:didselectrowatindexpath:
, see if method being called. - check this post
i guess aren't sure-fire answers they'll discover problem!
Comments
Post a Comment