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
Jerome Garot
2,886 PointsImplementing a UIWebView Error
Hello Forum Folk,
I am kind of stumped on a particular part of the video on the iOS course: Build a Blog Reader iPhone App > Viewing a Web Page > Implementing a UIWebView
After I have placed the Web View into the Web View Controller and try to drag it (holding ctrl while dragging) into the WebViewController class, I get the pop-up as expected where I can make the IBOulet connection, but when I fill in the data exactly as Amit Bijlani - I get an error that states: "Could not insert new outlet connection: Could not find any information for the class named WebViewController."
This comes up in red text on the bottom of the pop-up.
What could be the cause of this? I'm pretty sure I have been following along correctly.
I'm not looking for the answer to put it in manually, because that is a given - I'm trying to get more data on why this error is happening.
Thanks for helping me.
Jerome
1 Answer
Amit Bijlani
Treehouse Guest TeacherCan you share your project file? Just compress the entire project folder and make it available using Dropbox or something similar. I haven't seen this error before so would like to see what is going.
Jerome Garot
2,886 PointsHere is the link to the project zip: Download ZIP
Here is a screenshot of what I am doing (I ended up having to manually connect it using some type of link referral. I don't know how I did it exactly but I managed to make it work somehow. Screenshot
Apparently this IS an Xcode problem after some more research (very rare). I hope it still does it for you to experience what I mean, because I did make some changes since it happened. Even though it still makes the problem for me. as shown in the screenshot above.
Amit Bijlani
Treehouse Guest TeacherLooks like you probably missed a step which was in the Navigation Controller video. Select the MainStoryboard and follow these steps: http://d.pr/i/ZzfB
Jerome Garot
2,886 PointsThat's the thing, I was unable to enter that anymore once it was deleted. I guess that's where the bug lay then originally.
Amit Bijlani
Treehouse Guest TeacherI was able to enter it into your project without any problem. So I'm not sure why you are unable to do so.
Jerome Garot
2,886 PointsYa it's because I removed everything when it was bugging up, replaced it all, and forget to add that class the 3rd time around. So I think the bug wasn't in the dragging, it was in the problem going from: webViewController.h & m to WebViewController.h & m
I had a similar problem renaming my app before I sent it to the app store. I changed it from MagicInfinityBall to magicinfinityball. This caused the name to become unchangeable with a weird temp name change extension and I had to copy all my files over to a clean project.
If I come across more of these weird bugs that seem to happen to me I won't delete them next time around to show you, you seem interested in these things.
Jerome
Amit Bijlani
Treehouse Guest TeacherNo worries. I just wanted to make sure you got it working ;)
Jerome Garot
2,886 PointsThanks I appreciate it.
Jerome Garot
2,886 PointsJerome Garot
2,886 PointsAdded: Now another problem arose while I was trying to solve it.
I deleted the WebViewController.h+m classes because I figured maybe they were messing up somehow.
So I made a new class called WebVC.
I tried Ctrl+ dragging the UIWebView into there from IB into the code and now it won't even register as being dragged somewhere. It won't give me the blue line or any indication to bring it over.
I tried restarting but it still didn't change anything.
This seems like a weird Xcode bug.
Jerome