zoukankan      html  css  js  c++  java
  • core animation 翻页效果

    [UIViewanimateWithDuration:2 

                         animations:^{

     

                             self.cover.transform = CGAffineTransformMakeTranslation(0,0);

                             CATransform3D _3Dt = CATransform3DIdentity;

                             _3Dt =CATransform3DMakeRotation(M_PI/2.0f,0.0f,-1.0f,0.0f);

                             _3Dt.m34 = 0.001f;

                             _3Dt.m14 = -0.0005f;

                             

                             self.cover.layer.transform =_3Dt;

                         } 

                         completion:^(BOOL value){

                             NSLog(@"temp:%@,%f",self.cover,self.cover.layer.anchorPoint.x);

                             [UIView animateWithDuration:3 

                                              animations:^{

                                                  CATransform3D _3Dt = CATransform3DIdentity;

                                                  self.cover.layer.transform =_3Dt;

                                              } 

                                              completion:^(BOOL value){

                                                  NSLog(@"end:%@,%f",self.cover,self.cover.layer.anchorPoint.x);

                                              }];

                         }];

  • 相关阅读:
    二、gulp报错The following tasks did not complete
    一、python演示创建文件
    二、小程序的框架周期
    一、更改路由配置
    spring boot 实现文件下载
    sonarqube扫描安卓代码
    jenkis +sonarqube 对后端代码静态扫描,钉钉群通知执行结果(记录)
    SonarQube 平台搭建代码审查平台步骤
    python list的一个面试题
    oracle单机部署
  • 原文地址:https://www.cnblogs.com/xuvw/p/2673406.html
Copyright © 2011-2022 走看看