开发者

some CATransition string types do not work

I tested CATransition string types as below

@"suckEffect"
@"spewEffect"
@"genieEffect"
@"unGenieEffect"
@"rippleEffect"
@"twist"
@"tubey"
@"swirl"
@"charminUltra"
@"zoomyIn"
@"zoomyOut"

I found that only @"suckEffect",@"rippleEffect" DO work. All others are replaced by Fade Effect.

Even the effect of type @"suckEffect",@"rippleE开发者_运维知识库ffect", it looks like subtype has no function.

I do not know if what I got is right or not?

Welcome any comment.

Thanks

interdev


Kindly use this Effects

CATransition *transition = [CATransition animation];
transition.type = @"suckEffect"; // Change to follow types
//transition.type = kCATransitionPush;
transition.duration = 2.0f;
transition.timingFunction = UIViewAnimationCurveEaseInOut;
[self.view.layer addAnimation:transition forKey:@"transitionViewAnimation"];
  • kCATransitionFade
  • kCATransitionMoveIn
  • kCATransitionPush
  • kCATransitionReveal
  • @"cameraIris"
  • @"cameraIrisHollowOpen"
  • @"cameraIrisHollowClose"
  • @"cube"
  • @"alignedCube"
  • @"flip"
  • @"alignedFlip"
  • @"oglFlip"
  • @"rotate"
  • @"pageCurl"
  • @"pageUnCurl"
  • @"rippleEffect"
  • @"suckEffect"

Note: Click the Link to View More options

http://iphonedevwiki.net/index.php/UIViewAnimationState


These transitions are all undocumented and considered "private". So there simply is no guarantee that they exist or work, and if you use them your app is likely to get rejected by Apple. But for some documentation, see the iPhone dev wiki.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜