Can someone please explain to me how I can make a uitableviewcellaccessorydisclosureindicator's background in a UITableViewCell transparent?
Right now I'm facing this problem:
alt text http://www.bubl3r.com/disclosure.jpg
Just found the answer. Turns out it was just 3 lines & having to define my own disclosure indicator .png image with a transparent background:
UITableViewCell *bgView = [[UITableViewCell alloc] initWithFrame:CGRectZero];
bgView.backgroundColor=indexPath.row % 2? [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1]: [UIColor whiteColor];
bgView.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"disclosure.png"]];
cell.backgroundView=bgView;
return cell;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With