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 8256825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:59:29+00:00 2026-06-08T01:59:29+00:00

In my iphone app i have a search screen with UISearchDisplaycontroller uisng this against

  • 0

In my iphone app i have a search screen with UISearchDisplaycontroller uisng this against each scopeBar key words we can filter the search result, But using only this scopeBar buttons i couldnt reach my requirement.

See, I have a list of members, I need to search members based on state, country, city, name. and i should display these search types in a bar (say scopBar).

After selecting a scopeBar button(say Country)if we type ‘India’ in the search bar it should display all the members of that country. How can i achieve these kind of search ? I have tried many search tutorials, But those didnt help me. Please help me out.

Thanks in Advanced!

  • 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-08T01:59:32+00:00Added an answer on June 8, 2026 at 1:59 am

    As per Apple’s Sample code, we can use 2 arrays during search, 1 actual, and 2nd is filtered array as in example reference :

    http://developer.apple.com/library/ios/#samplecode/TableSearch/Listings/MainViewController_m.html#//apple_ref/doc/uid/DTS40007848-MainViewController_m-DontLinkElementID_6

    But in your case, we are requiring 3 arrays, third array will be local array (let’s call scopedFilteredArray) during filteration.

    1. Search all objects by scope bar : Using Predicate (contained by scopedFilteredArray, from actual array).

    2. Search filtered objects from scopedFilteredArray and save them in filteredArray for display.

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

Sidebar

Related Questions

I'm using the toolbar in my iPhone app. I have a search button on
I have an iPhone app with search suggestions that divides the search suggestions into
In my iPhone app, I have requirement to search the SQLite database. I will
I have an app very similar to address book of iphone. The entire search
I have an iphone app (iOS 5) that uses a UISearchBar to search an
In my project (iPhone app) I have a nice webview to allow users to
In my iPhone app I have a table view where I add a tick
I have a UIWebView in my iPhone app that have a web page with
I'm developing an iPhone app and have a question about memory management. Let's say
In my viewDidLoad method of my iPhone app I have the following code: zombie[i].animationImages

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.