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

How do I go back to previous versions of an app?

In the build a weather app course, we created a simple view for the weather. Then we converted the app to include table views and switched up the UI drastically. Is there any way for me to go back to the initial iteration or should I have "save as"-ed before making all these changes?

1 Answer

Nathan Tallack
Nathan Tallack
22,160 Points

In short, not likely as you are unlikely to have enabled and correctly used version control in your project.

However...

One great thing about Xcode is it has built-in integration to Git. Git is a great version control system that allows you to track version changes as you add features (amongst many other things).

There are some courses here on treehouse that teach you the basics of Git. I recommend you take an hour or two to run through them, or at the very least one of the short workshops, so that you can understand how Git works.

Once you have done that you can make sure that each new project you setup in Xcode uses a Git repository so that you can always have version control in your development.

Thanks Nathan! I feared this was the answer. An easy lesson learned though as I'll be sure to properly version control in the future..