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 Build a Blog Reader iPhone App Viewing a Web Page Implementing a UIWebView

Implementing a UIWebView video

Course=> Build a Blog Reader iPhone App

section=> Viewing a Web Page

video=> implementing UIWebView

Hi!

Everything works as it should except for the last bit where WebViewController should upload page. I see only white screen.

Compiler shows no error and I have the same code as the video. why is it so? can anyone help me.

Thanks in advance

2 Answers

Robert Knox
Robert Knox
4,925 Points

Make sure the URL is correct; I got the same problem as you described as well and I realised that I had missed the 'g' at the end of 'blog' in the URL, after fixing that it worked properly.

Trevor Duersch
Trevor Duersch
9,964 Points

I was having the same issue. Nothing was wrong with my URL. It turns out that I had to go back to my Main storyboard, check the class attribute was set on my Web View Controller. It was blank. The value I entered in (changed it to) was: WebViewController. Once I did that, my web page was able to load. I put in an NSLog statement to see if it was loading a URL at all and it wasn't. After I linked it up, it started loading then I could follow the rest of the video and got the rest of it working! Hope that helps! :)