I have a view with several buttons and an ImageView. I would like to change the Image inside the ImageView every time a button is pressed, with a specific image associated with each button. I also have a default image that I assign when the view gets created.
However, when a button is pressed, in order for the user to see the image changes, I send reloadInputViews message to the main view. This causes for the default image to remain in the ImageView because because it gets set every time a view is loaded. I assign the default image in viewDidLoad, should I be assigning it elsewhere? Or is there another method for me to accomplish this?
In your action method-(IBAction) for each button, change the image property of your imageView:
No need to reload the whole view…