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.

  • 相关阅读:
    mkdosfs 安装
    块设备驱动程序-内存盘
    usb驱动程序小结(六)
    usb的hid鼠标键盘报告描述符(五)
    usb输入子系统写程序(三)
    usb输入子系统键盘(四)
    usb描述符简述(二)
    linux usb总线驱动(一)
    linux 触摸屏驱动
    lcd驱动框架
  • 原文地址:https://www.cnblogs.com/isItOk/p/4875718.html
Copyright © 2011-2022 走看看