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 in Swift

When I run The app it works fine until I click on the refresh button and I get this in the console don't really understand what it means..

[Stormy.ViewController refrsh]: unrecognized selector sent to instance 0x7fb7fbd0b0c0 2014-12-11 16:29:56.089 Stormy[1619:61365] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Stormy.ViewController refrsh]: unrecognized selector sent to instance 0x7fb7fbd0b0c0'

I have already deleted the refreshActivityIndicator and connected it again.

2 Answers

[Stormy.ViewController refrsh]: unrecognized selector sent to instance 0x7fb7fbd0b0c0'

that means that the view controller called a function that it does not recognize, or a function that does not exist.

you misspelled the refresh function call as refrsh.

go back in your code to the refresh button action and fix the function call to be refresh() not refrsh()

I tried looking for 'refrsh' by using the command Find action but it did not find anything with 'refrsh' everything is already spelled correctly

go look for it manually in your view controller then. Look in the IBAction for the refresh button. im pretty sure thats whats wrong. if you cant find it, please post the code you have in your view controller

Ok I got you now yes I had misspelled refresh when I created the Action Thanks Again !!!!!!!!!! have a nice day Stone!