How do you make a UIBarButtonItem animation flip?
Posted
by Andrew Arrow
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Arrow
Published on 2010-05-07T00:07:43Z
Indexed on
2010/05/08
6:28 UTC
Read the original article
Hit count: 438
In the iPod app on the iPhone there is a UIBarButtonItem in the upper right toolbar that flips between the song and track listings for the album. When you select the button, the button itself does a flip animation.
Is there a way to do this with:
CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:[self superview] cache:YES];
Do I need to make a UIBarButtonItem with initWithCustomView vs. initWithImage to achieve this?
© Stack Overflow or respective owner