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

                                              }];

                         }];

  • 相关阅读:
    快速排序
    jenkins 升级
    JAVA中的Random()函数
    拦截器
    两个链表合并不加入新的链表空间
    统计字符 比如aaabbcca----3a2b1c1a
    折半查找两种实现
    字符串偏移
    java值传递
    基于zookeeper实现配置集中管理【转】
  • 原文地址:https://www.cnblogs.com/xuvw/p/2673406.html
Copyright © 2011-2022 走看看