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.
-
Objective C Step 1) //Add below code in AppDelegate.h @property (retain, nonatomic) UIWindow *window; @property (nonatomic,retain) UI...
-
The Application Kit is a framework containing all the objects you need to implement your graphical, event-driven user interface: windows, p...
-
NSURLConnection is deprecated in OS X 10.11 and iOS 9.0 Advantage: NSURLSession also provides support for background downloads, ...