2011-09-29 5 views
5

셀 알파를 최소로 설정해야합니다. 행에 대한 셀에서 다음 코드를 시도하면 작동하지 않습니다. 불투명도를 설정했지만 여전히 작동하지 않습니다. 누구나 이것에 대해 생각해 봤어?UITableView 셀 알파를 설정하는 방법은 무엇입니까?

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

여기 http://stackoverflow.com/questions/3763635/how-to-make-background-of-uitableviewcell-with-buttons-transparent를 살펴/3763760 # 3763760 – Mat

답변

24

이 시도 ..

cell.contentView.alpha = 0.5; 
+0

감사합니다. – triveni