Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:25:35+00:00 2026-06-06T03:25:35+00:00

I have a Controller with a search bar at top, and when the user

  • 0

I have a Controller with a search bar at top, and when the user types, autocompleted search results are shown below it, in a UIScrollView.

Problem:
The results show up, but the user can’t scroll those results. The scrollview is frozen. The only way to scroll is to push ‘Cancel’ in the Search bar. Tapping “Search” hides the keyboard, but even then the scrollview is frozen.

Desired:
As the user is typing, search results are being autocompleted. At any given time, the user can scroll through those results. They should not have to hit Cancel in order to scroll.

There are more results than will fit on the screen so this isn’t an issue of content being only slightly larger than the screen.

Nothing special in CancelButtonClicked or SearchButtonClicked:

- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {    
   searchBar.text = @"";
}

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar{
[searchBar resignFirstResponder];
[NSThread detachNewThreadSelector:@selector(fetchSearchResult:) toTarget:self withObject:searchBar.text];    
}

- (void)searchBar:(UISearchBar *)searchBar
textDidChange:(NSString *)searchText {

if([searchBar.text length] >=3){
    [mySpinner startAnimating];
    [NSThread detachNewThreadSelector:@selector(fetchSearchResult:) toTarget:self withObject:searchBar.text]; 

}
}

- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar {
self.searchDisplayController.searchResultsTableView.hidden = YES;
// This occurs when user starts entering text
// We want to keep the background area dark

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:25:37+00:00Added an answer on June 6, 2026 at 3:25 am

    I had possibly the same issue: UISearchBar was nested into UIScrollView, so when search results was shown- It was impossible to scroll parent view.
    ..I was puzzled but I learned (UISearchDisplayCtrl private api) that UISearchDisplayController locks all parent scroll views (bitch).

    So U should add category UISearchDisplayController+Custom:

    @implementation UISearchDisplayController (Custom)
    
    - (void)_disableParentScrollViews {
    }
    
    - (void)_enableParentScrollViews {
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following controller: public ActionResult Search(string Name, int? Friend, int? Page) It
I have a search display controller in a table view. In this table view,
I currently have this as a search: <%= form_tag users_path, :controller => 'users', :action
I'm facing following problem actually: I'm using Spring with jQuery. I have Controller: @Controller
My tableview is in this user interface: But when I start search the view
I am using search display controller in my code for searching. But it is
I have an scope bar containing a NSSearchField. The bar can be shown and
I have a UISearchBar and its respective Search Display Controller laid out in xib
I'm trying to set up a search display controller to handle async results from
I have a little issue here. Why does my search bar search when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.