【发布时间】:2014-12-16 19:02:42
【问题描述】:
当我拉动刷新时,我正在使用 UIRefreshControl 和 UISearchBar,我在 uiviewcontroller 的顶部看到一个白色背景
UISearchBar *searchBar =
[[UISearchBar alloc] initWithFrame:
CGRectMake(0, 0, self.tableView.frame.size.width, 44.0)];
searchBar.autocorrectionType = UITextAutocorrectionTypeNo;
self.tableView.tableHeaderView = searchBar;
_refreshControl = [[UIRefreshControl alloc] init];
[_refreshControl addTarget:self action:@selector(update) forControlEvents:UIControlEventValueChanged];
[self.tableView addSubview:_refreshControl];
问题是上面的白色背景
有什么想法吗?
【问题讨论】:
标签: ios uitableview uisearchbar uirefreshcontrol