Please note, this blog entry is from a previous course. You might want to check out the current one.
Disable the game play mode control (i.e. the UISwitch or UISegmentedControl from Required Task #5) when flipping starts and re-enable it when a re-deal happens (i.e. the Deal button is pressed).
Disable the control element in flipCard:
- (IBAction)flipCard:(UIButton *)sender { self.cardModeSelector.enabled = NO; ... }
… and enable it in dealButtonPressed:
- (IBAction)dealButtonPressed:(UIButton *)sender { ... self.cardModeSelector.enabled = YES; ... }
The complete code is available on github.