ios - get UITableViewCell from NSIndexPath? -
i using multiple uitableview
custom cells in single viewcontroller
. custom cell have textfields
, able edit textfields. want tableviewcell of exact uitableview
in textfield
delegate method when editing textfield ?
remember there multiple tableviews want exact cell of exact table editing. help?
you must have tag both tableview
use below code in textfield delegate
uitableviewcell *cell = (uitableviewcell *) textfield.superview.superview.superview; uitableview *curtableview = (uitableview *)cell.superview; nsindexpath *indexpath = [curtableview indexpathforcell:cell];
Comments
Post a Comment