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

iOS

BlogReader Debugging helping

Im finishing up my blog reader project, but when I run the project and click on a blog it crashes. I'm trying the debug process but I dont think Im doing it right.

https://www.dropbox.com/s/kreup24kqy48c6f/BlogR.zip

1 Answer

ok I fixed it. here is the fixed project download. everything looked correct. At first I noticed you hadn't casted the segue destination controller to a webviewcontroller so I added a cast in your prepare for segue method. It still didn't work.

something weird must have been going on. Not sure why it wasn't recognizing the setter method for the URL. You had the property there. I even tried synthesizing it. So since I had no idea why it wasn't working I finally just deleted your webviewcontroller class and recreated it, then deleted the view controller from your storyboard and recreated it. then connected everything back up. after that it worked fine. Very strange issue.