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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:21:05+00:00 2026-05-28T01:21:05+00:00

I have a navigation based templete in which we get default file appdelegate.h,.m file

  • 0

I have a navigation based templete in which we get default file appdelegate.h,.m file and rootviewcontroller.h and.m file. Now i have required in project that rootviewcontroller will show only first time when application install in device. And in rootviewcontroller i have button o click event of that i add new view as subview. And on New view i have a button which further proceed a new view. To proceed new view i have use [self.navigationcontroller pushviewcontroller:new_view1 animated:YES] but this is not working. Means not pushing view. How i fix it?

In appdelegate file i use this code for didfinish launch:-

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{self.window.rootViewController = self.navigationController;
    [self.window makeKeyAndVisible];
return YES;

  }

and on button click of rootviewcontroller i use this code:-

- (void)parser{
    main_view_obj=[[Home_Screen_viewController alloc] initWithNibName:@"Home_Screen_viewController" bundle:nil];
    [self.view addSubview:main_view_obj.view];

}

end on button clikc of mainview i use this code:-

 -(IBAction)accounts{
    [appDelegate startProgressBar:@"while loading data..."];
    account_view =[[Account_login_viewController alloc] initWithNibName:@"Account_login_viewController" bundle:Nil];
    [self.navigationController pushViewController:account_view animated:YES ];
    self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Home" style:UIBarButtonItemStyleBordered target:nil action:nil] autorelease];
    [appDelegate endProgressBar];

}

Now problem is that [self.navigationController pushViewController:account_view animated:YES ] not working. How fix it?

  • 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-05-28T01:21:06+00:00Added an answer on May 28, 2026 at 1:21 am

    Try this, it will work

    -(IBAction)accounts{
            [appDelegate startProgressBar:@"while loading data..."];
            account_view =[[Account_login_viewController alloc] initWithNibName:@"Account_login_viewController" bundle:Nil];
            [appDelegate.navigationController pushViewController:account_view animated:YES ];
            appDelegate.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Home" style:UIBarButtonItemStyleBordered target:nil action:nil] autorelease];
            [appDelegate endProgressBar];
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation: I have an Xcode project based on the Navigation-Based-Application template. So that means
I have an application that uses the navigation-based application template in XCode. Now I
I have UITableViewController (initiated by the Navigation-based app project template). I am overriding loadView
I have a jQuery based accordion style navigation that I am trying to modify.
I have a UINavigationBar based application - only a one navigation bar that is
I have an iPhone app that is based on a navigation controller. I have
I have a navigation based application for the iPhone that I am working that
I have a navigation-based application in which I would like just one of the
I have a navigation based project and I want to be able to access
I have a UITabBar in the detail view of my navigation based application. I

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.