layoutsubviews

UIView/CALayer: Transform triggers layoutSubviews in superview

≯℡__Kan透↙ 提交于 2019-11-27 01:30:52
问题 When changing some of the properties for UIView it triggers layoutSubviews in the superview . I can not find any statements about this in the docs. These properties triggers layout in superview and self frame bounds These properties triggers layout in superview only transform layer.transform These properties triggers layout in self only none These properties does not trigger any layout center layer.anchorPoint layer.position alpha I find it very confusing that transform is triggering layout

When is layoutSubviews called?

我们两清 提交于 2019-11-26 00:19:53
问题 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 bottom of the screen that correctly resizes in Interface Builder if I change the height of the nav bar. layoutSubviews is called when the view is created, but never again. My subviews are correctly laid out. If I toggle the in-call status bar off, the subview\'s layoutSubviews is not called at all, even though the main view does animate its