标签:
#pragma mark - 点击选择按钮
-(void)selectedButtonClicked:(UIButton * )sender
{
if (tempButton == nil){
sender.selected = YES;
tempButton = sender;
}
else if (tempButton !=nil && tempButton == sender){
tempButton.selected = NO;
tempButton =nil;
}
else if (tempButton!= sender && tempButton!=nil){
if (sender.selected ==YES)
{
sender.selected =NO;
tempButton = sender;
}else{
sender.selected = YES;
tempButton = sender;
}
}
}
标签:
原文地址:http://www.cnblogs.com/angongIT/p/4277713.html