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

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

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