Is it possible to add Clear when editing starts to a text view? This option is available for the text field but I couldn't find anything for the text view.
Thanks!
Implement the UITextViewDelegate
method called textViewDidBeginEditing:
, and inside of it, set the text
property to an empty NSString
object:
- (void) textViewDidBeginEditing:(UITextView *) textView {
[textView setText:@""];
//other awesome stuff here...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With