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
Post a Comment