0
它的所作所爲在UISplitViewController的RootViewController的 -有什麼辦法可以爲UISplitViewController RootViewController實現不可滾動的頭文件嗎?
UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 0)];
[searchBar setPlaceholder:@"Search within application"];
searchBar.delegate = self;
[searchBar sizeToFit];
searchBar.tintColor=[[UIColor alloc] initWithRed:212.00/255 green:236.00/255 blue:256.00/255 alpha:1.0 ];
self.tableView.tableHeaderView = searchBar;
[searchBar release];
它的正常工作,但是當我們滾動的tableview搜索欄也與實現代碼如下行移動。
我想實現對用戶始終可見的搜索欄。
我可以嘗試使用SearchDisplayController,但在UISplitViewController中,我們沒有獲取RootViewController的.xib文件。
請幫我解決這個問題。