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

                                              }];

                         }];

  • 相关阅读:
    《剑指offer》Q01-12 (牛客10.11)
    北京,我来了
    pods的好处
    iOS那些你从未使用过的属性方法
    重构一个运行超过10年的老项目
    C#泛型
    认真思考创建对象的几种方式
    2014年终总结
    前端优化:AMDclean去除requirejs
    webstorm常用快捷键及插件
  • 原文地址:https://www.cnblogs.com/xuvw/p/2673406.html
Copyright © 2011-2022 走看看