iPhone UITableView with a header area
iphone, uitableview
Solution
Why don't you use the UITableView provided header?. As follow:
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
return @"My Title";
}
Additionally you may resize your table view in IB by dragging the borders.
Problem
I have a view that was created with all of the default `UITableView` stuff, but now I need to add a header area above where the `UITableView` is (so the `UITableView` will scroll normally, but the top 100px of the screen or so will have static header content). I don't see where I can resize the `UITableView` in IB, and am not sure how to do this. Does anyone know?