2010-08-06 5 views

Répondre

8

Je pense que vous devrez créer un UIView avec un UIImageView.

Quelque chose comme ça:

- (void) createHeader 
{ 
    header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)]; 
    header.backgroundColor = [UIColor colorWithWhite:0 alpha:0]; 
    UIImageView *headerImage = [[UIImageView alloc] initWithImage:yourImage]; 

    [header addSubview:headerImage]; 
    [headerImage release]; 
} 

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 
{ 
    return header; 
} 
+0

Merci, ça marche –

+0

super, n'oubliez pas de marquer le fil comme résolu ;-) avoir du temps de codage ... – TheSquad

Questions connexes