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

查看:111
本文介绍了在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. UIView

  2. 用于ad-hoc按钮的UIToolbar(列表的过滤器按钮)

  3. 通过UIToolbar上的UISearchBar将搜索组件与列表集成

  4. UITableView

  1. UIView
  2. UIToolbar for ad-hoc buttons (filter button for the list)
  3. UISearchBar over the UIToolbar to integrate the search component with the list
  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. UIToolbar UISearchBar 不再可见,请在下面的代码中写下 viewDid加载,你的问题就解决了。

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天全站免登陆