I'm pretty new to setting my views up outside of IB, and I need some help here. I'm setting up a table view with more cells than will fit on the screen, so you have to scroll to see them all. The problem is that that the table doesn't scroll down far enough to see the very last cell. It's only partially visible.
Here is some code to show how I set the table up (also, the status bar is showing and I there is a navigation bar at the top too.
Thanks
Here is some code to show how I set the table up (also, the status bar is showing and I there is a navigation bar at the top too.
Code:
{
UIView *contentView= [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
contentView.backgroundColor = [UIColor blackColor];
contentView.autoresizesSubviews = YES;
self.view = contentView;
[contentView release];
myTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
myTableView.delegate = self;
myTableView.dataSource = self;
[self.view addSubview:myTableView];
}
Thanks