Are there any third-party libraries to do cool view transitions in iPhone OS?

纵饮孤独 提交于 2019-12-04 07:37:35

问题


I don't really like that flip-transition. It's boring. I'd like to see something cool, like water effect, fog, or whatever. Is there something available or do I have to (re)invent the wheel for that?


回答1:


The animation types available via [CATransition animation] are:

  • kCATransitionFade
  • kCATransitionPush
  • kCATransitionMoveIn
  • kCATransitionReveal
  • @"suckEffect"
  • @"spewEffect"
  • @"genieEffect"
  • @"unGenieEffect"
  • @"rippleEffect"
  • @"twist"
  • @"tubey"
  • @"swirl"
  • @"charminUltra"
  • @"zoomyIn"
  • @"zoomyOut"

The transition types available via [UIView setAnimationTransition:forView:cache:] are:

  • UIViewAnimationTransitionFlipFromLeft
  • UIViewAnimationTransitionFlipFromRight
  • UIViewAnimationTransitionCurlUp
  • UIViewAnimationTransitionCurlDown



回答2:


The iPhone SDK comes with a whole bunch of built in animations. rpetrich listed some of them and I do believe that there are more.

For example using the UINavigationController class provides stock animation which, while simple, is quite effective.



来源:https://stackoverflow.com/questions/825826/are-there-any-third-party-libraries-to-do-cool-view-transitions-in-iphone-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!