Open
Conversation
…ead of the app delegate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!