Complete list of transitions you can do between vi

2019-03-09 02:52发布

Are there many other resources for doing creative transitions between views? I am familiar with the following, but I am wondering if there are any more out there. Links to tutorials, examples, source code and API's would be wonderful.

Modal View Controller Example

View Transitions

Thanks!


EDIT 1

Just found this project which is pretty cool. Allows page turning like a book on PDFs and images

Page Turner

which was found on this SOF post. There is also this which is in the same vein.

2条回答
Animai°情兽
2楼-- · 2019-03-09 03:02

One thing I found is that you have "hidden" built in transitions between views when you push them upon the navigationcontroller.

[self.navigationController pushViewController:viewController transition:6]; 

Some of the numbers I know is:

  • 1: the bar and the view goes to the left
  • 2: the bar goes to the left and the content to the right
  • 3: both goes to the right (similar to the normal animation)
  • 6: Fade
  • 10: Some kind of crazy flip

No idea how many it is but it's worth looking in to if you want something different for free!

查看更多
老娘就宠你
3楼-- · 2019-03-09 03:08

This is a good idea!

There is also the HMGLTransitions to make cool 3D transitions. The sources are available on github here: HMGLTransitions. (Video)

查看更多
登录 后发表回答