带有状态栏动画转换错误ios7的UISearchBar
我的UISearchBar动画有问题。
I have a problem with UISearchBar animation.
状态栏打开时动画有问题。否则没关系。
我以编程方式创建了tableview和搜索栏。 uisearchbar位于tableview的标题视图中。保持这种状态非常重要。我知道当你使用故事板时它的工作正常。
The animation is buggy when the statusbar is on. Otherwise it is okay. I created the tableview and the searchbar programatically. The uisearchbar is in the headerview of a tableview. It's important that it stays that way. I know its working okay when you use the storyboard.
我创建了一个非常基本的示例项目,因为我认为这是向您展示问题的最简单方法。
我花了几个小时才找到解决方案,但我无法理解。任何帮助将不胜感激。
I created a very basic sample project as I think this is the easiest way to show you the problem. I have spent several hours to find the solution but I just can't figure it out. Any help would be greatly appreciated.
以下是示例项目的链接: SearchBarProject !
Here's a link to the sample project: SearchBarProject!
我发现
self.navigationController.navigationBar.translucent = YES;
让我的动画减少错误