In my app I have a main viewcontroller with an imageview. Every time the user goes back to this main view, I would like 1 of 3 images to appear, but I would like to randomize them. Does anyone know the best way to get this done? Could someone point me in the right direction?
It’s a universal ios app in xcode with storyboard.
Thanks!
Something like the following should do the trick…
Edit:
Add the following to your view controllers .h file.
Then within your storyboard/view link the UIImageView to yourImage.