Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Willie Oeschger
3,776 PointsPhoto Bommer App crashes after photo opens.
Hi I get a crash error when i click on a photo in my photo boomers app. Please se error : 2014-05-27 22:09:44.595 Photo Bommers[18577:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initWithString:relativeToURL:]: nil string parameter' *** First throw call stack:
2 Answers
Thomas Nilsen
14,957 PointsAdd an exception breakpoint and run the app again. It should point you to the line that's causing the error.
Jayden Spring
8,625 PointsI believe you need to call [NSURL urlWithString:@"www.google.com];
I suggest you see the docs; https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html