ios - Find indexPath of cell by label -
ios - Find indexPath of cell by label -
i have table cells; each cell contain label phone number. when tap on label, uimenucontroller
appears.
is there main way find indexpath of cell, contain selected label? (didselectrowatindexpath:
should not called)
i can imagine many dirty hacks, looking main/good solution.
upd
i have reference selected label.
edit:
this improve way.
- (ibaction)somemethod:(id)sender { cgpoint hitpoint = [sender convertpoint:cgpointzero toview:self.tableview]; nsindexpath *hitindex = [self.tableview indexpathforrowatpoint:hitpoint]; }
ios objective-c uitableview
Comments
Post a Comment