views:

33

answers:

0

i am using a UITableview in a navigation based application in this way

UIView *containerView =
[[[UIView alloc]
  initWithFrame:CGRectMake(0, 0, 300, 100)]
 autorelease];

[self.view addSubview:containerView];

TableView.rowHeight=50;
Tableview.tableHeaderView=containerView;

then i navigate to the next page.But After clicking the back button when i come back on the first page the tableview scrolls down on its own and half of it is not visible?? how can i make the tableview not move on its own when i come back??