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

theo Vog
theo Vog
2,289 Points

I try to build a similar app [Fun Fact App similar app]

Hello,

I try to make a similar app as the Fun Fact App in the course, but I've a problem when I click the button in the simulator.

Can someone help me ?

You can download my Xcode file here (wetransfer link) : https://we.tl/t-0qcYTLnubd

I'm trying by my own in order to learn and apply the course.. but that's quite hard for the beginning !

Thanks, ThΓ©o

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hey Theo! Sorry for the delay...I was able to look at your project this morning. Let's try to walk through the problem together with screenshots.

I started your app in my simulator and pressed the button. I took a screenshot and circled the errors I saw in the console:

Imgur

Then, I switched over to your Storyboard and selected the button. I switched to the last tab in the Inspector pane on the right, and notice the part I circled in this next screenshot. This button is currently hooked up to two actions!

Imgur

I'm guessing you had an earlier version of this project that used the old method. See if you can figure it out from there!

theo Vog
theo Vog
2,289 Points

Up, can someone help ?