Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.definesPresentationContext = YES;
- self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
- self.searchController.searchResultsUpdater = self;
- self.searchController.dimsBackgroundDuringPresentation = NO;
- self.searchController.searchBar.delegate = self;
- self.searchController.searchBar.clipsToBounds = YES;
- self.tableView.tableHeaderView = self.searchController.searchBar;
- self.searchController.searchBar.placeholder = @"Enter name or email";
- [self.searchController.searchBar sizeToFit];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement