Im starting to learn OC.
The first question is about _window.rootviewcontroller
and [_window addSubview:...]
Both of the two ways can set view
for UIWindow
(actually, UIWindow
is inherited from UIView
).
So what I want to know is :
Is setting the rootviewcontroller
for window
just using the addSubview
method to implement , or it's something else?
more exactly:
is
_window.rootviewcontroller = viewController;
meaning
[_window addSubview: viewController.view];
or
_window = viewController.view; //UIWindow : UIView
or something else?
Thanks a lot.
Is there anyone who can tell me some details about UIWindow and the rootViewController property?