Search code examples
ioscore-animationuitoolbar

Animating a complete change in the toolbar


I have a toolbar that, at some point in the application, is completely replaced by another toolbar (i.e. another set of toolbar items). How do I animate this replacement?

Note: An ideal animation would be that of sliding the old toolbar items out and sliding the new ones in.


Solution

  • I found the best way to do this is to use setToolbarItems:animate: on the active view, thus avoiding the need for another toolbar.