0
タップすると右にプッシュするUISearchController内にUISearchBarがあります。UISearchControllerのUISearchBarがタップされたときに右にスリップする
は、ユーザーが押したら、私はセットアップにのUIViewController
//Set self object to recieve all the updates of UISearchResultsController
self.searchResultsUpdater = self;
//Hide navigation bar during presentation of the UISearchController.
self.hidesNavigationBarDuringPresentation = YES;
//set delegates to UISearchBar and UISearchController
self.delegate = self;
self.searchBar.delegate = self;
//Set scope bars that does not exist
self.searchBar.scopeButtonTitles = [NSArray array];
//Some additional settings that can be configured
self.context.definesPresentationContext = YES;
self.dimsBackgroundDuringPresentation = NO;
[self.searchBar sizeToFit];
self.tableView.tableHeaderView = self.searchBar;
self.context.edgesForExtendedLayout = UIRectEdgeTop;
self.searchBar.clipsToBounds = YES;
内の検索バーを使用するコードの後に検索バーがどのように見えるかです検索バー、それはこのように動作します。
他のコントローラはすべて正常に動作しています。それは奇妙な方法で動作し続けるただのコントローラです。
このアプリケーションはiPhoneとiPadの両方をサポートしていますが、iPhone上ではうまく機能しているようですが、iPad上では不思議な動作をします。