How to change UITableViewRowAction title color?

后端 未结 10 876
梦如初夏
梦如初夏 2020-11-30 05:49

Am using UITableViewRowAction in \"editActionsForRowAtIndexPath\" method. I can change the backgroundcolor of UITableViewRowAction, but am not able to change the title color

10条回答
  •  旧巷少年郎
    2020-11-30 06:21

    There is indeed a way to change the title color of the UITableViewRowAction. It's a button. You can use the UIButton appearance proxy:

    [[UIButton appearance] setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];

    enter image description here

提交回复
热议问题