在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:
- UIView
- 用于ad-hoc按钮的UIToolbar(列表的过滤器按钮)
- 通过UIToolbar上的UISearchBar将搜索组件与列表集成
- UITableView
- UIView
- UIToolbar for ad-hoc buttons (filter button for the list)
- UISearchBar over the UIToolbar to integrate the search component with the list
- UITableView
完美地使用以前版本的IOS SDK。
Working perfectly on the previous versions of the IOS SDK.
但是在IOS7中我们遇到了下一个麻烦:
But in IOS7 we have the next troubles:
- UIToolbar和UISearch栏不再可见
- 我们集成了UIRefreshBar组件,刷新后UITableView总是在UINavigationBar下移动 li>
有什么建议吗?
答
关于
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];