Change color on checkmark in UITableView

后端 未结 15 2270
故里飘歌
故里飘歌 2020-12-07 22:31

Could someone be so kind to show me how to change the color on the checkmark in UITableView?

I have searched but don\'t seem to get it to work.

Cheers

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 23:07

    #import "UIImage+Color.h"
    
    UIImage *image = [[UIImage imageNamed:@"ic_check_black_24dp.png"] changeColor:CLR_BUY];
    UIImageView *checkmark = [[UIImageView alloc] initWithImage:image];
    cell.accessoryView = checkmark;
    

提交回复
热议问题