views:

709

answers:

1

I have a UITextView that i use for typing some text (i have added it with Interface builder)

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

what i want it to do is type until line3 and the go up if i goto line 4 but what it does is whenever i type enter it automatically goes up so i'm constantly typing at the top of my uitextview

ive put a capture online that show it more cleary .. even when i click a line it goes to the top!

Click here for the screen capture

A: 

It looks like the trick is to make the font size bigger

txtView.font = [UIFont systemFontOfSize:14];

when i make my font size 2 points bigger it just types normal instead of going up every line.

Andy Jacobs