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 trialNigel Hall
4,650 PointsConnecting random fact button to correct fact instance
I am currently trying to make the upgraded FunFact App that Pasan suggested at the end of this video. I am having trouble finding a way to connect the randomFact generator button to the correct fact instance. I am having trouble because we got our fact instance through the prepareForSegueMethod the first time around but now there's no segue to run through since it all takes place on one view. How am I supposed to get the correct index for the facts I am trying to retrieve?
1 Answer
Nick Kohrn
36,940 PointsCan you provide the code that you currently have so that I can try to help you?