jeffreycamealy/ChangingBackground — pull request #5 by deebost (2013-11-12 05:17:36+00:00)
Title: complete

finally made a custom uinavigationcontroller transition to look pretty! like example!
seemed like a very simple thing to do! till i saw how horrible the push notification animation looked!

i created a property of UIImageView in the app delegate.h to pass to all other view controllers!
found out this works only if u set the current views background color to [UIColor clearColor];

for the cross dissolve part of the equation for each ViewController i added a - (void) viewDidAppear method to transition the old background color to the new background color, no logic is really needed sense we only have 2 colors, and when the app first loads the color will always be blue, so it will transition to blue on the first load but user will not notice. Other wise when popping back to the firstViewController the animation will cross dissolve from green to blue

the hardest part was creating a custom transition animation for UINavigationController.
I tried many different ways, found out lots of cools way to flip to other view controllers and other things but exactly make it look like i wanted. finally found a good stack over flow post that made it simple for me to understand how to create a custom transition animation (this was the post, second answer) http://stackoverflow.com/questions/2215672/how-to-change-the-push-and-pop-animations-in-a-navigation-based-app
customized it for both the push n pop animation! looks great now!