带有状态栏动画转换错误ios7的UISearchBar [英] UISearchBar with statusbar animation transition bug ios7

查看:88
本文介绍了带有状态栏动画转换错误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;

让我的动画减少错误

这篇关于带有状态栏动画转换错误ios7的UISearchBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆