ios - How to replace an image in a button to remain as the new image after the button is pressed? -


i'm creating game , user has press button, when presses button image of button should change permanently...

- (ibaction)secondhintq:(id)sender { hintview.text = @"type in text here 2"; } 

the outlet button called:

candlechangeone 

how done?

you may try this:

- (ibaction)secondhintq:(id)sender  {     uibutton *button = sender;     [button setimage:[uiimage imagenamed:@"yourimage"]forstate:uicontrolstatenormal];      hintview.text = @"type in text here 2"; } 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -