当我将选择设置为 NO 时,为什么第一个按钮的边框会消失?以下是 foreach 按钮的两个操作。
- (IBAction)onehourbtn:(id)sender
{
[btnonehour setSelected:YES];
[btntwohour setSelected:NO];
[btnthreehour setSelected:NO];
}
和
(IBAction)twohourbtn:(id)sender
{
[btnonehour setSelected:NO];
[btntwohour setSelected:YES];
[btnthreehour setSelected:NO];
}