Monthly Archives: May 2011

Custom UIViewController transitions (updated)

Update: Um yeah… I can see now that there was a mistake in the code. I replaced self.mainNavController with self.navigationController and removed that nonsense with the delegate. Now it works.

Today i tackled the task of creating custom transitions between UIViewControllers. Before i started i thought this might be hard, but far from it! All you have to do is subclass UIViewController.

Please note that I am creating a FadeIn/FadeOut Transition. If you need something else, the process is basically the same, you just have to change the properties that are animated.

Step 1: The Basic Idea

At first I subclassed UIViewController. Lacking creativity in that department i named the class MyCustomUIViewController 🙂

Continue reading