iOS实现地图半翻页效果--老代码备用参考
// Curl the image up or down
CATransition *animation = [CATransition animation];
[animation setDuration:0.35];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
if (!curled){
//animation.type = @"mapCurl";
animation.type = @"pageCurl";
animation.fillMode = kCAFillModeForwards;
animation.endProgress = 0.5;
} else {
//animation.type = @"mapUnCurl";
animation.type = @"pageUnCurl";
animation.fillMode = kCAFillModeBackwards;
animation.startProgress = 0.5;
}
[animation setRemovedOnCompletion:NO];
[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[self.view.layer addAnimation:animation forKey :@"pageCurlAnimation"];
// Disable user interaction where necessary
if (!curled) {
} else {
}
curled = !curled;
// Do any additional setup after loading the view, typically from a nib.
最新文章
- PAT Judge
- ACM_1001_Exponentiation 详解
- Unity3D UGUI学习系列索引(暂未完成)
- Learning WCF Chapter2 Service Contracts
- deep learning in nlp 资料文献
- 机器设备(dfs)
- JavaScript知识点整理(一)
- QQ信鸽推送
- selenium 封装
- Java中Dom解析xml文档
- Java(13) 抽象和封装
- tensorflow优化器-【老鱼学tensorflow】
- stylus入门学习笔记
- css实现横向带箭头步骤流程效果
- Houdini技术体系 过程化地形系统(一):Far Cry5的植被系统分析
- 可能比文档还详细--VueRouter完全指北
- 使用Holer将本地端口映射到公网
- FCC JS基础算法题(6):Truncate a string(截断字符串)
- eclipse web项目没有run on server
- 20155333 《网络对抗》 Exp9 Web安全基础
热门文章
- Android(java)学习笔记128:使用proguard混淆android代码
- css实现响应式全屏背景
- Find security bugs学习笔记V1.0
- iis7 php urlrewrite 并隐藏index.php
- 支持BLOB操作的Jena框架扩展——JenaBLOB
- SQL 拼接多个字段的值&;一个字段多条记录的拼接 [轉]
- VMWare中安装CentOS6.6不能上网的解决办法
- Checkbox 全选、反选
- HW—可怕的阶乘n!__注意大数据函数的使用BigInteger
- Oracle查询慢, 特别是更新慢问题