Are there any third-party libraries to do cool vie

2019-03-08 01:29发布

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?

2条回答
等我变得足够好
2楼-- · 2019-03-08 01:46

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
查看更多
We Are One
3楼-- · 2019-03-08 01:50

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.

查看更多
登录 后发表回答