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

  • Home
  • SEARCH
  • 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 8230771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:14:39+00:00 2026-06-07T17:14:39+00:00

Okay i know this has been a question asked b4, but since it should

  • 0

Okay i know this has been a question asked b4, but since it should be easy to answer i would like to get a better answer. I have a start and a stop button on a timer. I want the play button to be disabled while the clock is running and enabled when the clock is stopped, visa versa, but also i would like it to be hidden when its disabled, so could some show me the code to disable and hide a button that has been recently pressed and then reenabled and visible when the other one is pressed.

  • 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-07T17:14:42+00:00Added an answer on June 7, 2026 at 5:14 pm

    You should have IBOutlets to the buttons and then access them directly. Don’t forget to link them on Xcode

    @property (strong, nonatomic) IBOutlet UIButton *startButton;
    @property (strong, nonatomic) IBOutlet UIButton *stopButton;
    

    On the action linked to the tap of play button:

    [self->stopButton setEnabled:YES];
    [self->stopButton setHidden:NO];
    
    [self->startButton setHidden:YES];
    [self->startButton setEnabled:NO];
    

    Then, when you tap the stop button:

    [self->stopButton setEnabled:NO];
    [self->stopButton setHidden:YES];
    
    [self->startButton setHidden:NO];
    [self->startButton setEnabled:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I know this question has been asked before: Previous Question I have also
Okay, I know this has been asked before, but the solutions to previously asked
Okay, I know this is a Noob question but I cant see to get
Alright, I know questions like this have probably been asked dozens of times, but
I know this topic has been discussed a lot , but I have a
Okay, two admissions here, one is I'm sure this question has been answered and
Okay I know this is a really lame question because Starbasic is a really
Okay, I know questions like this exist in multiple forms across StackOverflow and other
Okay, I know it is weird but when I put this code between <head
Okay I am newer to python and have been researching this problem but I

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.