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

Windows in Xcode

I have finished the tutorial for making a Crystal Ball app with Objective C. How do I make multiple windows which can be accessed at different times? Please answer!

2 Answers

Hi Kirk!

Like Eduardo said you will need to make some new View Controllers and then link them with your main one so they can all be accessed. If you need to know how to do this then either ask again here or look up a guide online!

How do you link your views together? What are the code/tools you use

You can command+drag from a button or whatever to another View Controller to link them! If you can't figure it out check out the documentation or maybe even YouTube! There are some great educational videos on there.

Thanks so much!

So, if you pressed a button, what function would you use in the code to make it switch to a different view controller?

If you cmd+drag a button to another View Controller and hit 'push' or 'modal' or one of the other options it will link them together through that button.

-Luke

If i understood correctly what you want is to create some other view controllers and some segues to change from view controller to view controller, to add another view controller go to the storyboard and in the "object library" (bottom right) you search for a view controller and thats it! any more questions just comment or if i didn't understood your question also comment