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

                                              }];

                         }];

  • 相关阅读:
    福利 | 简历模板大放送
    如何脱颖而出?成为优秀的人
    未来最重要的三个能力
    如何提升你的阅读能力?
    2016 Top 10 Android Library
    如何提升你的面试机会?
    推荐一些非常有用的学习网站
    谈谈学习方法
    你为什么还不够优秀?
    vue
  • 原文地址:https://www.cnblogs.com/xuvw/p/2673406.html
Copyright © 2011-2022 走看看