UIViewController *nextViewController = [[UIViewController alloc] init];
UIView *screenShot = [self.window snapshotViewAfterScreenUpdates:YES];
[nextViewController.view addSubview:screenShot];
self.window.rootViewController = viewController;
[UIView animateWithDuration:0.5 animations:^{
screenShot.layer.opacity = 0.0;
} completion:^(BOOL finished) {
[screenShot removeFromSuperview];
}];
for uiviewcontroller transitions in appdelegate
반응형
'iPhone' 카테고리의 다른 글
ERROR ITMS-90206 (0) | 2016.07.02 |
---|---|
관심사 (0) | 2015.06.13 |
Xcode plugin (0) | 2015.04.13 |
UIWebView remove top 20px (0) | 2015.02.04 |
NSData dataWithContentsOfURL returns nil (0) | 2015.01.30 |