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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:52:14+00:00 2026-06-12T06:52:14+00:00

In my delegate class I have this – BluenibViewController *mvc = [[BluenibViewController alloc] init];

  • 0

In my delegate class I have this –

BluenibViewController *mvc = [[BluenibViewController alloc] init];
UINavigationController *unvc = [[UINavigationController alloc] init];
[unvc pushViewController:mvc animated:NO];
[mvc release];
[self.window addSubview:unvc.view];
[self.window makeKeyAndVisible];
return YES;

and in my BluenibViewController I have this method –

-(IBAction) BookingsViewController:(id)sender

{
    bookingsViewController1 = [[BookingsViewController alloc]
                              initWithNibName:@"BookingsViewController"
                              bundle:nil];

UINavigationController *navController = self.navigationController;
[navController pushViewController:bookingsViewController1 animated:YES];


self.title = @"Bookings";
[self.window makeKeyAndVisible];
[self.view addSubview:bookingsViewController1.view];
[navController release];
[bookingsViewController1 release];

}

Ob click of this method I am able to go to the next view but there is no back button on the navigation bar.

Please point me to the silly mistake I am doing.

  • 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-12T06:52:15+00:00Added an answer on June 12, 2026 at 6:52 am

    I see quite a few errors here. Lets see if I can’t be of some service.

    First, I see that you’re overreleasing your navigation controller [navController release];

    Second, you should only have to make the window key/visible once in your entire project. You set your navController as the rootViewController for your window, make it key/visible, and then you should never have to do anything with your window again. Don’t think it’s breaking anything, but you should remove all calls to make key/visible beyond the first.

    In the end, pushing a new view controller should look like this:

    [self.navigationController pushViewController:[[[BookingsViewController alloc] init] autorelease] animated:YES];

    You shouldn’t need anything else to get what you’re looking for.

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

Sidebar

Related Questions

I have a class and this class has a delegate protocol. I create an
Currently I have this: class Group < ActiveRecord::Base delegate :publish_group_creation, :to => 'MyAppModules::Publisher' after_create
I have this as one of my members of the class 'KeyEvent': private delegate
I have this inside a class [delegate performSelector:@selector(doStuff:) withObject:myObject afterDelay:2.0]; and I am having
I have this class that has a delegate method. Its delegate has a navigationController.
I have an Application Delegate class with a enumeration which looks like this: typedef
On my app delegate class I have a simple property @property (strong, nonatomic) LoginAppDelegate
I have a class that serves as a delegate to another. public class Delegate
Currently, I have something like: public partial class Form1 : Form { delegate void
[NSThread detachNewThreadSelector:@selector(colourChange) toTarget:del withObject:nil]; This should call the colourChange method in the class' delegate(del)

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.