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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:24:01+00:00 2026-05-12T13:24:01+00:00

I dropped a UINavigationBar onto the XIB form. Then I dropped a UIButton on

  • 0

I dropped a UINavigationBar onto the XIB form. Then I dropped a UIButton on the form (not on the UINavigationBar). I changed the type to InfoLight (so that it looks like an Info symbol).

I then dragged the UIButton onto the UINavigationBar and set it to be the right button. It magically changes the type from UIButton to UIButtonBarItem as a result of the drag.

Why didn’t I just dragged the UIButton onto the UINavigationBar to begin with? Because, once the button is there, Interface Builder won’t let you change the type to InfoLight for whatever reason.

The in the adjoining .h file, I created a declaration for the IBAction

- (IBAction) btnInfoClick; 

Then in the .m file, I wrote the implementation:

- (IBAction) btnInfoClick {
    // kick off the about screen
    // code follows
}

How do I now hook up the button on the navigation bar to my btnInfoClick function?

Or am I going about it the wrong way to begin with?

I should note that if I simply drag a button from the Library straight onto the navigation bar, I can click on the File Owner icon, and then drag the btnInfoClick IBAction onto the button. In this case, the click event fires fine.

However, in the scenario where I first drag the button elsewhere and then onto the navigation bar, the event never fires. Not sure what I am doing wrong.

  • 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-12T13:24:01+00:00Added an answer on May 12, 2026 at 1:24 pm

    I think, it’s a bug in IB. But I found a workaround here. Reposting for posterity:

    1. Create a button in the view (not the navigation bar!)
    2. Set this button to be Info Light
    3. Set the action for this button to be Touch Inside Up
    4. Move the button to the navigation bar
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I always thought that when you dropped a control onto an .aspx page that
I have built an OpenGL Viewer control that can simply be dropped onto a
I'd like to break out of the currently running program and be dropped back
I have a form and have dropped a vertical scrollbar on it. Whatever I
I'm creating a chat widget that will be dropped into CommunityServer. The widget works
I have a set of items that can be dragged / dropped using Dojo
I did a lot of Java programming and then dropped it and did a
I would like all images dropped in a directory to be copied into a
I'm working on some code that dropped on me when another developer (and the
The Likes plugin that I've dropped on my page displays both the number of

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.