Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(IBAction)UserTapButtonsOption:(UIButton*)sender
- {
- UIButton *btn=(UIButton*)sender;
- btn.selected=!btn.selected;
- if(btn.selected)
- {
- btn.backgroundColor = [UIColor yellowColor];
- }
- else {
- btn.backgroundColor = [UIColor redColor];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement