多个按钮选1
定义一个UIButton *currenctButton;
- (IBAction)ButtonAction:(UIButton *)sender
{
if (sender != currentButton)
{
currentButton.selected = NO;
currentButton = sender;
}
currentButton.selected = YES;
}
多个按钮选1
定义一个UIButton *currenctButton;
- (IBAction)ButtonAction:(UIButton *)sender
{
if (sender != currentButton)
{
currentButton.selected = NO;
currentButton = sender;
}
currentButton.selected = YES;
}
本文标题:2020-08-13
本文链接:https://www.haomeiwen.com/subject/jyavdktx.html
网友评论