Manipulating text field values ββin an iPhone app
3 answers
UITextField objects have a "text" property of type NSString that can be read and written. Keep the reference to the text boxes, and when the button is clicked, update the text property of the box with a new NSString to change its contents. If text fields cannot be directly editable by the user, you can use a UILabel instead, which is basically just an editable text field (and which also has a read / write "text" property).
+3
source to share