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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:43:24+00:00 2026-05-16T22:43:24+00:00

I have an annoying problem. I have an UINavigationController with an UITableView in the

  • 0

I have an annoying problem. I have an UINavigationController with an UITableView in the Master (Left) pane of my UISplitViewController. When I do normal operations, things push on on to the navigation controller fine.

alt text http://files.droplr.com/files/8851942/WDO5y.working.jpg

However, when I do a search and push things on, it’s like it doesn’t account for the space the navigation bar needs. It pushed the new controller on at the very top, then puts the navbar on, overlapping the content!

alt text http://files.droplr.com/files/8851942/WDRem.search.jpg

I should add it works fine when doing it in portrait (in the popup menu) and on the iphone. Is this an UISplitViewController bug?

  • 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-16T22:43:25+00:00Added an answer on May 16, 2026 at 10:43 pm

    OK, I’ve got your answer- [I also posted this answer to the linked question]-

    Here are the steps that worked for me [containing some pseudocode]:

    1) Since you are searching you are most certainly already overriding ShouldReloadForSearch– So just add piece of code that saves/stores the forSeachString.

    2) This one may vary quite a bit depending on your app- but the gist for this step is that you need to clear out the stored search string [set to null] if no search results are loaded. I did this in my UITableViewSource. I have 2 constructors- one for the full dataset and another on for the filtered [search results] dataset. So I just set it to null in my full dataset constructor. Yeah, you could do it differently no doubt but that’s how I did it.

    3) Next, do as the original “answer” states and call SetActive – [self.searchDisplayController setActive:NO];. They advocated doing it in override of ViewDidAppear. I didn’t do that… I did this immediately after I pushed the next UIViewController in my RowSelected override.

    4) Last, within your UIViewController that has the UISearchDisplayController attached- check for your saved search string and if it exists then do the following: 1) call SetActive again BUT this time with a true parameter ie setActive:YES… then 2) set the searchBar text to your saved search string value. I did this in the ViewWillAppear override.

    Long story short… this worked for me AND it maintains the search results. Setting the searchBar text in step 4 is the key… this effectively gets the filter to persist.

    Hope this helps someone

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

Sidebar

Related Questions

I have an annoying problem with Java’s layout managers. I have the following situation:
I have a annoying problem with @Override annotations in Eclipse. Often when i import
i'm using a JSpinner like a table cell editor, i have one annoying problem:
Got an annoying problem here. I've got an NHibernate/Forms application I'm working through SVN.
I'm building a simple image gallery with jquery but running into an annoying problem.
Well, sorry about the confusing title but I'm having a slightly annoying problem with
we've got an almost-finished-ready-to-go magento shop, that has developed an annoying problem. On the
I have a PHP script that I keep updated and need to run on
I am using Ogre3D and sometimes when there is a break (or an exception)

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.