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 Weather App with Swift Simple Data Structures Bootstrapping the UI

Ludwing Najera
Ludwing Najera
4,596 Points

My Stormy app died! help!

i was making an outlet from a label and i was putting an input into the outlet and this was the code i made

currentTemperatureLabel?.text = "(currentWeather.temperature)ΒΊ"

i then tried to run it, but it gave me an uncaught exception on this line of code in the AppDelegate file.

class AppDelegate: UIResponder, UIApplicationDelegate {

i made an exception breakpoint, and it stopped on the currentTemperatureLabel.

i get an error in the console saying "2015-08-14 09:27:43.351 Stormy[12965:1362834] -[UIView setText:]: unrecognized selector sent to instance 0x7ff930c8eec0"

i have no idea what is happening...

5 Answers

Jhoan Arango
Jhoan Arango
14,575 Points

Perhaps you deleted an icon or label without disconnecting it from the storyboard ?

Ludwing Najera
Ludwing Najera
4,596 Points

no, i had never done that.

Me too getting runtime error in currentTemperatureLabel. Please help

I got the exact same thing, any answer yet?

Jhoan Arango
Jhoan Arango
14,575 Points

I’m not sure what’s giving you guys the same error, but in the video Pasan goes into an error himself, but then he corrects it. Don’t know if you guys have done the same correction as he has. Also remember that he is change the outlet to an optional, make sure you do the same.