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 trialThomas Barlow
Courses Plus Student 2,409 PointsCan the raw value in the enum be updated outside the initial creation of the enum, like updated or added?
In the video towards the end only Monday had a raw value of 1. Can the rest of the days of the week be updated with a raw value or does that have to happen during the Enum initialization?
1 Answer
Tim McEwan
19,537 PointsThomas at the beginning of that video he was doing Monday = 1, Tuesday = 2 , etc . when he only had Monday = 1 and nothing else. Its my understanding that the rest of the days of the week would have a raw value added to them. If you still don't understand watch the video again and try to experiment with xcode. good Luck