UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UINavigationController *vc = [story instantiateInitialViewController];
CATransition *animation = [CATransition animation];
[animation setDuration:0.3];//设置动画时间
animation.type = kCATransitionReveal;//设置动画类型
animation.subtype = kCATransitionFromRight;
[[UIApplication sharedApplication].keyWindow.layer addAnimation:animation forKey:nil];
self.view.window.rootViewController = vc;