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 CSS layout problem. I'm trying to float images on a
I have a layout that is working, but it has one very annoying problem..
I have an annoying problem in one of my projects where the production environment
I have this annoying problem. I've used some kind of key combination and now
I have a annoying problem .. I want my first 4 items in a
I have an annoying problem with the debug mode of Visual C++ 2005. My
i have this annoying problem with my site where, when you click on a
I have an annoying problem. Sometimes Visual Studio does not show option View designer
I have an annoying problem with TabActivity. I have several activities in it and
I have an annoying problem with Visual Studio 2008. When I run the format

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.