2011-09-29 19 views
5

Muszę ustawić alfa komórek na minimum. Próbuję następujący kod w komórce dla wiersza, to nie działa. Ustawiłem również nieprzejrzysty, ale nadal nie działa. Ktoś ma pomysł na ten temat?Jak ustawić komórkę alfa UITableView?

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 
if (cell == nil) 
{ 
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 
} 
cell.alpha =0.5; 
+0

spojrzeć tutaj http://stackoverflow.com/questions/3763635/how-to-make-background-of-uitableviewcell-with-buttons-transparent/3763760 # 3763760 – Mat

Odpowiedz

24

spróbować ..

cell.contentView.alpha = 0.5; 
+0

dzięki jej pracy – triveni

Powiązane problemy