A 3-line UITextView automatically scrolls as you type <screen capture>

I have a UITextView that I use to enter text (I added it using Interface Builder)

I made the height of the lines of the font height (so in my case the frame height is 47), so I can have 3 lines of text

what I want is to enter the type up to line 3 and go up if I go to line 4 but what it does is whenever I enter it it automatically goes up so I always print at the top of my uitextview

ive puts an online capture that shows it cleaner .. even when I press a line, it goes up!

Click here to capture the screen.

0
3

, ,

txtView.font = [UIFont systemFontOfSize:14];

2 , , .

0

[textview setContentInset:UIEdgeInsetsZero] textviewbeginediting ViewDidLoad

, .....

+1

, , , , , - UITextView ( ), ClearColor, . , . UITextView . , , . Thats, ClearColor .

0

All Articles