开发者

TextView how-to?

开发者 https://www.devze.com 2023-01-12 02:01 出处:网络
So I have an textView and need to have the same control over it as a regular textField. I am quite new to iPhone-programming so please be nice to me. :)

So I have an textView and need to have the same control over it as a regular textField. I am quite new to iPhone-programming so please be nice to me. :)

What I need is functions like: textFieldDidBeginEditing text开发者_开发百科FieldDidEndEditingWithoutText

How can this be done?


UITextView has a delegate (UITextViewDelegate), which responds to begin/end of editing, text changes etc.

Just look up in the docs, it has complete information. :-)


Thank you I did and what do you know... a delegate and everything stars working. Well I added this to viewDidLoad: textViewName.delegate = self;

0

精彩评论

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