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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:05:26+00:00 2026-06-08T12:05:26+00:00

MonoTouch is 5.2.12. iOS is v5.1.1 (Simulator) Seems like I’m missing an important piece

  • 0

MonoTouch is 5.2.12. iOS is v5.1.1 (Simulator)

Seems like I’m missing an important piece of a puzzle here.
I’m subclassing DialogViewController and set it as the only controller in my UINavigationController.
In ViewWillAppear of the subclassed DialogViewController, I’m trying to set the left and right bar button items:

this.NavigationController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Done, this.HandleDoneButtonTouched );

Neither one of them is showing up. The title however is displayed. If I debug, I can see that the items are properly set.

I have also tried to use SetItems() on the navigation controller: no effects either.

The navigation controller is presented modally in a page sheet.

  • 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-08T12:05:27+00:00Added an answer on June 8, 2026 at 12:05 pm

    Navigation items are not usually updated through the navigation controller. Instead, they are updated via the NavigationItem property on the view controller:

    this.NavigationItem.SetRightBarButtonItem(
            new UIBarButtonItem(UIImage.FromFile("some_image.png")
            , UIBarButtonItemStyle.Plain
            , (sender,args) => {
               // button was clicked
            })
        , true);
    

    http://docs.xamarin.com/ios/recipes/Content_Controls/Navigation_Controller/Add_a_Nav_Bar_Right_Button

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

Sidebar

Related Questions

I have a MonoTouch project which builds and runs fine on i386/iOS Simulator. The
I'm having problems with the MonoTouch/iOS translation feature. I have English and German translation
I need to generate .rtf files in my Monotouch developed iOS app. I've found
I am trying to implement a Settings dialog for iOS using MonoTouch and the
Possible Duplicate: MonoTouch.Dialog: Dismissing keyboard by touching anywhere in DialogViewController I noticed that when
As monotouch updates have stopped (another story), can I upgrade my iPhone/iPad to iOS
I have a MonoTouch application that seems to throw an exception randomly on the
A DialogViewController contains an EntryElement and RefreshRequested handler is set (see code below). Run
I am trying to implement a draggable MKAnnotationView in MonoTouch. In the iOS docs
I'm on Monotouch 5.2.6 and iOS SDK 5.0.1. I have a UIPageViewController that is

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.