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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:14:34+00:00 2026-06-17T10:14:34+00:00

Thank you for reading my question. I have an interesting problem that I cannot

  • 0

Thank you for reading my question. I have an interesting problem that I cannot figure out and hoping the community may be able to help. I have a UITableViewController (LibraryViewController) that has a UISearchDisplayController as a variable. I have two other objects. First, a subclass of NSObject that defines my data object (two NSString objects), called LibraryDataObject. The second, a subclass of NSObject that has two NSMutableArray objects and implements the UITableViewDataSource protocol called LibraryDataModel.

LibraryViewController also owns an instance of a LibraryDataModel called libraryDataSource. It is initialized properly. Also, the delegates for LibraryViewController and the UISearchDisplayController are set to LibraryDataModel. The non-searched view populates correctly. And, when I search, the list populates the correct items based on the search terms. The code is based on the TableSearch documentation code.

Here is where my problem becomes evident. When searching, the table is reduced to the terms in the search box. However, when I scroll the table, and move beyond the bounds of the search terms, it starts messaging tableView:cellForRowAtIndexPath: with the tableview of the base UITableViewController.

Has anyone ran into this particular condition before? Thank you.

  • 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-17T10:14:35+00:00Added an answer on June 17, 2026 at 10:14 am

    I opened a case with Apple and they helped me out. The behavior isn’t what I want, but it explains this problem. I was adding the search bar by pushing it onto the stack with [self.parentViewController.view addSubview:searchBar]; However, I should have added the search bar with self.tableView.tableHeaderView = searchBar; This problem went away, however the search bar is at the top of the tableview, and not static on the view. Seeing if that can be modified.

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

Sidebar

Related Questions

I have question that comes from a algorithms book I'm reading and I am
Thank you for reading my question. I am building a form that will let
I have an interesting situation that my usually clever mind hasn't been able to
I was reading this post and had a question that I didn't think it
thank you for reading my question. Following situation: -A sharepoint list, based on a
I have a question, is this possible and how? Reading bytes from a buffer
I have a question for the DBA's out there: If I scale from a
Here is an interesting optimization problem that I think about for some days now:
Thank you for reading my question. I am trying to make a site where
I have a question to do please! I've been reading about how to create

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.