Hello
For reasons too boring to describe, I am programatically changing my application's tab bar to move to a different view. Unfortunately that is instant and we would like the normal snazy load effect you get when you would do a pushViewController
on a navigation controller.
I am very inexperienced with using animations in objc c, I attempted to use some code I found here for mine:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:[self view] cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:2.0];
[[[self nav] tabBarController] setSelectedIndex:2];
[UIView commitAnimations];
This does an animation of sorts, the nav bar mysteriously appears from above, not quite what I wanted :)