开发者

display a bg image in table view for iphone

开发者 https://www.devze.com 2023-01-09 09:40 出处:网络
i can display BG image开发者_如何转开发 in table viewcell but when i click any cell there is a blue color filling all my cell and my images just goes behindnow i want to show my image in front of that

i can display BG image开发者_如何转开发 in table view cell but when i click any cell there is a blue color filling all my cell and my images just goes behind now i want to show my image in front of that blue color how to do that??

cell.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SuperCell.png"]] autorelease];


Maybe you can use

cell.selectionStyle = UITableViewCellSelectionStyleNone;

and

cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SuperCell.png"]] autorelease];
0

精彩评论

暂无评论...
验证码 换一张
取 消