viewDidAppear for UITableViewCell

前端 未结 3 534
孤街浪徒
孤街浪徒 2021-02-03 19:53

I usually use viewDidAppear method to do some UI stuff on the view after it finished appearing and I used this method in various situations were it was very useful,

3条回答
  •  不要未来只要你来
    2021-02-03 20:37

    If you need to respond to changes to the cell's frame and adjust the layout, you need to implement -layoutSubviews in the cell class. Remember to call [super layoutSubviews].

提交回复
热议问题