博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS实现地图半翻页效果--老代码备用参考
阅读量:6942 次
发布时间:2019-06-27

本文共 797 字,大约阅读时间需要 2 分钟。

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

转载地址:http://tsanl.baihongyu.com/

你可能感兴趣的文章
Unity3D性能优化--- 收集整理的一堆
查看>>
数据库基础
查看>>
基础概要
查看>>
网络传输中的三张表,MAC地址表、ARP缓存表以及路由表
查看>>
FOR ALL ENTRIES IN 与 INNER JOIN 写在一个SQL上影响效率
查看>>
【转载】aspx,ascx和ashx使用小结
查看>>
Java缓存类的实际应用场景
查看>>
转:Linux tcpdump命令详解
查看>>
JAVA集合类汇总
查看>>
我的Android进阶之旅------> Android在TextView中显示图片方法
查看>>
调整CodeIgniter错误报告级别
查看>>
ng-options 如何实现其中一项option禁选
查看>>
from语法导入
查看>>
linux 下的emoji在MariaDB中的字符集修改
查看>>
RMQ算法
查看>>
python连续爬取多个网页的图片分别保存到不同的文件夹
查看>>
了解url
查看>>
时间记录日志
查看>>
Node.js
查看>>
进程 线程通信方式(转载)
查看>>