ios - Check row selected for textfield in tableview cell using Swift? -


i trying create table view user can edit textfield on each cell. each cell allow transition detail view controller. when user tap on cell's textfield, should allow editing , storing input text array respectively.

the problem that, how check cell/row selected when textfield tapped using swift? (i able check cell being tapped, not case of textfield in cell.)

there's couple ways this.

the superview property of text field uitableviewcell (unless have embedded within view in middle).

in own code, subclass uitableviewcell (and controls within cell) give property indicates row number we're working with.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -