Im using XCODE and Swift 3.
I have an app which allows the user to change what site they are viewing, and which button they press then updates the webview with the new url.
I seem to constantly get this error : "unexpectedly found nil while unwrapping an Optional value"
I am new to Xcode and Swift, this is my first app build. So trying to debug it is proving difficult. I can see that the URL i am using does have a "?" after it. Is there a way I can make the url a non optional value? And when I do, would the webview update accordingly with the new url
Just for debugging, try:
let bleh = URL(string: "www.wikipedia.org")
Pretty sure your address has an issue where bleh
is nil.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments