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 Navigation Controller

Ben Collins
Ben Collins
5,647 Points

Strange issue continues..

At various times, it seems like actions I take in the storyboard don't effect the app running in the simulator.

For this step, the happened like this:

  • Added the navigation controller
  • Added the web view controller
  • Added my segue (paying close attention to the video)

When I ran my code, I did not see the arrow to the right of each table cell, and clicking did nothing. I troubleshooted for a few minutes changing variable names, deleting storyboard elements and re-adding, and nothing changed in the simulator. Finally, I deleted everything from my storyboard, ran the code, and it still worked. Something is wrong, right? That code shouldn't have run with nothing in the storyboard.

4 Answers

Sam Chaudry
Sam Chaudry
25,519 Points

Are you sure you added the new class to the view controller? When you build a new scene on the storyboard with your view controllers you need to define its behaviour with your class i.e. adding all outlets and actions. You still need to hook up your class to the view controller in the identity inspector.

If something is wrong with Xcode then try to reinstall it.

Ben Collins
Ben Collins
5,647 Points

Do you mean in the "custom class" area of the identity inspector? I specified all my custom classes for the table view controller and the new view controller (Web View Controller). I also filled in the segue identifier.

I tried reinstalling xCode also, which didn't seem to do anything.

Thanks for the suggestions though!

Ben Collins
Ben Collins
5,647 Points

I think I got it! I figured that since my storyboard changes weren't registering, it had something to do with the project recognizing the storyboard. So I went into the blog reader project settings -> general, changed the name of my storyboard (from Storyboard.storyboard to sb.storyboard), and re-selected it under "main interface." Now everything seems to be connected! Even other mysterious bugs I hadn't mentioned.

It may also be related to this issue.

Sam Chaudry
Sam Chaudry
25,519 Points

Good stuff, glad to hear its sorted!