When is layoutSubviews called?

后端 未结 9 1760
忘掉有多难
忘掉有多难 2020-11-22 14:58

I have a custom view that\'s not getting layoutSubview messages during animation.

I have a view that fills the screen. It has a custom subview at the bo

9条回答
  •  借酒劲吻你
    2020-11-22 15:21

    calling [self.view setNeedsLayout]; in viewController makes it to call viewDidLayoutSubviews

提交回复
热议问题