ios - about UIView addSubview -


i have 2 uiviews, named , b, , add uiview b a's subviews:

[a.view addsubview b] 

i wondering there delegation or hook b can informed "oh, added a!" when added a? or other way let b know added other uiview container?

you can override willmovetosuperview: or didmovetosuperview methods in uiview subclass in order informed when view added view.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -