Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created May 22, 2012 10:13
Show Gist options
  • Save pratikshabhisikar/2768141 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/2768141 to your computer and use it in GitHub Desktop.
-(void) buttonPressed:(id) sender {
UIButton *tappedButton = (UIButton *) sender;
// Set all other buttons to unselected state...
// for each button ... button.selected = NO;
// Select the tapped button.
tappedButton.selected = YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment