开发者

iPhone Background Image for Table Cell

开发者 https://www.devze.com 2023-03-14 09:58 出处:网络
How can I make the background of the accessory clear? I\'ve managed to set the rest of the elements to [UIColor clearcolor] but it doesn\'t work for the accessory...

How can I make the background of the accessory clear? I've managed to set the rest of the elements to [UIColor clearcolor] but it doesn't work for the accessory...

Here's what my progress looks like:

iPhone Background Image for Table Cell

    [self.accessoryView setOpaque: NO];

    self.accessoryView.backgroundColor = [UIColor clearColor];

    self.backgroundColor = [UIColor clea开发者_运维问答rColor];

    self.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Icon.png"]];

    self.accessoryView.backgroundColor = [UIColor clearColor];

Thanks for any help you guys can offer!


have you tried

cell.accessoryView.backgroundColor = [UIColor clearColor];
0

精彩评论

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

关注公众号