1. Separate Jump page page
#pragma mark-changeviewcontroller Controller Jump
-(void) changeviewcontroller{
loginpagecontroller * login = [[loginpagecontrolleralloc]Init ];
uiwindow * window = [uiapplicationsharedapplication]. Keywindow;
Window. Rootviewcontroller = login;
}
@end
2. The jump page has navigation bar (Uinavigationcontroller) and Uitabbarcontroller
#pragma mark-viewcontroller Jump
-(void) changeviewcontroller{
detailpagecontroller * detailpage = [[detailpagecontrolleralloc] Init];
Uinavigationcontroller * NV = [[uinavigationcontrolleralloc] Initwithrootviewcontroller:d etailpage];
uitabbarcontroller * tab = [[uitabbarcontrolleralloc]Init ];
tab. Viewcontrollers =@[NV];//Add the navigation bar to the Tabbar controller
uiwindow * window = [uiapplicationsharedapplication]. Keywindow;
Window. Rootviewcontroller = tab;
}
UIWindow does not use the proxy how to implement the root controller jump (page jump implementation) UIWindow do not use the agent how to implement the root controller jump (page jump implementation) UIWindow do not use the proxy how to implement the root controller jump (page jump implementation) UIWindow do not use the agent how to implement the root controller Jump (Implementation of page jump)
UIWindow How to implement a root controller jump without using a proxy (Implementation of page jumps)