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

Thomas Gordon
Thomas Gordon
2,284 Points

Container Views within the View Controller

I'm having issues trying to set this up period it seems. I have a container view within a view controller that will have children view to be called upon button press. I can't seem to get it to work right. It either doesn't get the new view or the new view is already populated when you run it. Thanks for any help.

2 Answers

Sebastien Thomas
Sebastien Thomas
16,502 Points

Hi Thomas,

Can you post your code so we can have a look at where the issue might be ?

Thomas Gordon
Thomas Gordon
2,284 Points

I've started a test app to test out what I did wrong. Long story short...too much code. I was able to get the container to work, but not in the method I was wanting. I have a series of buttons on the screen (not a toolbar) and need them to call the assigned VCs for them. I've tried many different ways to include large amounts of segue code that seems to be of no use. It's probably something simple that I'm overlooking.