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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:35:59+00:00 2026-06-14T00:35:59+00:00

I am trying to tidy up my UI by consolidating various things in a

  • 0

I am trying to tidy up my UI by consolidating various things in a Tool Bar, and am utterly confused. I am using Interface Builder rather than constructing the controls programmatically, because my UI is fairly simple and not particularly dynamic.

What I did did so far:

  1. Added an empty tool bar.
  2. Dragged two previously existing and working buttons onto the tool bar. They changed their class from UIButton
    to UIBarButtonItem, and the inspector now shows them as having no
    Sent Actions or Referencing Outlet, but the the previous action &
    outlet in the View Controller – responding to taps, setting the
    label of the button – still work.
  3. Created a new Button directly
    in the tool bar. Wired up its action & outlet by ctrl-drag in the
    normal way. The inspector shows the Action and Outlet for this
    button as connected, which is nice, but sadly neither of them works.
    Clicking the button does not invoke the action; setting the label of
    the button does not cause anything to happen on the screen, even
    after I tried prodding the tool bar with a setNeedsDisplay.

I’m not sure what to try next. Googling has shown me that I’m not the only person to find using UIToolBar via Interface Bulder difficult and confusing, but I haven’t found a solution to my exact problem.

I don’t particularly want to resort to creating my entire GUI programmatically just to tidy up a few buttons. Creating all the controls in Interface Builder outside the tool bar, getting them wired up and working, then moving them into the tool bar would presumably also work – but it would be a kludge, and would leave me still none the wiser if anything went wrong later.

  • 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-14T00:36:01+00:00Added an answer on June 14, 2026 at 12:36 am

    Should you try using UIBarButtonItem instead of UIButton? It works for me.

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

Sidebar

Related Questions

I'm trying to tidy up my project's release files on Sourceforge using the interactive
I'm trying to find a tidy way to set a string using an if
Trying to tidy up scope and avoid possible multiple calls to RegisterWindowMessage. Currently have
I'm trying to tidy up my code. I have an array with 5 columns,
I'm trying to find a tidy solution to a questionnaire problem. Let us say
Using CSS I have set a DIV called 'tidy' to invisible and width 0px.
Greetings, I'm trying to prevent XSS and improper html from input fields using CKEditor
i am trying to tidy up my code, i have a number of projects
I am trying to tidy up my code now that Delphi XE2 is available
I am trying to tidy up my configuration file, and I wanted to split

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.