开发者

how to get a UITextView to Clear like a UITextField does

im trying to get a U开发者_JAVA百科ITextView to Clear like a UITextField does cant seem to get this I making a app that need to clear after tapping send much like a email or tweet with several lines of text. any code would be great thanks so very much


What about adding a button and then:

- (IBAction)clearField:(id)sender
{
    textView.text = @""; // textView is of type UITextView
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜