Changing the position of custom UIButton in custom UITableViewCell

后端 未结 7 821
[愿得一人]
[愿得一人] 2020-12-10 22:49

I need to change the position of UIButton dynamically. I do this in cellForRowAtIndexPath:. I alter the frame of the button in that method. The change is not di

7条回答
  •  醉话见心
    2020-12-10 23:22

    Call setNeedsDisplay with your UITableViewCell object.

    [cell setNeedsDisplay];
    

    in cellForRowAtIndexPath:

提交回复
热议问题