2010-08-06 4 views

ответ

8

Думаю, вам нужно будет создать UIView с UIImageView в нем.

Нечто подобное:

- (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

Спасибо, он работает – 2010-08-06 17:41:32

+0

отлично, не забудьте отметить поток как разрешенный ;-) есть приятная временная кодировка ... – TheSquad