I have four buttons on a single view. Each button has a different IBaction. Once one is pressed I would like to lock out all buttons from being pressed again until the action is completed. I have tried to give each one a property in the .h and then under each IBAction in the .m, I have set each of the four buttons like this `btnHelp.enabled =NO;`,`.`, etc and then at the end before the final } I have reenabled them all. This hasn't worked. I am a new to objective-C and xcode and greatly appreciate any help.

This is IOS. The .h code is :

```
@property (strong, nonatomic) IBOutlet UIButton *btnHelp;
@property (strong, nonatomic) IBOutlet UIButton *btnSpin;
@property (strong, nonatomic) IBOutlet UIButton *btnScore;
@property (strong, nonatomic) IBOutlet UIButton *btnBet;

- (IBAction)slotHelp:(id)sender;
- (IBAction)slotSpin:(id)sender;
- (IBAction)slotBet:(id)sender;
- (IBAction)slotScore:(id)sender;

```

The .m is :

@synthesize btnHelp, btnScore, btnSpin, btnBet;

```
- (void)viewDidLoad
{
    [super viewDidLoad];

    btnHelp.enabled = NO;
    btnBet.enabled = NO;
    btnScore.enabled = NO;
    btnSpin.enabled = NO;

// do some introductory setup and give some spoken instructions
// Load plist data into array, etc
// Then reenable buttons

    btnHelp.enabled=YES;
    btnBet.enabled=YES;
    btnScore.enabled=YES;
    btnSpin.enabled=YES;
}

-(IBAction)slotHelp {

// Disable buttons while we complete action

        btnHelp.enabled = NO;
        btnBet.enabled = NO;
        btnScore.enabled = NO;
        btnSpin.enabled = NO;

// stuff to do

// Reenable buttons after action event completed

        btnHelp.enabled=YES;
        btnBet.enabled=YES;
        btnScore.enabled=YES;
        btnSpin.enabled=YES;
    }

```

There are three other action events for the other three buttons. 

What I was trying to do is prevent accidental button presses during and action execution. I was hoping to have no chance of simultaneous button presses by accident. I am trying to make an app for use by physically challenged individuals who may accidentally press more than one button. I hope this helps explain a bit of why I want to block multiple presses even the same button.

Thanks for your interest and help.