//PassThe Xib file creates a view controller. And as the root controller of the window
self. Viewcontroller = [[viewcontroller alloc] initwithnibname:@ "Viewcontroller" bundle:nilCreate a view controller from code,
self. Viewcontroller = [[viewcontroller alloc] initwithnibname:nil Bundle:nil];
About the life cycle of Viwecontroller
1 Accessing the Self.viwe property
2 if Self.view is empty uiviewcontroller Call the Loadview method
3 If the Loadview is covered then you have to give self.view inside or call the method of the parent class and finally call the Viewdidload method
Execution Method
-(ID) initwithnibname: (nsstring *) Nibnameornil Bundle: (nsbundle *) Nibbundleornil;
-(void) Loadview;
-(void) viewdidload;//view loading complete
- (voidbool< Span style= "font-family: ' Menlo ';" >) Animated;// will be displayed
-(void) Viewdidappear: (bool) animated;//has show
-(void) Viewwilldisappear: (bool is about to disappear.
-(voidbool) animated;//has disappeared
iOS control Uiviewcontroller