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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:38:02+00:00 2026-05-25T09:38:02+00:00

I would like to combine UITableView and UINaviationController in an app but as a

  • 0

I would like to combine UITableView and UINaviationController in an app but as a newbie most apps I’ve seen just send you straight to the results view (UITableView). But, I guess a “normal” search application does not assume you have the results on the first screen. There should be a search form on first screen with input fields and a button that triggers the search process and show some results and navigation.

So, I’m just trying to replicate this normal behaviour in my app. I’ve already made the search form (no navigation shown on it, of course) and a seperated View called “ListingViewController” with its related View and containing a UITableView and where I think I should add the Navigation…The next idea will be to make a DetailViewController and possibly and ListingMapController to show the listing in a GoogleMap.

So, where I’m stuck at is how to add this Navigation Controller ?

Some suggested me to add it in the SearchViewController delegate…
But I don’t want a navigation on search form of course…

Some suggested me to open the Navigation controller modally…
But, I”m also planning at adding a Tab Bar to allow user to see other informations (like About,etc…) and with a modal Nav controller I don’t know if they will still see the bottom Tabbar…

Any suggestions? What do you think is of best practices especially to avoid my app of being rejected by Apple?

Thx in advance for reading and helping!

Stephane

  • 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-25T09:38:03+00:00Added an answer on May 25, 2026 at 9:38 am

    You could init the navigationController with your View Controller as the root view Controller. Then hide the navigationBar (if you need to). You would then add the navigationController.view as the subview. This will basically look like the original view controller. Then you can pushViewController: animated: to push the results view Controller.

    So, for example in your AppDelegate (or in the proper view controller):

    Create a property and ivar for a UINavigationController and hook up its outlets in interface builder. Then set your search controller as the root view controller for the nav bar, and add it as a subview.

    MySearchViewController* searchController = [[MySearchViewController alloc] init];
    self.myNavigationController = [[UINavigationController alloc] initWithRootController:searchController];
    [searchController release];
    self.myNavigationController.navigationBarHidden = YES;
    [self.window addSubview:self.myNavigationController.view];
    [self.window makeKeyAndVisible];
    

    Then of course in your searchController, you would simply say:

    ResultsViewController* myResultsViewController = [[MyResultsViewController alloc] init];
    //You may want to create another init method and pass in some arguments like an array:
    // [[MyResultsViewController alloc] initWithResults:results];
    

    then push the viewController

    //This is in your search controller class
    [self.navigationController pushViewController:myResultsViewController Animated:YES];
    [myResultsViewController release];
    

    from the results viewController, to get back you pop the view controller off of the navigationController view controller’s stack.

    //In results view controller perhaps in some IBAction for a back button:
    
    -(IBAction)backButtonPressed:(id)sender
    {
    
         [self.navigationController popViewControllerAnimated:YES];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to combine these 2 statements but can't seem to get it
I have two arrays of values that I would like to combine - but
I have two views that I would like to combine into one. The first
I have the following 2 arrays and would like to combine them. I'm more
I have some old C code that I would like to combine with some
In an asp.net application, I would like to combine the use of the Webclient
This is the sequel to this question . I would like to combine three
I would like to combine bitmaps to one texture and apply it to a
I would like to combine setter/getter in one method, in C++, in order to
I have multiple datasets that I would like to combine into one. There is

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.