ne如何使uitableviewcellaccessorydis

ne如何使uitableviewcellaccessorydis

推荐答案刚刚找到了答案.原来只有3行必须定义具有透明背景的我自己的公开指标.png图像: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; 这篇关于iphone如何使uitableviewcellaccessorydisclosureindicator背景透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 23:57