UIButton default tap fade animation missing in UITableViewController custom cell

后端 未结 6 1051
后悔当初
后悔当初 2021-02-08 08:41

I have a custom cell with a few UIButtons in it. I have created Target Actions like so on the buttons:

[cell.customLocationButton addTarget:self action:@selector         


        
6条回答
  •  忘掉有多难
    2021-02-08 09:01

    I found this solution:

    setTitleColor(UIColor.init(white: 1, alpha: 0.3), for: .highlighted)
    

    It's really simple and works perfectly.

提交回复
热议问题