tec*_*vvy 2 cocoa-touch objective-c uitableview uisearchbar ios7
我已将搜索栏添加到tableview的tableHeaderView.但是,写作
self.tableView.contentOffset = CGPointMake(0, 44);
Run Code Online (Sandbox Code Playgroud)
要么
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:NO];
Run Code Online (Sandbox Code Playgroud)
将搜索栏隐藏在顶部导航栏后面,但即使用户向下滑动桌面视图也不可见.它再次隐藏起来.这似乎在iOS 6中运行良好,但在iOS 7 beta中没有.我需要做什么?
修正它...
self.edgesForExtendedLayout = UIRectEdgeNone;
Run Code Online (Sandbox Code Playgroud)
在viewWillAppear,它需要在执行之前检查iOS 7,因为它是iOS7中引入的新方法.
等离子体
| 归档时间: |
|
| 查看次数: |
3762 次 |
| 最近记录: |