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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -