开发者

how to get a UITextView to Clear like a UITextField does

开发者 https://www.devze.com 2022-12-12 18:48 出处:网络
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 o

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

精彩评论

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