改变UITableViewCellAccessoryCheckmark(UITableView Cell后面的对勾)的颜色

改变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)