使用Xcode5
和storyBoard,我有几张UIButtons
及其图片。 我需要在按下按钮上方添加图像,并将其删除。 我知道如何改变它的图像,但我需要在它上面添加图像,保持在那里。点击时将图片添加到UIButton
- (IBAction)color:(UIButton *)sender
{
if(lastButton)
//now remove a circle from last button
//add a circle to the image of the sender button
lastButton=sender;
}
你可以让这个问题更清楚一点...你想要按状态的图像...?当新闻稿发布时它应该回去......?如果你需要这个,那么你应该设置setImage的状态... –