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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:49:43+00:00 2026-05-14T08:49:43+00:00

Why won’t this work? View1 loads View2. In view2: – (void) goToView { View3

  • 0

Why won’t this work?

View1 loads View2.
In view2:

- (void) goToView {
  View3 *plainText = [[View3 alloc]
                          initWithNibName:@"View3" bundle:nil];

       [self.navigationController pushViewController:plainText animated: NO];
       [plainText release]; 
  }

- (void)viewDidLoad {
         [self goToView]; 
         [super viewDidLoad];
  }

This will not trigger navigationController to pushView, but if I add a button and setAction (goToView), it works perfectly. What kind of problem am I missing here?

  • 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. Editorial Team
    Editorial Team
    2026-05-14T08:49:43+00:00Added an answer on May 14, 2026 at 8:49 am

    Try putting your call to goToView in viewDidAppear instead of viewDidLoad?

    - (void) viewDidAppear:(bool)animated {
        [super viewdidAppear:animated];
        [self goToView];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 508k
  • Answers 508k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you generate the password for each user and do… May 16, 2026 at 4:14 pm
  • Editorial Team
    Editorial Team added an answer It depends what the purpose of the project is. Both… May 16, 2026 at 4:14 pm
  • Editorial Team
    Editorial Team added an answer I almost never use custom exceptions. When I do manually… May 16, 2026 at 4:14 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Why won't this simple subtraction work? int MyPageNumber = Convert.ToInt32(cboPageNumber.SelectedItem); MyPageNumber += (MyPageNumber -
This won't work using: $('div#menuBar,#goLeftBtn,#goRightBtn').attr('disabled', true); in the document.ready Any ideas? Thanks! EDIT: My
1.upto(9) { |x| print x } Why won't this work? { print x |x}
How can I validate radio buttons? Because this won't work at all. The radio
Won't the union in this question cause UB when used as this: union Data
Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-align: middle;
Why won't the following code work? class parent {} class kid:parent {} List<parent> parents=new
Why won't this xml schema validate ? Visual studio says that the simpleContent tag
this search box won't float to the right in IE8 on a wordpress site.
The line td img { text-align: center } won't work. It has to target

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.