zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    pic32 + Vs1003 正弦测试通过
    c强转问题
    Ucos ii 移植到LPC2148
    Pic32时钟
    linux下的文件扫描程序(转载)
    pic32 spi驱动pmodcls lcd液晶屏
    最*不太*
    vhdl元件例化语句
    被忽略了的gcc 浮点选项
    Linux C/S文件传输和云端文件下载服务模拟
  • 原文地址:https://www.cnblogs.com/isItOk/p/4875718.html
Copyright © 2011-2022 走看看