views:

540

answers:

1

So I have a UITextView that is cutting off the text in the top line. and each subsequent return takes the next line to the same position where it is cut off.

I cant see how this is happening following is all the configuration that i have set for the object.

 ResolveNotes = [[UITextView alloc] init];
 ResolveNotes.backgroundColor = [UIColor clearColor];
 ResolveNotes.text = @"";
 ResolveNotes.scrollsToTop = NO;


#define STATUS_BAR 20
#define TAB_BAR 50
#define PADDING 10
#define HIGHT 60
#define BUTTON_HIGHT 30
    CGRect bounds = self.view.bounds;

    self.ResolveNotes.frame = CGRectMake(PADDING,PADDING+PADDING, bounds.size.width - 4 * PADDING, HIGHT - 2 * PADDING);
    [ttview addSubview:self.ResolveNotes];
A: 

Try my answer here http://stackoverflow.com/questions/1024539/uitextview-creating-sms-like-text-box/1026481#1026481

Ron Srebro
No longer a good link.
Philip Regan
Tried deleting the answer, but couldn't.
Ron Srebro