开发者

iphone - Mail app - text kind of control

开发者 https://www.devze.com 2023-01-25 12:38 出处:网络
I\'开发者_开发技巧m trying to create a view which will be similar to iPhone\'s mail application.

I'开发者_开发技巧m trying to create a view which will be similar to iPhone's mail application. In mail app, in the compose mode, after entering To, CC and Subject, I started entering text. As number of lines increases, the view will scroll up (still keeping the keyboard) and user will always be pointed to last line of the text.

How can we achieve such view. How can it be done.


You could potentially use the UITextViewDelegate and implement (void)textViewDidChange:(UITextView *)textView

Then in this implementation call [textView bounds] and obtain the height... Then shift your view accordingly.

Seems like there should be a better way though... Hope it gives you a start a least

0

精彩评论

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