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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:26:52+00:00 2026-06-15T10:26:52+00:00

So heres my question. I am a silent stackoverflow skimmer and Im using xcode

  • 0

So heres my question. I am a silent stackoverflow skimmer and Im using xcode 4.5 storyboards for an application which starts with a view controller which asks for the username and password. My application checks data via a backend server and then if the login is correct it performs a segue which points to the uinavigationcontroller which forwards the screen to the main menu…. The uinavigationcontroller hasnt been tampered with and pushes the mainmenu automatically.

Login_screen -> UINavigationController -> Main_Menu

My question is how do i pass the NSString username from the login screen to the main menu screen.

I understand how to pass data from one screen to the next when the segue is pointing directly to it via the prepareforsegue method as well as performsegue. But in this case the login_screen segue points to the uinaviationcontroller which points to the main_menu controller

My assumption is that i will need to make a custom class which inherits UINavigationController and implement certain methods but since uinavigationcontroller isnt seen i dont think viewdidload or viewwillappear are the right methods.

Any help will be appreciated

I am a new user so i am not allowed to post images but i will fix that as soon as possible

  • 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-15T10:26:53+00:00Added an answer on June 15, 2026 at 10:26 am

    You can use the topViewController property of the UINavigationController.

    Cast the UINavigationController.topViewController object to Main_MenuViewController and set the data normally.

    Hope this helps

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

Sidebar

Related Questions

Newbee question here - I have this method in the view controller m: -(void)
Hiya guys heres my question: im using mootools and im using this demo-> Drag.Move
here's my question: I have a table TRUST(id INT, trustlevel INT) which contains records
Basic question here. I started using ARC and am not sure if I should
Heres the Question: Why does the AutoCompleteBox hate me?? I've spent at least 3
Real basic CI question here, which I cant find anything on in the documentation.
heres my page. my question is why the form returns blank page when i
I think my question may be worded incorrectly but heres what I want to
I know this probably is a fairly complicated question but... heres my case: I
Heres a simple question - is there anyway that a non-console (ie a CWinApp)

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.