Think of optionals simply as variables that might contain nil. The only hard part is remember all of the syntax that goes along with declaring optionals, unwrapping them and checking if contain nil before using them.
That will come with time! I highly recommend you download the worksheet to get some extra practice with them. It will help you remember the syntax without having to memorize anything!
This lesson teaches you how classes can "build off" of one another. It's called class inheritance and subclassing and it will save you a ton of time and rewriting of code!
Furthermore, it's used everywhere in the UIKit classes!
In this video, I'll show you 4 different techniques to find documentation and help on UIKit classes and methods.
Have you ever wondered if UIKit contains a user interface element that you need?
Once you find it, how do you know what methods it has and what its capabilities are?
You'll learn how to navigate the UIKit documentation pages online as well as how to bring up the quick help menus in Xcode while you're coding.
This will save you a lot of time!
This 7 part video series is the next step from the War Card game.
You'll continue building your skills with Swift and learn some critical concepts that will enable you to build more complex apps and express more complex logic with your Swift code.
In this video, I'll reveal the Swift coding concepts that you will learn in the next 7 lessons.
Learn how to write Swift code that can make decisions!
In this video, you'll learn how to write IF Statements which are used everywhere! IF Statements allow you to execute some Swift code only if a specific condition is met.
You'll learn how to use these IF Statements in an Xcode playground first and then you'll apply your new skills to the War Card Game project!
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!