开发者

Unusual behaviour of text field .Clear text field data on click event of button

When user click on button , I want to clear text field. How can i do this?

My code is as follows =>

textFieldName.tex开发者_如何学JAVAt = nil;
textViewAddress.text = nil;

But this code is not clearing the text field, but it clears the textView. Also when i use backspace button from keyboard of iphone it is not clearing textfield. If i write something in textfield it starts writing on top of existing characters.

Please help me friends. Thanks


Maybe this would be sufficient

textFieldName.text = @"";
textViewAddress.text = @"";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜