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

  • Home
  • SEARCH
  • 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 6196195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:36:07+00:00 2026-05-24T03:36:07+00:00

I have a UISearchBar and its respective Search Display Controller laid out in xib

  • 0

I have a UISearchBar and its respective Search Display Controller laid out in xib file via InterfaceBuilder. The search bar is configured in Interface Builder with “Shows Scope Bar” unchecked. However, once text entry starts in the search bar and the ‘search overlay’ is shown, UISearchBar is shown with the Scope Bar that has 2 buttons and their default “Title”.

How do I make sure that the Scope Bar is not shown when SearchBar editing has begun?

I’ve tried these from my ViewController class that manages the search bar:

- (void)viewDidLoad
{    
    UISearchBar *searchBar = self.searchDisplayController.searchBar;
    NSLog(@"Scopebar is visible? %@", searchBar.showsScopeBar == YES ? @"YES" : @"NO");
    searchBar.showsScopeBar = NO; // Doesn't seem to have an effect
}

#pragma mark - UISearchBarDelegate methods
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
{
    [searchBar setShowsScopeBar:NO]; // doesn't seem to work either
    return YES;
}

Apple’s sample code, TableSearch, that illustrates search has the 4 button scope bar once search has started.

  • 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-05-24T03:36:09+00:00Added an answer on May 24, 2026 at 3:36 am

    If you look in InterfaceBuilder you will see “Title” twice in the “Scope Titles” list just underneath the “Shows Scope Bar” checkbox. InterfaceBuilder adds them when you check the checkbox. It doesn’t remove them when you uncheck, but they will still appear when you click in the Search box in your running app. In InterfaceBuilder, temporarily re-enable the “Shows Scope Bar” checkbox to allow you to select each “Title” row and click the “-” button to remove them. Then un-check “Shows Scope Bar”. You shouldn’t see them any more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a search functionality using UISearchBar that occurs on-the-fly, so I think it
I have a UISearchBar and a UISearchBarDisplayController set up by a xib. After a
I have a view controller which contains a UISearchBar @interface TradeFindHeaderViewController_iPhone : UIViewController {
I have a table to show searchData in iOS with UISearchBar. When i search
I have a UISearchDisplayController and UISearchBar hooked up to my ViewController via Outlets from
I have a UITableViewController that has a UISearchbar in its header view. When the
How do I find out if the keyboard is up? I have a UISearchbar
I have a UISearchBar setup and when its being used, it has an overlay
I have an UIViewController with several subviews in its view property ( UISearchbar and
I have a UISearchBar. It works perfectly until I search once and it gives

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.