iOS页面间跳转动画效果
来源:互联网 发布:淘宝客服规范用语 编辑:程序博客网 时间:2024/06/06 03:38
[CATransaction begin];
CATransition *transition = [CATransitionanimation];
transition.type = kCATransitionMoveIn;
transition.subtype = kCATransitionFromBottom;
transition.duration=0.5f;
transition.fillMode=kCAFillModeForwards;
transition.removedOnCompletion=YES;
[[UIApplicationsharedApplication] .keyWindow.layeraddAnimation:transition forKey:@"transition"];
[[UIApplicationsharedApplication] beginIgnoringInteractionEvents];
[CATransactionsetCompletionBlock: ^ {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(transition.duration * NSEC_PER_SEC)),dispatch_get_main_queue(), ^ {
[[UIApplicationsharedApplication] endIgnoringInteractionEvents];
});
}];
[selfpresentModalViewController:content animated:NO];
[CATransaction commit];
此处已经可以实现效果了,可以进项目区试试 下面的是各种跳转的type
animation.type = kCATransitionFade;
- iOS页面间跳转动画效果
- iOS开发Modal页面跳转动画效果
- Android页面跳转动画效果
- iOS页面切换动画效果
- ios页面跳转动画设置 animation
- iOS 页面跳转动画CATransition详细分析
- android仿ios页面跳转效果
- WP7中为页面跳转添加动画效果
- jquerymobile 页面跳转闪屏问题并且引入动画效果
- 设置整体App页面跳转的动画效果
- 动画效果汇总(一):页面跳转和添加
- tab跳转动画效果
- iOS模态跳转实现push动画效果
- 启动动画 跳转页面
- swift页面跳转动画
- UIView 页面跳转动画
- Android--页面跳转动画
- 常用页面跳转动画
- 安卓中在代码中设置dialog的样式
- nginx 多网址多端口多项目精简配置-1
- [微积分学习]Day 4.单侧极限
- python
- ASP.NET 自定义服务器控件的使用
- iOS页面间跳转动画效果
- linux中内存泄漏的检测(五)记录内存泄漏的代码
- 并查集详解
- 将盘mount到已存在路径,路径下文件显示不了
- initrd和initramfs 解析
- 简单理解python下的字符串
- x265-1.7版本-common/threadpool.cpp注释
- 螺旋矩阵题解
- Shell & SSH