Как изменить фоновое изображение ячейки uitableview?
Я пишу этот код, он не работает.но я уверен, что в этом коде какая-то незначительная ошибка.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
[cell setBackgroundView:[UIImage imageNamed:@"selected-bg.png"]];
}