4

When I set

self.navigationItem.prompt = @"";

in viewDidLoad, it animates the navigationBar taller. I want to show it taller, but without the animation. How can I lose the animation?

Tarek Hallak
  • 18,422
  • 7
  • 59
  • 68
james0n
  • 586
  • 3
  • 15
  • Try using one of the methods from http://stackoverflow.com/questions/5443742/explicitly-disabling-uiview-animation-in-ios4 – cobbal Jul 04 '13 at 19:35

1 Answers1

11

This seems to do the trick:

[UIView setAnimationsEnabled:NO];
self.navigationItem.prompt = @"";
[UIView setAnimationsEnabled:YES];
james0n
  • 586
  • 3
  • 15