Animating the trash can icon
Signature | -(void)animateToolbarItemIndex:(NSUInteger)index duration:(NSTimeInterval)duration target:(id)target didFinishSelector:(SEL)selector; |
---|---|
Available in | 3.0 – |
You can use the -[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:] method to animate the trash can icon (UIBarButtonSystemItemTrash). The first call will open the trash can, and the second call closes it.
References
- Official reference: UIToolbar
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIToolbar2.h