Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 ?