我正在创建一个游戏而用户必须按一个按钮,当他按下按钮时,该按钮的图像应该永久改变...
- (IBAction)secondHintq:(id)sender {
hintView.text = @"Type in text here 2";
}
按钮的出口叫做:
candleChangeOne
这是怎么做到的?
答案 0 :(得分:0)
你可以试试这个:
- (IBAction)secondHintq:(id)sender
{
UIButton *button = sender;
[button setImage:[UIImage imageNamed:@"YourImage"]forState:UIControlStateNormal];
hintView.text = @"Type in text here 2";
}