The Collection View provides a flexible way to present content to the
user. Similar to a table view, a collection view gets data from custom data
source objects and displays it using a combination of cell, layout, and
supplementary views. A collection view can display items in a grid or in a
The UITableViewRowAction class can be used to create custom actions to the
rows of a Table View. In this Tutorial a rate and share action will be
added to the Table View row. This tutorial is made with Xcode 9 and built
for iOS 11.
Long-press gestures are a type of a continuous gesture. UIKit will detect
if a press is pushed long instead of a single tap. In this tutorial a
long-press gesture is detected, which will display an an alert view. This
tutorial is made with Xcode 9 and built for iOS 11.
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!
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!
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!