I'm getting really strange error in my UITableView. I'm using standard views and sections.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 44.0f;
}
- (NSString*) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
switch (section)
{
case kSectionProfile:
return @"Profile";
break;
case kSectionContacts:
return @"Contacts";
break;
case kSectionApps:
return @"Apps";
break;
case kSectionSettings:
return @"Settings";
break;
case kSectionCount:
return nil;
break;
}
return nil;
}
TableView comes from XIB.
Simulator:
This is top of UITableView, section is never touching top of visible area and cells are drawn about section header. I have no idea what can be causing this strange problems. It seems that top of UITableView is not correctly calculated.