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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -