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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:51:51+00:00 2026-05-15T01:51:51+00:00

I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want

  • 0

I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want to add buttons to the UINavigationbar of the uinavigataioncontroller, usually I write code to add these buttons, something like this:

UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(saveClicked:)]; 
self.navigationItem.rightBarButtonItem = saveButton;
[saveButton release];

My idea now was to use interface builder instead. But I’m not sure how to do it. What I’m trying to do is to add a UINavigationItem in the xib file of the viewcontroller (my viewcontroller is called TextViewController), something like this:

See this image: http://i48.tinypic.com/qq5yk7.jpg

But how can I make TextViewController use the UINavigationItem I added? The button I add doesn’t show in the navigationbar.

Any ideas on how to do this? What am I missing?

  • 1 1 Answer
  • 1 View
  • 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-15T01:51:51+00:00Added an answer on May 15, 2026 at 1:51 am

    You can take a bar button in the coding like IBOutlet UIBarButtonItem * saveButton;

    Then you have to take a bar button in the xib file and bind this button with that and in coding you can directly write
    self.navigationItem.rightBarButtonItem = saveButton;

    Its almost the same as your code but the only thing changes is you dont have to initialize the barbutton..

    Happy coding…

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

Sidebar

Related Questions

I have a UINavigationBar based application - only a one navigation bar that is
Situation: I have an Xcode project based on the Navigation-Based-Application template. So that means
I have a navigation based application which I'm trying to add a unique UIToolbar
I have a navigation based application for the iPhone that I am working that
I have created one navigation based application. In that first view show me the
I have an application that uses the navigation-based application template in XCode. Now I
I have created a navigation based application. I need to add a UIView before
I have a UITabBar in the detail view of my navigation based application. I
I have a jQuery based accordion style navigation that I am trying to modify.
I have an iPhone app that is based on a navigation controller. I 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.