Now that you’ve connected your button to the View Controller, we can write code to change the images whenever the button is tapped.
In this video, you’ll learn how to change the images shown in the user interface of your app via code and furthermore you’ll learn how to randomize the images that are selected and shown with each tap of the button!
If you have any questions, just let me know in the comments below!
This swift tutorial series uses the latest and greatest from Apple (Xcode 10, Swift 4, iOS 12) and will teach a beginner with no programming experience how to make iPhone apps. I'm creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.
SUBSCRIBE TO MY CHANNEL ►
http://bit.ly/2re4GH0
_________________
FREE RESOURCES (download links)
Lesson 9 (recap notes, worksheet):