Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我设置
self.navigationItem.prompt = @"";
在 中,它使更高viewDidLoad的动画。navigationBar我想显示它更高,但没有动画。我怎么能失去动画?
viewDidLoad
navigationBar
这似乎可以解决问题:
[UIView setAnimationsEnabled:NO]; self.navigationItem.prompt = @""; [UIView setAnimationsEnabled:YES];