w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Difference between UIButton! and UIButton? in swift IOS

Both of them are optional types. But UIButton! is implicitly unwrapping optional type. You don't have to unwrap it manually. Take a not that your app will crash if you try to access value of UIButton! while its nil.

For more info read "Implicitly Unwrapped Optionals" section in Apple's "The Swift Programming Language" book.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.