简体   繁体   中英

what is ultimate root of visible UIView hierarchy tree?

what is ultimate root of visble UIView hierarchy tree? Is that one of UIWindow object that can retrieve by [[UIApplication sharedApplication] windows] ? is that true so for modal UIView ?

Yes. Every App consists of MainWindow.xib file. That's the parent of all. If using newer versions of Xcode, A UIWindow will be declared at the start in the AppDelegate's didFinishWithLaunching method.

Also, Modal UIViewController would be added to a Parent UIViewController which is again added on UIWindow

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM