// 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.

最新文章

  1. PAT Judge
  2. ACM_1001_Exponentiation 详解
  3. Unity3D UGUI学习系列索引(暂未完成)
  4. Learning WCF Chapter2 Service Contracts
  5. deep learning in nlp 资料文献
  6. 机器设备(dfs)
  7. JavaScript知识点整理(一)
  8. QQ信鸽推送
  9. selenium 封装
  10. Java中Dom解析xml文档
  11. Java(13) 抽象和封装
  12. tensorflow优化器-【老鱼学tensorflow】
  13. stylus入门学习笔记
  14. css实现横向带箭头步骤流程效果
  15. Houdini技术体系 过程化地形系统(一):Far Cry5的植被系统分析
  16. 可能比文档还详细--VueRouter完全指北
  17. 使用Holer将本地端口映射到公网
  18. FCC JS基础算法题(6):Truncate a string(截断字符串)
  19. eclipse web项目没有run on server
  20. 20155333 《网络对抗》 Exp9 Web安全基础

热门文章

  1. Android(java)学习笔记128:使用proguard混淆android代码
  2. css实现响应式全屏背景
  3. Find security bugs学习笔记V1.0
  4. iis7 php urlrewrite 并隐藏index.php
  5. 支持BLOB操作的Jena框架扩展——JenaBLOB
  6. SQL 拼接多个字段的值&一个字段多条记录的拼接 [轉]
  7. VMWare中安装CentOS6.6不能上网的解决办法
  8. Checkbox 全选、反选
  9. HW—可怕的阶乘n!__注意大数据函数的使用BigInteger
  10. Oracle查询慢, 特别是更新慢问题