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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:36:49+00:00 2026-06-06T04:36:49+00:00

I have the following code: UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(showAddNewView)]; –

  • 0

I have the following code:

UIBarButtonItem *addButton = [[UIBarButtonItem alloc]   
initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self    
action:@selector(showAddNewView)];

- (void) showAddNewView
{
    [self performSegueWithIdentifier:@"addNew" sender:self];
}

The segue executes fine, but the view is suppose to have a navigation bar at the top w/ title “Add New Recipe”. But it doesn’t display that part. If I change the transition to push, it looks fine.

Here is my scene:

enter image description here

Any ideas?

EDIT: I am having trouble with the answer, I had it working but now it is crashing again…

Scenes

enter image description here

  • 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-06T04:36:50+00:00Added an answer on June 6, 2026 at 4:36 am

    Modal segues bring an entirely new view controller on top of whatever is currently being used. If you wish the new view controller to have the navigation bar with that default behavior, then you need to make the root view controller that is appearing from the modal transition a navigation controller.

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

Sidebar

Related Questions

I have this code: UIBarButtonItem *backButton = [[UIBarButtonItem alloc]initWithTitle: @Secciones style: UIBarStyleDefault target:nil action:nil];
I have following code: public static void ProcessStep(Action action) { //do something here if
I have following code in my application. [self.navigationController pushViewController:x animated:YES]; It will push a
I have following code: private void ProcessQueue() { foreach (MessageQueueItem item in GetNextQueuedItem()) PerformAction(item);
I have following code snippet: class ABC{ public: int a; void print(){cout<<hello<<endl;} }; int
I have the following code in a UIViewController subclass: MyViewController *viewController = [[MyViewController alloc]
Using a split view on the iPad, I have the following code: - (void)
Consider the following code in my TTTableViewController , I have - (void) viewDidLoad {
I have the following code: @interface PartyListViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> { UIBarButtonItem *
I have following code NSArray *myArray = [[NSArray alloc] initWithObjects:@1,@2,nil]; NSMutableDictionary *dic0 = [[NSMutableDictionary

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.