13

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.

Community
  • 1
  • 1
Eric Brotto
  • 53,471
  • 32
  • 129
  • 174

2 Answers2

5

This is a good idea!

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

Yannick Loriot
  • 7,107
  • 2
  • 33
  • 56
5

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!

chikuba
  • 4,229
  • 6
  • 43
  • 75
  • Wow. This one definitely seems useful. Nice one. – Eric Brotto Sep 07 '11 at 10:04
  • Is this trick safe for AppStore? – eonil Sep 12 '11 at 13:30
  • It won't flag on any of their automated systems and will probably get through. However, you're going to have to check that they keep on working on every version of iOS as they'll probably break in some future version. – Alastair Stuart Sep 13 '11 at 14:51
  • 1
    @Alastair: What leads you to believe that this would be accepted? `-pushViewController:transition:` isn't in any public documentation. I'd recommend against its use, even if Apple has overlooked it in the past. – Justin Sep 15 '11 at 23:36
  • Apologies, I didn't realise this wasn't a public API. – Alastair Stuart Sep 16 '11 at 08:54