2012-03-28 14 views

Odpowiedz

19

To, czego chcesz, to UITableViewCellStyleValue1, ale nie możesz ustawić istniejącego stylu komórki: musisz go ustawić podczas tworzenia. W ten sposób:

UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"YourIdentifier"]; 
+11

Ale co się stanie, jeśli używasz dequeueReuseable: forIndexPath: ... na tableView? – fatuhoku

+0

Jak to zrobić poza inicjatorem initWithStyle? – wcochran

Powiązane problemy