ios - Interactive UITableViewController in container -


working on , ios app have set of:

rootviewcontroller hooked uitableviewcontroller via

[self addchildviewcontroller:tablevc]; 

with tablevc.view subview of rootviewcontrollers view. rootvc has uipangesturerecognizer used animate pan left showing table.

this works fine , table great static view, when try fire

- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath 

by tapping on cell, never called. have checked if taps being accidentally registered gesture recogniser aren't.

do need somehow tell rootvc when tableview on screen send taps child uitableviewcontroller?

thanks rdelmar helping me solve advice on using cliptobounds property of uitableview's superview.

this showed uiviews being revealed through panning werent responding touches out of bounds of superview.

i solved adding view 'spanview' appropriate dimensions envelope subviews. after responded touches expected.

the hiearchy ended being:

                         -> lefttableview rootvc.view - > spanview -> centerview                          -> righttableview 

please note had create subview of rootvc achieve after viewdidload ios set rootvc.view bounds of devices screen


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -