• 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);

                                              }];

                         }];

  • 相关阅读:
    linux 内核升级4.19
    监管对保险页面的要求
    软件测试-测试可交付成果
    软件测试架构思想
    dockerfile
    转载:.NET Core 图片操作在 Linux/Docker 下的坑
    docker build速度过慢问题
    .net 5 发布到 docker 或 docker 镜像方法
    Centos 安装 docker 教程
    DQL、DML、DDL、DCL全名是啥?
  • 原文地址:https://www.cnblogs.com/xuvw/p/2673406.html
Copyright © 2020-2023  润新知