how can I animate the UINavigationBar background change on UIViewController push?
问题 My app uses two different backgrounds for the UINavigationBar to indicate to the user what level in the hierarchy they're at. When I push a UIViewController that needs the second background it lacks animation, the background changes immediately as soon as the UIViewController is pushed. How can I animate this so that the background change fades as the view is being changed? 回答1: I know this is an old thread, but this worked for me: CATransition *transition = [CATransition animation];