Search code examples
iphoneobjective-ccore-animationuinavigationbaruiviewanimation

Objective c - Is there a way to change a leftBarButtonItem with animation?


In some point in my app, I'm programmatically change the leftBarButtonItem of a viewController (I'm changing the entire button look not just the text).

The result is that the button indeed changes but at once, but I want to do it with some animation (The same way it would do the animation to left navigation bar if I push a viewController)

Is it possible?


Solution

  • There is a method specifically for that, called setLeftBarButtonItems:animated:

    It animates the change in bar button items for you.