ios - Disable UITableView floating section header tap-through? -


i have plain-style uitableview custom section header views (pre-6.0, not uitableviewheaderfooterview). can tapped, , others can't. when they're floating @ top of table view above other cells, taps go through header section table view cells below. because of re-use requirements of view elsewhere in app, section header view subclass of uitableviewcell. there way prevent touch going through?

if change subclass of section header view uiview instead of uitableviewcell problem goes away. solution isn't feasible other reasons, however. there special behavior in uitableviewcell can disable?

take @ - (uiview *)hittest:(cgpoint)point withevent:(uievent *)event instance method here.

you can override method in uiview subclass , return view want respond touch.

using maybe sort of approach:

- (uiview *)hittest:(cgpoint)point withevent:(uievent *)event {     id hitview = [super hittest:point withevent:event];      if (hitview == self) {         return nil;     } else {         return hitview;     } } 

hope helps.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -