UITextField gets cleared when clicked

Such small problem, but can cause lot of irritation. To prevent UITextField from being cleared, just set clearsOnBeginEditing property to NO:

inputField.clearsOnBeginEditing = NO;

Leave a Reply