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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:19:24+00:00 2026-05-22T17:19:24+00:00

In my app, I have a search bar above my table view. My problem

  • 0

In my app, I have a search bar above my table view. My problem is this:

If I go into my table view and add an item to any level of the hierarchy, and then go back to the root (where the search bar is) and try to search for it, it doesn’t show up in the results it.

For example, if I already have itemOne and itemTwo in core data when the app is launched, I can search and find them just fine. But if I add itemThree and try to search for it, it is not found.

The array that my search bar uses to load all of the items from Core Data into is located in the viewDidLoad method:

- (void)viewDidLoad 
{

    listOfItems = [[NSMutableArray alloc] init];

    NSMutableArray* allItemArray = [CoreDataHelper searchObjectsInContext:@"Item" :entitySearchPredicate :@"Description" :YES :managedObjectContext];
    NSDictionary *allItemDict = [NSDictionary dictionaryWithObject:allItemArray forKey:@"Items"];

    [listOfItems addObject:allItemDict];
}

I know that the viewDidLoad isn’t running after I add the last item, and that is my problem. But I don’t know where to put this code that it will update with any items that have been added.

Any input is appreciated. Thanks.

  • 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-22T17:19:24+00:00Added an answer on May 22, 2026 at 5:19 pm

    Do the same things on viewWillAppear ..things will be right.

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

Sidebar

Related Questions

I have a table view with a search bar at the top of the
Here is the problem, I have an app with a search bar, the user
I have an app that includes a search feature. This feature is implemented by
In my app, I have a search bar which can search facebook user by
I have implemented the search bar in my app and it´s working fine, but
In OS3.0 a lot of plain table views have an initially hidden search bar
I'm building a SL4 app. I have two controls, a top search bar and
How can I make the search bar to scroll together with the table view?
I have a Django app where most of the search is driven by foreign
I have a MySQL/Rails app that needs search. Here's some info about the data:

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.