-2

Here is the error. As you can see my image is in the top right corner.

All my code is there, I'm not sure what else to show. \

I have been following the tutorial here

here

Apologies, I'm not sure how to resize the image

Error:

fatal error: unexpectedly found nil while unwrapping an Optional value

nhgrif
  • 61,578
  • 25
  • 134
  • 173
Greg Peckory
  • 7,700
  • 21
  • 67
  • 114
  • Your `filePath` is most likely nil, which means that this resource couldn't be found. Do a `if let filePath = filePath { }` check first to see if the image really can't be found. – Kametrixom Jun 23 '15 at 11:14
  • Be sure to show your code, not simply a screenshot of your code. It's important to have your source code as plain text for several reasons. It allows potential answerers to copy & paste into their IDE to look at your problem. It also helps with search results (and helps in identifying whether or not your question already has an answer elsewhere). Adding a screenshot as an extra detail is fine, but should not be considered a replacement for copy & pasting your source code in. – nhgrif Jun 23 '15 at 12:06

1 Answers1

-2

Fixed.

Took image outside 'image' folder

Greg Peckory
  • 7,700
  • 21
  • 67
  • 114