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

The Archive Base Latest Questions

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

I have a simple black navigation bar with following button When the button is

  • 0

I have a simple black navigation bar with following button

enter image description here

When the button is pressed the button gets the same color as the the navigation bar with the same gradient. But I want it to look like this:

enter image description here

So this has a simple black background color. Any idea how to achieve this with interface builder? Or does this require a programmatic way?

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

    This is easy, first you need to do this. Goto your interface builder. Follow these steps –

    1. Select the UIButton element. Open the right-hand sidebar which gives attributes about the button. Select Type of your button as Custom.
    2. Now in there, look for state config. The various states for a button – default, highlighted, selected, disabled. Define various different images as you want in image. Basically select images such that the effect you want is satisfied.
    3. Now, this automatically handles change in appearance of the button element depending on the state of the button.
    4. But sometimes, you would want to change the state manually, through code. This can be done like so – [yourButton setSelected:BOOL] or [yourButton setHighlighted:BOOL] or [yourButton setEnabled:BOOL]

    Hope this helps…

    Update: See the screenshot – This shot shows that there are states defined, ‘default’, ‘highlighted’… this defines the states. You can define images for each of these states. Again, hope this helps…

    enter image description here

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

Sidebar

Related Questions

I'm trying to build a very simple pure css navigation bar, but have hit
I have a very simple HTML layout where a vertical navigation bar should sit
This simple HTML5 layout is intended to have a navigation bar on the left
I have created a simple UL/LI navigation bar. It looks perfectly fine in both
I have the following html for a simple navigation: <header> <div class=login> <ul> <li><a
Greetings! I have a simple navigation menu consisting of an asp:DropDownList and an asp:Button.
I have created a simple web browser using c# and I want to block
This should be so simple, but I'm drawing a blank. I have two tables.
I have a simple navigation based app which has a bunch fo forms in
I have a fairly simple iPhone application that I want to have run on

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.