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
Bruce Röttgers
18,211 PointsHow to open a different view, if you've not setup the app?
Hey there,
I'm building an app for my school and need to create a setup view. My approach is that the app checks if you've done the setup, by storing this in a bool variable. I'd be very thankful if someone can show me a course that shows hot to do this or a simple tutorial.
Have a great day,
Bruce.
Bruce Röttgers
18,211 PointsSo,
I just want to do a setup view that opens when you open the app for the first time.
The user enters their data (in my case his class). After this, the app uses this class to show him the right timetable. This view shouldn't open again. (Like the setup view in the Facebook app)
1 Answer
Dennis Parussini
Treehouse Project ReviewerI think the easiest way to do this is using UserDefaults. Maybe this little introduction helps: https://www.hackingwithswift.com/read/12/2/reading-and-writing-basics-userdefaults
Ryan Maneo
4,342 PointsRyan Maneo
4,342 PointsCan you emphasize as to what exactly you need help with? :)