I would like to create a table view (with style UITableViewStyleGrouped) with cells that are UITextField and UITextView, since I need both single line and multi line boxes that I can type texts in. Just to give you an idea what exactly I am looking for you can refer to "Add Event" section of iPhone's calendar app. I saw a few solutions here but specifically for the UITextView that I need for multiline text typing, I don't know how to set the frame of UITextView to make it fit perfectly in one cell of grouped style table view. Specifically you can refer again to "Add Event" section of iPhone's calendar app where you can enter the "Note".
Here is the code I have which does not give me what I'm looking for. The rectangle of the textview has a different color and does not fit in the cell
UITextView *textViewField = [[UITextView alloc] init];
textViewField.frame = CGRectMake(0,0, cell.contentView.frame.size.width, cell.contentView.frame.size.height);
[cell.contentView addSubview:textViewField];
[textViewField release];