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
Justin Furstoss5,166 Points
UIButton choice only coming up as "Play Again"
Why is it that my button choice after clicking "Start Your Adventure" is only presenting me the option to "Play Again" and not the "Stop and Investigate" and "Continue home to Earth" buttons it should be?
Caleb KleveterTreehouse Moderator 37,862 Points
The issue is lines 6-7 and lines 41-46. You'll notice that if there is no first choice available, it will create a button that says 'Play Again'. In the first snippet I link to, you are creating the page and returning it. You never add any options for the next page, so you get the default button.
Hope that makes sense and you can sort it out!
By the way, I love how you put all the code in a Gist. Made it really easy for me ?