How to use Optional Value in Swift Language?
Asked
Active
Viewed 43 times
-4
-
1You should have a look at Apple's The Swift Programming Language if you don't understand any swift concepts. https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-ID1 – ABakerSmith Apr 01 '15 at 08:06
-
http://stackoverflow.com/questions/24003642/what-is-an-optional-value-in-swift – Mehul Chuahan Jul 23 '15 at 08:59
2 Answers
0
Optional Value is unwrapped Value of variable,which means the value of that variable can be nil.

Hemali Luhar
- 349
- 1
- 11
-1
Optional value in Swift is similar to messaging nil in Objective-C, but in a way that works for any type, and that can be checked for success or failure.