UITableView - Direkt Einstellung tableHeaderView Eigentum vs. Umsetzung -viewForHeaderInSection Methode

Was ist der Unterschied zwischen direkt-Einstellung der tableHeaderView/tableFooterView Eigenschaften:

UIView *headerView =  [[UIView alloc] init...];
tableView.tableHeaderView = headerView;
[headerView release];

und Umsetzung der viewForHeaderInSection/viewForFooterInSection Methoden?:

- (UIView *)tableView:(UITableView *)tableView 
    viewForHeaderInSection:(NSInteger)section
{   
    UIView *headerView = [[[HeaderView alloc] init...] autorelease];
    return headerView;
}
InformationsquelleAutor Alejandra | 2011-06-22
Schreibe einen Kommentar