Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编程的时候,我从 viewController 的视图中调用了 superview 方法,并使用 NSLog("%@", [myView superview]); 我看到写道:>
这是什么 ?
谢谢你。
这是框架使用的私有视图。你不应该修改它或任何东西。
视图必须属于视图层次结构才能设置其约束(位置、大小)。UIViewControllerWrapperView 是控制器视图的父视图,它尚未作为另一个视图的子视图添加。
举个例子: UIViewController 有一个 view 属性和一个 collectionView 属性。collectionView 位于视图层次结构中的视图内。UIViewControllerWrapperView 类型的视图。