AppDelegate *app = [[UIApplication sharedApplication] delegate]; app.window.rootViewController = [[RootViewController alloc] init]; 转载于:https://www.cnblogs.com/tian-sun/p/5019857.html