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

Creating a Blog Reader iOS App Question

Guys, I just completed the Blog Reader Project and I noticed that when a user clicks a video in a blog post (youtube video). The app crashes. Why is this happening? I thought it was my blog that was the issue but when i changed the url back to the treehouse blog and attempt to click a video. I get the same problem. The App Crashes. Is it safe to say that this app does not support blogs with video post? How can one remedy this problem?

Here is the error code: 2013-08-11 22:43:36.008 BlogReader[4469:11303] setting movie path: http://r17---sn-ab5e6m7k.c.youtube.com/videoplayback?ip= blah blah blah

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

I have found that if you have the exception breakpoint enabled then sometimes it halts execution because the video playback throws an exception but it does not mean that it's crashing. Although, I just ran the app and it did not crash.

Amit, Are you suggesting that all i have to disable something? such as the "exception breakpoint " and that's it? Trying to understand your question....Please clarify. Thanks

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

You can try disabling breakpoints in general and try running your app. I'm assuming you are running in the simulator.

Yes. I am using the simulator. Do you mind sharing with me how to disable breakpoints? Not sure you showed this in the video or not. Thanks

BTW i figured out how to disable breakpoint. Thanks to stackoverflow... now the video plays but i get no volume. second, it still throws an erro code in the console. I guess i am to ignore those right?

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

There's a breakpoint toggle switch on the top. See here: http://d.pr/i/LagB

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

I'm not sure why the volume isn't working did you check the settings on your Mac? As far as the errors in the console, like I said the video playback throws exceptions which can be ignored.

Amit. You were right again. The volume was a mac issue.

Hopefully you can help with one last question. How would I go about fixing this issue: once a use clicks a blog post from the table view and is taken to a detailed view. They see the single post in a webview but the blog post/website does not fit into the screen. (not sure why) Is this just a simulator issue? or is there a fix for this...I am afraid the user experience will be poor , if each time the user wants to watch a video or read a post. They have to pinch to zoom out so that they can see the whole post on the screen. It would be better if the detailed view showed the whole blog/website (fitted to screen) Hope this makes sense. Thanks.

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

I think this is dependant on the Blog or Website. If you see the Treehouse blog then you will notice that it fits really well because our blog is a response website. It would be up to the blog or website to make it responsive, nothing you can do in your app.

ok cool. Good to know. Appreciate the feedback. Thanks.