Powiel możliwe:
Change background of a grouped UITableViewUstaw kolor tła na UITableView w iOS 6
nie jestem w stanie zmienić kolor tła UITableView jeśli jest . Mój kod:
[addressNewTbl setBackgroundColor:[UIColor redColor]];
Pomoc!
Powiel możliwe:
Change background of a grouped UITableViewUstaw kolor tła na UITableView w iOS 6
nie jestem w stanie zmienić kolor tła UITableView jeśli jest . Mój kod:
[addressNewTbl setBackgroundColor:[UIColor redColor]];
Pomoc!
Być może trzeba dodać trochę kodu. Try -
[UITableView setBackgroundView: nil];
lub można również zrobić:
UIView* bview = [[UIView alloc] init];
bview.backgroundColor = [UIColor yellowColor];
[tableView setBackgroundView:bview];
Zarówno zadziała ..
dodatkowo trzeba wyłączyć tło widoku:
[addressNewTbl setBackgroundView:nil];
Próbowałeś
addressNewTbl.backgroundView = nil;
[addressNewTbl setBackgroundColor:[UIColor redColor]];
Zamiast ustawienie koloru tła całej UITableView
, spróbuj tego, co się dzieje, kiedy ustawić jego kolor tła backgroundView
.
w cellForRowAtIndexPath źródła danych method.try zachodzącego
[cell setBackgroundColor:[UIcolor redColor]];
OP dotyczy tła tła, a nie tła komórki. – Maulik
Witamy na stosie. Jeśli masz odpowiedź, powinieneś przyjąć tę odpowiedź ... – Maulik