What is UIViewControllerWrapperView?

2019-06-19 00:09发布

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.

2条回答
干净又极端
2楼-- · 2019-06-19 00:47

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.

查看更多
放我归山
3楼-- · 2019-06-19 00:53

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

查看更多
登录 后发表回答