改变UITableViewCellAccessoryCheckmark(UITableView Cell后面的对勾)的颜色
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *ID = @"MXMusicListViewControllerCell";
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:ID];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
}
cell.tintColor = [UIColor redColor];
cell.textLabel.text = @"你在太原和谁一起假装悲伤";
cell.detailTextLabel.text = @"贰佰 - 贰佰作品集";
cell.accessoryType = UITableViewCellAccessoryCheckmark;
return cell;
}
本文详细介绍了如何在UITableView中自定义UITableViewCell的AccessoryCheckmark的背景颜色,并通过实例展示了实现过程。

2595

被折叠的 条评论
为什么被折叠?



