我想让我的搜索栏是静态的,而不是用tableview滚动。我这样做了:
self.tableView.tableHeaderView = searchBar;
但我想让我的搜索栏保持静态。我有一台UItableViewController。如何使其成为静态的?
发布于 2010-07-28 17:12:38
您应该将UISearchBar添加到主视图中。使用IB来完成此操作,或者使用
[self.view addSubview:searchBar];如果您是以编程方式创建它们的话。无论哪种方式,也要确保UITableView定位在低约40px的位置。
https://stackoverflow.com/questions/3350398
复制相似问题