Changing the position of custom UIButton in custom UITableViewCell

后端 未结 7 790
[愿得一人]
[愿得一人] 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:05

    Have you tried reloading the table after changing the cell's frame by using

    [self.tableView reloadData]
    

    I think it should solve your problem.

提交回复
热议问题