IOS7上UINavigationBar下的UIView [英] UIView under UINavigationBar on IOS7

查看:24
本文介绍了IOS7上UINavigationBar下的UIView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在处理 IOS6 和 IOS7 之间的过渡,并且有下一个问题,暂时没有解决方案:

We're working on the transition between IOS6 and IOS7 and have the next issues, for the moment without solution:

我们视图的结构是下一个:

The structure of our view is the next one:

  1. 界面视图
  2. 用于临时按钮的 UIToolbar(列表的过滤器按钮)
  3. UIToolbar 上的 UISearchBar 将搜索组件与列表集成
  4. UITableView

在之前版本的 IOS SDK 上完美运行.

Working perfectly on the previous versions of the IOS SDK.

但在 IOS7 中,我们遇到了下一个麻烦:

But in IOS7 we have the next troubles:

  1. UIToolbar 和 UISearch 栏不再可见
  2. 我们集成了 UIRefreshBar 组件,刷新后 UITableView 总是在 UINavigationBar 下移动

有什么建议吗?

推荐答案

关于
1.UIToolbarUISearchBar 不再可见,在 viewDidLoad 中写下下面的代码,你的问题就解决了.

Regarding
1.The UIToolbar and UISearchBar is not visible any more write the below code in viewDidLoad and your problem will solved.

[self setEdgesForExtendedLayout:UIExtendedEdgeLeft | 
                                UIExtendedEdgeBottom | 
                                UIExtendedEdgeRight];

这篇关于IOS7上UINavigationBar下的UIView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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