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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:31:37+00:00 2026-05-11T10:31:37+00:00

I am new at Objective C. I am just trying to build an iphone

  • 0

I am new at Objective C. I am just trying to build an iphone app. I have created some NIB file, and i have gone to other NIB file by creating an object and using this code:

scoreViewController *sviewController = [[scoreViewController alloc] initWithNibName:@'scoreViewController' bundle:nil]; self.scoreView = sviewController; [sviewController release]; // Setup the animation [self.navigationController pushViewController:self.scoreView animated:YES]; 

Now I want to come back to the same page. For this case I have done the same work, but it does not work when I add the previous page header file name.

mainViewController *mainviewController = [[mainViewController alloc] initWithNibName:@'mainViewController' bundle:nil]; self.mcoreView = mainviewController; [mainviewController release]; // Setup the animation [self.navigationController pushViewController:self.mcoreView animated:YES];  

So, I will be most grateful if you were so nice to post your comment.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T10:31:38+00:00Added an answer on May 11, 2026 at 10:31 am

    I am not 100% sure what you are asking, but I think you want to go back from the the second controller to the first. What you are doing here is instantiating a second instance of the first controller (so you now have 3 controllers), and pushing it onto the stack. Assuming I have this correct, then if you want to move back to the first controller you should be popping the second controller off the stack, not adding a 3rd:

    //mainViewController *mainviewController = [[mainViewController alloc] initWithNibName:@'mainViewController' bundle:nil]; //self.mcoreView = mainviewController; //[mainviewController release];  // Setup the animation [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'm very new to Objective-C and I'm trying to develop an iPhone app. My
I am new to iPhone and objective c. I have spent hours and hours
I'm new to C++, I have lots of Objective-C experience. I'm trying to have
I'm trying to build my first iPhone app, a Berlin museum guide, and I'm
I'm fairly new to coding with Objective-C/Xcode, so I'm just trying my luck with
I have to say, I'm quite new to objective-c/Cocoa. Currently I'm trying to update
So new to objective-c and iphone/ipad development. Trying to get my feet wet with
I'm new to Objective-C, and I'm trying to create an app with two buttons
I'm very new to Objective-C, and am having some beginner issues. I have an
Good day. Have just switched from objective-c to java and trying to read url

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.