用故事板,我做了這個UITableViewController
:增加大小
好吧,當我開始搜索,在searchBarShouldBeginEditing:
我會隱藏導航欄和顯示範圍欄:
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar {
[self.mySearchBar setShowsScopeBar:YES];
[self.mySearchBar sizeToFit];
[self.mySearchBar setShowsCancelButton:YES animated:YES];
[self.navigationController setNavigationBarHidden:YES animated:YES];
return YES;
}
但是表格的第一個單元格隱藏在範圍欄後面。我想我需要增加表頭,但是我怎麼做?或者有其他方法來解決它?