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 Build an Interactive Story App with Swift 2 Creating the User Interface Programmatically Creating Views Programmatically

Alex Nelson
seal-mask
.a{fill-rule:evenodd;}techdegree
Alex Nelson
iOS Development Techdegree Student 6,173 Points

Helpful tip on potential crash when running the project at the end of the video

If you've switched over to Swift 3 and Xcode 8, you likely changed the enum member cases for Story to be lowerCamelCase. If you did, the raw values will no longer match what you have in Assets since all of the images are capitalized. Adjust accordingly and you should be fine. Want to save people an error that took me some time to solve. Happy coding!

Abdulwahab Alansari
Abdulwahab Alansari
15,151 Points

Thank you for the heads up, but how did you switch to Swift 3 and Xcode 8? I didn't get any upgrade notification in my App Store