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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:10:33+00:00 2026-06-19T01:10:33+00:00

Ok i have edited my original post. Questions was: I have a button that

  • 0

Ok i have edited my original post.

Questions was: I have a button that once clicked 3 other button names will change.

from sin to sin-1
from cos to cos-1
from tan to tan-1

As you can tell i am doing a scientific calculator. So far i have declared a IBAtion in .h and now i am implementing this in .m

CODE CORRECTED. for future reference for others.

controller .h

IBOutlet UIButton *btn1;
IBOutlet UIButton *btn2;
IBOutlet UIButton *btn3;

controller .m

-(IBAction)buttonChangeText:(UIButton *)sender
{
    [btn1 setTitle:@"sin-1" forState:UIControlStateNormal];
    [btn2 setTitle:@"cos-1" forState:UIControlStateNormal];
    [btn3 setTitle:@"tan-1" forState:UIControlStateNormal];
}
  • 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-19T01:10:35+00:00Added an answer on June 19, 2026 at 1:10 am

    This will help you to understand, please go with the sender, and use the tag for the button. I will make sense to you. thanks.

    - (IBAction)changeTheOtherButton:(id)sender {
    
        if ([sender tag] == 1) {
            [btn1 setTitle:@"Btn 2" forState:UIControlStateNormal];
        }
        else if ([sender tag] == 2) {
            [btn2 setTitle:@"Btn 1" forState:UIControlStateNormal];
        }
    
    }
    

    enjoy Coding….

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

Sidebar

Related Questions

(edited from original post to change BaseMessage to const BaseMessage&) Hello All, I'm very
I have a Bitmap that I chose from gallery that is getting edited like
EDIT: I have edited my post... Working on a project (c#), I have a
I have this code that I've edited: http://pastebin.com/vrqHek6S I've put in comments where I
--edited for clarity (hopefully) I have an XML file that looks something like this:
I have edited the original question since the same error is occurring the difference
I have a Sharepoint 2007 site that is displaying the old/original title in the
In response to the helpful comments, I have edited the original question (where I
(EDITED) In original question I erroneously assumed that GridView natively use 2-dimensional model. Indeed,
I have removed left-recursion from a left-recursive grammar given to me. The original grammar

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.