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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -