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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:40:14+00:00 2026-06-16T22:40:14+00:00

I am trying to have a simple Navigation in my iOS-Project but nothing worked.

  • 0

I am trying to have a simple Navigation in my iOS-Project but nothing worked. I am trying since hours and I just don’t get it why it so difficult (I have Windows 8, Windows Phone 8 and Android Apps in the Store).

I have a View which is connected to my Class MainMenu. In the header, I refere to the header of mainmenu.h. And i create a object MainMenuView which is based on the Class MainMenu. In the m-File, I initialize the MainMenuView:

MainMenuView = [[MainMenu alloc] init];

Just for test purpose, I set a Title and this is the only thing which works:

[MainMenuView.navigationItem setTitle:@"Main View"];

I tried a lot of different lines but no lines does the job (simply show the MainMenuView…)

[window addSubview:[navController view]];
UINavigationController *newnav = [[UINavigationController alloc] initWithRootViewController:MainMenuView];
[self setNavController:newnav];
[window addSubview:[navController view]];
[self.navController pushViewController: MainMenuView animated:YES];
self.window.rootViewController = self.navController;
[self.window makeKeyAndVisible];

I added this to the first line, because I read it in some tutorial, but did not help:

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

So, simply I just wwant to display my MainMenu using UINavigationController. Later on, I want to use UINavigationController to navigate to specific Views by pressing specific buttons…

This line would actually crash my app:

[self.navController pushViewController: MainMenuView animated: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-16T22:40:15+00:00Added an answer on June 16, 2026 at 10:40 pm

    I had to use instantiateviewcontrollerwithidentifier, nothing else worked… But this is not written in any documentation or something else, I found it after hours of googling… 🙁

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

Sidebar

Related Questions

I'm trying to build a very simple pure css navigation bar, but have hit
I am trying to have a simple java server respond to an XmlHttpRequest, but
I have a simple jQuery script that I'm trying to build upon but I
I have a simple Class Hierarchy that I am trying to get to work
I have a simple rails 2.3.4 application I am trying to get running with
I'm trying to do simple navigation between two pages, but an error appears and
This should be simple, but I'm shredding my hair just trying to think how
Hello i'm trying to make a simple ios app with tabs and navigation .
I have spent hours trying to get my head around a piece of code
I am trying to get a simple page up that will have four links

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.