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 a Simple iPhone App with Swift Views and View Controllers IBOutlet

Ludwing Najera
Ludwing Najera
4,596 Points

FunFact app crashing when IBAction Button is pressed.

My FunFact app crashes on this string when I press the IBAction button, and what is happening?

@IBAction func showFunFact() {
funFactLabel.text = "Another interesting fact"
}

}

Stone Preston
Stone Preston
42,016 Points

what information is in the console whenever the app crashes

Open your storyboard file. Right click on the button and make sure you have only one connection listed. You may have a conflicting connection attached to it.

1 Answer

Ludwing Najera
Ludwing Najera
4,596 Points

Ok, i got it fixed. i added an All Exceptions breakpoint and that seemed to do the trick.But anyway, Thanks for the suggestions!