Tuesday, January 14, 2014

UINavigationController Custom Animations In iOS 7

Prior to iOS 7, implementing custom transitioning animations from a UINavigationController's push and pop methods required quite a bit of hackery. Early on in my own development efforts I made an attempt to override the standard animation transitions in my own UINavigationController subclass, but ultimately had to throw them onto the backburner; forever enclosed in comments. 

My current sprint, however, has included a story that forced me to go back and revisit my painful experiences. I can't expect my app to stand out from the others using the regular ol' transitions packaged by iOS. Fortuitously I managed to stumble upon these two excellent primers on iOS 7's new offerings:

Tyler Tillage - iOS 7 Tutorial Series: Custom Navigation Transitions & More
Bradford Dillon - iOS7: Custom Transitions 

These are excellent reads and I encourage you to peruse them. The long and short of them is all about protocols and animation blocks. They also provide example implementations and do a far better job of illustrating the new capabilities than I could in this blog post.

Time to get coding.

No comments:

Post a Comment