PDA

View Full Version : Retaining current text when editing a text field




John Baughman
Oct 19, 2009, 05:17 AM
If a UITextField has content and the user taps into the field or the field is put into editing when the view appears, how do you retain the content?

For me the content is clearing and there is no way to get out of editing without retyping the content if you inadvertently tapped into the field.

Thanks,

John



bredell
Oct 19, 2009, 06:40 AM
Set the clearsOnBeginEditing property to NO.

John Baughman
Oct 19, 2009, 11:34 AM
Set the clearsOnBeginEditing property to NO.

Thanks!

John