LoginSignup
1
1

More than 5 years have passed since last update.

UISearchControllerカスタマイズメモ

Last updated at Posted at 2015-05-26
- (void)presentSearchController:(UISearchController *)searchController {
    searchController.searchResultsController.view.hidden = NO;
    [self updateSearchResultsForSearchController:searchController];
}

- (void)willPresentSearchController:(UISearchController *)searchController {
    dispatch_async(dispatch_get_main_queue(), ^{
        searchController.searchResultsController.view.hidden = NO;
    });
}

- (void)didPresentSearchController:(UISearchController *)searchController {
    // do something after the search controller is presented
}

- (void)willDismissSearchController:(UISearchController *)searchController {
    // do something before the search controller is dismissed
}

- (void)didDismissSearchController:(UISearchController *)searchController {
    // do something after the search controller is dismissed
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1