Highly related to the previous keywords, the ! is used to tell the compiler that I know definitely, this variable/constant contains a value and please use it (i.e. please unwrap the optional). From question 1, the block that executes the if condition is true and calls a forced unwrapping of the optional's value. There is a method for avoiding forced unwrapping which we will cover below.
-
With Storyboards, all screens are stored in a single file. This gives you a conceptual overview of the visual representation for the app an...
-
Object Oriented programming is a programming style that is associated with the concept of Class, Objects and various other concepts revolvi...
-
Providing Counts for the Picker View – numberOfComponentsInPickerView: – pickerView:numberOfRowsInComponent: Delegate - Setting the Dim...