ios - didSelectRowAtIndexPath not called in subclassed UITableView -
i have subclassed uitableview
can detect when 3d touch gestures performed anywhere on view. works great, didselectrowforindexpath
never called.
here subclass:
protocol passtouchestableviewdelegate { func touchmoved(touches: set<uitouch>) func touchended(touches: set<uitouch>) } class passtouchestableview: uitableview { var delegatepass: passtouchestableviewdelegate? override func touchesmoved(touches: set<uitouch>, withevent event: uievent?) { self.delegatepass?.touchmoved(touches) } override func touchesended(touches: set<uitouch>, withevent event: uievent?) { self.delegatepass?.touchended(touches) } }
can suggest how can didselectrowatindexpath
working again?
Comments
Post a Comment