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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:19:21+00:00 2026-05-25T11:19:21+00:00

So I am working on an iOS search where I have to implement a

  • 0

So I am working on an iOS search where I have to implement a keyword search. I have used a custom view controller with a Search Display Controller object embedded into it. What I want to do is be able to store the search terms somewhere when the search button is clicked. I have thought of two ways:

  1. store them locally in the device and query them up whenever a search is performed
  2. store them in the web app this iOS app is connected to and perform a GET request to the web app whenever a search is performed

The second one I know how to do but I have no idea how to do the first one.

SO how do I store the search terms locally? Also, what would be a better option? The first, the second, or another?

EDIT: A remote API holds the data I am querying. I want to mimic the google search app functionality, in which it stores maybe 10-20 keywords that are searched by the user.

Thanks in advance!

  • 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-25T11:19:22+00:00Added an answer on May 25, 2026 at 11:19 am

    It’s tough to recommend with more understanding of the data and usage. For example, number of keywords? keyword list static or grows? keywords shared? what are you searching – local or remote?

    EDIT: You clarified 10 – 20 strings. In that case, consider something as simple as -[NSArray writeToFile:atomically:] and just persist in a file. If you read and write in NSArray, you can work on them very quickly in memory.

    Original:

    If you store locally and it’s a growing dynamic set of keywords, I would recommend CoreData or Sqlite directly. Sqlite is a very fast efficient local DB. If you do sqlite, checkout fmdb on github. It’s an objective-c wrapper.

    Concerning the pros and cons:

    1. Local storage will be faster – you won’t have network latency. Especially if you want to do type ahead queries on key stroke. Keeping in memory is even faster.
    2. Consider how much data you’re storing. How many key words are there? Is it feasible to store on the device in a DB or a file?
    3. Do you want the keywords to be shared from multiple users? In that case either storing on the server or a combination of storing on the server and syncing to the device is needed.
    4. Do the keywords grow over time based on usage? In that case a local database is better.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an iOS app where I want to load one view if
Working on a project at the moment and we have to implement soft deletion
I have recently started working in iOS Development, I have noticed the app size
I am working in iOS 5,and before loading my application,I want to open a
Hi i am working on iOS SDK5 with xcode 4.2 and i want to
I have a code that was working until iOS 4.3.5, now in iOS 5
I'm working with iOS 5 and have dynamically generated cells in a table (2
I have been using the MGTwitterEngine and it is working fine on IOS 4.x,
In my iPad application, i have used UISplitViewController where master view contains table view
I`m working with iOS SDK If I have NSString *str = @Something cool; NSLog(@Text

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.