How to change UITableViewRowAction title color?

后端 未结 10 893
梦如初夏
梦如初夏 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:31

    I'm afraid that there's no way to change the title color of the UITableViewRowAction.

    The only things you can change on the action are:

    • backgroundColor
    • style (destructive (red backgroundcolor, ...)
    • title

    For more info, please refer to the Apple Doc UITableViewRowAction

提交回复
热议问题