This is my code:
if let img = UIImage(named: imageName)
{image = img}
else{image = UIImage(named: "default")!
However, it still comes up with the error: fatal error: unexpectedly found nil while unwrapping an Optional value. Need help, thanks!
This is my code:
if let img = UIImage(named: imageName)
{image = img}
else{image = UIImage(named: "default")!
However, it still comes up with the error: fatal error: unexpectedly found nil while unwrapping an Optional value. Need help, thanks!