Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is UIViewControllerWrapperView?

I programed when one moment, i called the superview method from my view from viewController and with a NSLog("%@", [myView superview]); I saw wrote : >

What is this ?

Thx you.

like image 797
Marc Lamberti Avatar asked Aug 06 '12 14:08

Marc Lamberti


2 Answers

This is a private view used by the framework. You're not supposed to modify it or whatsoever.

like image 185
Cyrille Avatar answered Oct 07 '22 04:10

Cyrille


A view must belong to a view hierarchy for its contraints (position, size) to be set. The UIViewControllerWrapperView is the parent of a controllers view, which has not been added as a subview of another view.

As an example: UIViewController has a view property and a collectionView property. The collectionView resides within the view in the view hierarchy. The view if of type UIViewControllerWrapperView.

like image 31
Pétur Ingi Egilsson Avatar answered Oct 07 '22 02:10

Pétur Ingi Egilsson