Objective c UITableViewController更改多选圆的颜色
我有一个黑色背景的UITableView,希望用户能够一次选择多行此选择的默认样式是行左侧的一个灰色小圆圈。不幸的是,它在黑色背景上不可见。。如何为其提供自定义图像或将其外观设置为其他内容Objective c UITableViewController更改多选圆的颜色,objective-c,ios5,uitableview,Objective C,Ios5,Uitableview,我有一个黑色背景的UITableView,希望用户能够一次选择多行此选择的默认样式是行左侧的一个灰色小圆圈。不幸的是,它在黑色背景上不可见。。如何为其提供自定义图像或将其外观设置为其他内容 //this enables a little gray circle to select multiple rows self.tableView.allowsMultipleSelectionDuringEditing = YES; //my table has black background a
//this enables a little gray circle to select multiple rows
self.tableView.allowsMultipleSelectionDuringEditing = YES;
//my table has black background and the circle is not visible
self.tableView.backgroundColor = [AppColors tableViewBackgroundColor];
self.tableView.separatorColor = [AppColors tableViewBackgroundColor];
UITableViewCell
有两个属性,分别称为backgroundView
和multipleSelectionBackgroundView
。只需创建一个具有适当背景颜色的视图,并使用UIImageView
为未选中和选中状态显示您自己的自定义图像。MultipleSelectBackgroundView更改所选视图的背景,保留复选标记不变。这使我相信复选标记是与单元格相关的其他视图