controller淡入淡出
来源:互联网 发布:淘宝客都用什么软件 编辑:程序博客网 时间:2024/05/16 10:44
{
typedef void (^Animation)(void);
UIWindow* window = self.window;
rootViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
Animation animation = ^{
BOOL oldState = [UIView areAnimationsEnabled];
[UIView setAnimationsEnabled:NO];
window.rootViewController = rootViewController;
[UIView setAnimationsEnabled:oldState];
};
[UIView transitionWithView:window
duration:0.5f
options:UIViewAnimationOptionTransitionCrossDissolve
animations:animation
completion:nil];
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UIStoryboard *board = [UIStoryboardstoryboardWithName:@"Main"bundle:nil];
LoginViewController *loginVC = [boardinstantiateViewControllerWithIdentifier:@"navigationVC"];
AppDelegate *app = [UIApplicationsharedApplication].delegate;
typedefvoid (^Animation)(void);
loginVC.modalTransitionStyle =UIModalTransitionStyleCrossDissolve;
Animation animation = ^{
BOOL oldState = [UIViewareAnimationsEnabled];
[UIViewsetAnimationsEnabled:NO];
app.window.rootViewController = loginVC;
[UIViewsetAnimationsEnabled:oldState];
};
[UIViewtransitionWithView:app.window
duration:0.3f
options:UIViewAnimationOptionTransitionCrossDissolve
animations:animation
completion:nil];
- controller淡入淡出
- 淡入淡出
- 淡入淡出
- 淡入淡出
- 淡入淡出
- 页面淡入淡出效果
- 图象淡入淡出
- 图象淡入淡出(VB6)
- msn淡入淡出窗口
- C#淡出淡入窗体
- 淡出淡入窗体
- 淡入淡出的文字效果
- C#淡出淡入窗体
- 8.4 淡入和淡出
- 淡入、淡出效果
- 图片淡入淡出
- 淡入淡出效果
- 窗口淡入淡出效果
- 正则表达式贪婪与非贪婪模式
- python emacs 相关信息
- U-boot在S3C2440上的移植详解(一)
- ARP协议分析
- form.less及相关less都是干了些什么
- controller淡入淡出
- U-boot在S3C2440上的移植详解(二)
- Windows多线程同步系列之四-----信号量
- UVA 11529-Strange Tax Calculation-求三角形内点数 /二分/two pointers
- Qt使用数据库(1)
- proguaid 混淆代码
- leetcode---Climbing Stairs
- LeetCode(37)-Minimum Depth of Binary Tree
- U-boot在S3C2440上的移植详解(三)