使用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的狀態... –