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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:44:57+00:00 2026-06-04T03:44:57+00:00

I have 2 button objects (UIButton *obtn,*ebtn), I have created 12 buttons(6 buttons with

  • 0

I have 2 button objects (UIButton *obtn,*ebtn), I have created 12 buttons(6 buttons with 6 tag values for obtn, 6 buttons with 6 tag values for ebtn)… I have a single btnClick: method for all those 12 buttons… when i click on a button of tag value 1… Iam getting the properties of selected button to another button by using sender… I want to get the properties of unselected button (Example obtn object with tag value 3) into another button How can i get it…?

My Direct Question is: How to assign the properties of a button with a tag value to another button when it is in unselected state…

  • 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-04T03:44:58+00:00Added an answer on June 4, 2026 at 3:44 am

    It sounds like you want to be able to get a pointer to a button with a certain tag, and at the moment all you can do is get the button that has sent you the action.

    The method you are looking for is viewWithTag:. This will get you a button (or any other view) with the tag you want. You pass this method to the superview of the button. So, in your action method (assuming all buttons are in the same superview):

    UIView *superview = [sender superview];
    UIButton *otherButton = [superview viewWithTag:3];
    

    You then have sender, which is the button that was tapped, and otherButton, which is the button with tag 3. You can modify each one as you wish.

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

Sidebar

Related Questions

I have created a button action method. Initialized an NSDictionary with values from an
I have a method hideButton -(void) hideButton:(UIButton) *button { [button setHidden:YES]; } and I
I have a menu with button objects in As3. I want to display the
I'm currently dynamically creating UIButton objects in my view. I have an NSMutableArray containing
I have seen 2 ways to create button. UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(10, 220,
I have a custom button which inherits from UIButton. I'm handling the TouchUpInside event
I'm going to have a 10x10 grid of UIButton objects. Each of these UIButtons
So let's say I have this method that responds to a button event -
I have following components - ColorButton, that represents single button that is basically colored
I have a UITableView with some cells containing UITextField objects and others with UIButton

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.