更改用于UI按钮ios失去边框的Imagebackground

时间:2013-01-31 17:09:22

标签: ios

当我将选择设置为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];
}

Clicked on button moved away

Clicked on the other button and the border is removed from the first

0 个答案:

没有答案