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
Post a Comment