Question: I have a UITableView in another view. I want to make the height of the UITabeView constant. I have variable number of rows, but I want the height of the UITableView constant so that it does not hide the views below it when the rows increase. how do I do this? I tried setting the autoresizingmask but that did not help. Thanks in advance.

Answer: 
[EPyLEpSY](https://stackoverflow.com/users/1039901/epylepsy) is correct.

```
CGRect tbFrame = [myTableView frame];
tbFrame.size.height = 100;
[myTableView setFrame:tbFrame];

```
you can use the method: 

```
- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style

```

and initialize the frame with the width and height you want.

The style can be one of the following options:
UITableViewStylePlain
UITableViewStyleGrouped

I recommend reviewing [UITableView class reference](http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableView_Class/Reference/Reference.html) for more information