状态值 : 正常
状态值 : 选中
#pragma mark - buttonPress
- (void)buttonPress:(UIButton * )sender {
if (sender.tag == 130) {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
} else if (sender.tag == 131) {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
} else {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
}
- (void)buttonPress:(UIButton * )sender {
if (sender.tag == 130) {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
} else if (sender.tag == 131) {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
} else {
if (!sender.selected) {
sender.selected = YES;
} else {
sender.selected = NO;
}
}
}