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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:08:02+00:00 2026-06-13T15:08:02+00:00

Not sure how to title this question, but i’v got such a problem: Up

  • 0

Not sure how to title this question, but i’v got such a problem: Up until now i my app runs mainly in one navigationcontroller with table views. But now i’m trying to integrate dropdown settings menu, and can’t get it properly done.

The way i’v done now and it works

The changeController is called from one button. ChangeController is in appdelegate.

- (void) ChangeController
{
    self.window.backgroundColor = [UIColor blackColor];
    DropDownExample *e = [[DropDownExample alloc] initWithStyle:UITableViewStyleGrouped];
    self.navigationController = [[UINavigationController alloc] initWithRootViewController:e];
    [e release];
    [self.window addSubview:self.navigationController.view];
    self.window.backgroundColor = [UIColor blackColor];
    [self.window makeKeyAndVisible];
}

But this approach has consequances – there is no transition if button is pressed, the settings menu appears instantly, you cannot go back via navigation bar above (nothing there).

So how to do this properly?? I’m new to ios, so just tell me the whole idea how to do this.

Didfinishlaunchingwithoptions method from appdelegate

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {

        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease

];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];

    TableViewController *tableVC = [[TableViewController alloc] initWithNibName:@"TableView" bundle:nil andType:CONTROLLER_TYPE_FIRST];
    UINavigationController *navC = [[UINavigationController alloc] initWithRootViewController:tableVC];
    self.navigationController = navC;
    [tableVC release];
    [navC release];
     self.window.rootViewController = _navigationController;
    [self.window makeKeyAndVisible];

    return YES;
}
  • 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-13T15:08:03+00:00Added an answer on June 13, 2026 at 3:08 pm

    Ok, here’s the answer. Write the method changeController in the same class where the Button exists which calls changeController

    In the method, write this.

    - (void) ChangeController
    {
        DropDownExample *e = [[DropDownExample alloc] initWithStyle:UITableViewStyleGrouped];
        [self.navigationController pushViewController:e animated:YES];
        [e release];
    }
    

    What you want is to insert new UIViewController on the top of the present Stack. If you would be having a navigation Bar at the top by default then there would be a back Btn by default, which would pop up that controller.

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

Sidebar

Related Questions

Sorry about the title to this question, it's not very clear but wasn't sure
I think the title for this question is probably wrong, but I'm not sure
I'm not sure quite how to title my question but this is what I'm
I'm not really too sure how to title this question, but I'm trying to
First off I'm not sure that's the proper title for this question but hopefully
I'm not really sure how to title this question but basically I have an
I'm not the sure title of this question is the best, but hopefully this
I'm not sure if this question fits properly, but I'm wondering in tile-based games,
Not sure if I've just missed something but this doesn't work: $(this).children('td.threadtitle a').html('thread title');
My apologies for an inaccurate title, but I'm not sure what this is called

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.