#import "AppDelegate.h"
// 在控制器内操作根视图
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
id view = [storyboard instantiateViewControllerWithIdentifier:@"LoginNav"];
[UIApplication sharedApplication].keyWindow.rootViewController = view;
// 在AppDelegate代理方法内控制根视图
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
id view = [storyboard instantiateViewControllerWithIdentifier:@"LoginNav"];
self.window.rootViewController = view;