I want to read text of a textField inside the tableView Row And Button is also inside the so when user clicks that row textfield data set into dat开发者_如何学Pythonabase.
Two tactics.
subclass UITableViewCell, add a property for your textField. Then in
-tableView:willSelectRowAtIndexPath:
you can call UITableView's-cellForRowAtIndexPath:
to get the cell. Use the property you added to access the UITextField.Don't subclass. When you add the UITextField to the UITableViewCell set it's tag property to some unique identifier. Use the same tactic as above to get the UITableViewCell, but then get a pointer to the UITextField by using UIView's
-viewWithTag:
精彩评论