I’m trying to add a UITextView in a UITableViewCell for the iPad, and for some reason my UITextView is not taking up the whole height/width of the UITableViewCell. Here’s how I declare the cell
UITextView *textView = [[UITextView alloc]initWithFrame:cell.frame];
[textView setBackgroundColor:[UIColor redColor]];
[cell.contentView addSubview:textView];
though it looks like this

Thanks in advance.
autoresizing masks worked…flexwidth and flexheight