2011-09-29 26 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

संबंधित मुद्दे