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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:21:12+00:00 2026-06-17T15:21:12+00:00

In IB I create 9 buttons (custom) and a select for State config: selected

  • 0

In IB I create 9 buttons (custom) and a select for State config: selected (button1.png) disabled (button1_disabled.png)…..(button9_disabled.png)

this tip if only when select button and unselected button

- (IBAction)onButtonsTapped:(UIButton*)sender {
    [[sender setSelected:![sender isSelected]];
    [priviousSelectedBtn setSelected:NO];
}

but i want to release that:

When I press button 1 (action) change the picture on the button 1 (setSelected: YES)

I press the button 2 (action) change the picture on the button 2 (setSelected: YES) and change the image on the number 1 (setSelected: NO)

I press the button 9 (action) change the image on the button 9 (setSelected: YES) and change the image on the button 2 (setSelected: NO)

  • 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-17T15:21:13+00:00Added an answer on June 17, 2026 at 3:21 pm

    You can create nine outlets for each button and loop through them to check and unselect.
    (Codes not compiler checked, you may get some idea)

    Or, you can store an outlet for previousSelectedButton.

    @property(strong)id previousSelectedButton;
    
    - (IBAction)onButtonsTapped:(UIButton*)sender {
        [sender setSelected];
        [previousSelectedButton setSelected:NO];
    
        if(previousSelectedButton==nil || previousSelectedButton!=sender){
             previousSelectedButton=sender;
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to create donate via PayPal button and add custom select with amount.
How to create Custom shaped buttons in c#: say triangular
I am using jQuery to create custom radio buttons and i have a problem.
I want to Create dynamically, custom Tooltips like this or this from code Behind,
I use this code to create a custom tinymce button that changes a class
I need to create custom styled select drop downs (there are three) form inputs.
Q : how to create a custom column with custom buttons? I want to
Let me get this straight. I manage to create a custom Gridview with a
I want to create custom button and I need it to be circle. How
I'm trying to create a custom button where the foreColor is always crimson and

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.