开发者

Using the responder chain to see when a subview is added

开发者 https://www.devze.com 2023-04-06 03:07 出处:网络
It there any way for a window to tell that a subview\'s subview has been added. It seems like there is architecture in place (in the form of the responder chain) to allow a kind of event bubbling up t

It there any way for a window to tell that a subview's subview has been added. It seems like there is architecture in place (in the form of the responder chain) to allow a kind of event bubbling up the view hierachy, but this only seems to exist to handle user interaction.Does a UIView emit any kind of Event when added to its superview? Is there a way for a window to know when a subview has been added somewhere within its descendent view开发者_运维百科 hierachy?


-[UIView didMoveToSuperview] tells the view that its superview changed.

0

精彩评论

暂无评论...
验证码 换一张
取 消