转场动画

 转场动画是添加给layer的!

  switch (btn.tag) {
  case 0:
  animation.type = @"cube";//---立方体
  break;
  case 1:
  animation.type = @"suckEffect";//103 吸走的效果
  break;
  case 2://前后翻转效果
  animation.type = @"oglFlip";//When subType is "fromLeft" or "fromRight", it's the official one.
  break;
  case 3:
  animation.type = @"rippleEffect";//110波纹效果
  break;
  case 4:
  animation.type = @"pageCurl";//101翻页起来
  break;
  case 5:
  animation.type = @"pageUnCurl";//102翻页下来
  break;
  case 6:
  animation.type = @"cameraIrisHollowOpen ";//107//镜头开
  break;
  case 7:
  animation.type = @"cameraIrisHollowClose ";//106镜头关

你可能感兴趣的:(转场动画)