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
Zach Studdiford
6,212 PointsWindows 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
Luke Glazebrook
13,564 PointsHi 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!
Eduardo Rojas
4,084 PointsIf 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
Zach Studdiford
6,212 PointsZach Studdiford
6,212 PointsHow do you link your views together? What are the code/tools you use
Luke Glazebrook
13,564 PointsLuke Glazebrook
13,564 PointsYou 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.
Zach Studdiford
6,212 PointsZach Studdiford
6,212 PointsThanks so much!
Zach Studdiford
6,212 PointsZach Studdiford
6,212 PointsSo, if you pressed a button, what function would you use in the code to make it switch to a different view controller?
Luke Glazebrook
13,564 PointsLuke Glazebrook
13,564 PointsIf 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