[英]What is view controller when a view is added to UIWindow in an iOS app?
When I add a view to UIWindow by addSubView, What is ViewController for the subview that set to rootViewController of UIWindow? 当我通过addSubView将视图添加到UIWindow时,设置为UIWindow的rootViewController的子视图的ViewController是什么?
What I am confused is that I don't create a ViewController for the subview explicitly and set its view property to my own view. 我感到困惑的是,我没有为子视图显式创建一个ViewController并将其view属性设置为我自己的视图。
在这种情况下,视图不属于视图控制器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.