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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:03:29+00:00 2026-06-06T07:03:29+00:00

this is my button – (IBAction)startBtn:(id)sender { } my problem is, when i click

  • 0

this is my button

- (IBAction)startBtn:(id)sender {

}

my problem is, when i click startBtn with START label on it, the process is start but the label is change to CANCEL for cancel the process. i don’t want to make 2 button that is START and CANCEL, i just want to put it all together into one button that is startBtn.

Any help?
Thank you for sharing your knowledge for me.

  • 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-06T07:03:30+00:00Added an answer on June 6, 2026 at 7:03 am
    // set titles in viewDidLoad Method or in interface builder
    [button setTitle:@"Start" forState:UIControlStateNormal];
    [button setTitle:@"Cancel" forState:UIControlStateSelected];
    
    
    - (IBAction)startBtn:(id)sender {
        UIButton *button = sender;
        button.selected = !button.selected;
    
        if (button.slected) {
           // start process
        }
        else {
          // stop process
       }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make this button change background when you click it and this
I have this piece of code: <asp:Button runat=server Text=Process Payment /> When I click
I am use a button and when u click this button a text field
I have an NIB file with a button. When I click this button, the
okay? I have a button that is inside an updatepanel, click on this button
On the click of a button this Javascript is called: var xmlhttp; function register()
Why is this button changing color to orange when clicked: <Button android:background=@android:drawable/btn_plus ...> but
Hi i have a Button i want hold this button to write something but
I disable my jqueryui button in its click event like this $('#btn').button().click(function(){ $(this).button('disable'); });
I have this button and I want when you click on it he will

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.