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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:13:15+00:00 2026-05-29T22:13:15+00:00

I drag out a toolbaritem in storyboard and set it on my nav controller,

  • 0

I drag out a toolbaritem in storyboard and set it on my nav controller, but when I run my code it’s not there, is there something I’m missing?

EDIT:

Tried setting it in code as well in my viewDidLoad method:

UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc] initWithTitle:@"Map" style:UIBarButtonItemStyleBordered target:self action:@selector(viewMap)];
self.navigationItem.rightBarButtonItem = rightBarButton;

Won’t work either.

Here’s how it’s set up in my storyboard:

enter image description here

UPDATE:

Just found my problem. In my controller code when I update it’s contents I change the right bar button item for a spinner and never set it back to what it had before.

  • 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-29T22:13:18+00:00Added an answer on May 29, 2026 at 10:13 pm

    UINavigationController already has a toolbar built in. It has a property toolBarHidden which is set to YES by default, which is why it is not normally seen. If you are using storyboard you can easily make the built-in bottom toolbar visible by checking the checkbox “Shows Toolbar” in the inspector when the Navigation Controller is selected.

    See the UINavigationController documentation here for more details.

    EDIT:

    Ok, it sounds like what you are trying to do is add a right button to your view controller’s UINavigationItem. To do this in storyboard, drag a “Bar Button Item” from the Objects Library onto the Navigation Item in your ViewController. You can then set the title/style/etc of the bar button item. If nothing still shows up when you run your app, make sure that your ViewController is connected properly with a segue to the navigation controller.

    Also make sure you are adding the Bar Button Item to your view controller’s Navigation Item, NOT to the View Controller itself. Here is how the setup should look in your storyboard:

    enter image description here

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

Sidebar

Related Questions

I know it's a simple question, but I can't seem to drag it out
I have figured out the drag and drop part but how would I then
Are there any Web page designing software out there that allow me to drag
I am currently trying to code my own JS drag and drop script (out
I am making a logical gates application and I can currently drag out bitmaps
I am trying out some Drag Drop functionalities and can't discern the difference between
We're trying to figure out how to drag an item from a LibraryStack container
I have a requirment to allow Drag and Drop with out using HTML5. This
Drag is not working after dropping on the area. I have used Jquery UI
So, I've got something I want to try out. The idea is to have

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.