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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:55:57+00:00 2026-05-13T23:55:57+00:00

When MyView gets pushed on to the NavigationController, I have the following code public

  • 0

When MyView gets pushed on to the NavigationController, I have the following code

public override void ViewDidLoad ()
{
    this.NavigationController.Toolbar.SetItems(new UIBarButtonItem[] {
        new UIBarButtonItem("Next",UIBarButtonItemStyle.Plain,  ClickNext) 
    }, true);
            this.NavigationItem.Title = "Proposal Plan - Step 1";
}

The Title gets set properly, and the code runs but in my Toolbar at the bottom of the view I don’t have the “Next” button I am expecting. I put a breakpoint and verified that the Toolbar after running that line does have my button, but still nothing.

What am I missing?
[ EDIT @ 2:05pm EDT ]
I’m trying to add buttons to the bottom toolbar, for my example I happen to have called it next, leading to confusion.

  • 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-13T23:55:58+00:00Added an answer on May 13, 2026 at 11:55 pm

    To add items to your navigation controller you should always access the objects from the context of the view the code is executed.

    You should use the NavigationItem in the current view to add a buttons to the navigation bar:

    public override void ViewDidLoad ()
    {
        this.NavigationItem.Title = "Proposal Plan - Step 1";
        this.NavigationItem.RightBarButtonItem = new UIBarButtonItem("Next", UIBarButtonItemStyle.Plain, ClickNext);
    }
    

    The same goes for the toolbar at the bottom of you navigation controller. You should use the ToolBarItems in the current view

    this.ToolbarItems = new UIBarButtonItem[] {
        new UIBarButtonItem("Next",UIBarButtonItemStyle.Plain, ClickNext)
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have this code: #import <UIKit/UIKit.h> @interface MyView : UIView @end @implementation MyView
I have this code in my controller: [HttpGet] public ActionResult Register(UserRegistrationModel model) { return
I have a view like this: CREATE VIEW MyView AS SELECT Column FROM Table
I have html code in database. my model gets assign with correct data from
Suppose I have created a UIView , MyView , in Interface Builder, and I
Say I have a simple view, MyView . If I do: SELECT * FROM
I have something to draw at runtime. I did drawing in onDraw in MyView
(r'^/(?P<the_param>[a-zA-z0-9_-]+)/$','myproject.myapp.views.myview'), How can I change this so that the_param accepts a URL(encoded) as a
I have a simple UIView *myView which is set as follows myView.image = [UIImage
I have a method that gets called any time a control on my view

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.