Selected UIButton disappears inside selected UITableViewCell

前端 未结 5 1781
一个人的身影
一个人的身影 2021-01-06 00:39

I have a table, I have cellForRowAtIndexPath delegate for it and I have instance of UITableViewCell being created inside that method, which I return. Somewhere in cellForRow

5条回答
  •  太阳男子
    2021-01-06 01:38

    I had trouble as well with this (for 4.3 and less) and the solutions above didn't work for me. Finally, setting button.adjustsImageWhenHighlighted = NO; when creating the button did the trick for me.

提交回复
热议问题