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
Refresh Button Crash
Crashed when I press refresh button. Followed exactly as instructed and even tried to copy/paste teacher's code still didnt work. Here's the error I see:
unrecognized selector sent to instance 0x7a326b10
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Stormy.ViewController refresh:]: unrecognized selector sent to instance 0x7a326b10'
*** First throw call stack: ( 0 CoreFoundation 0x005f9946 __exceptionPreprocess + 182 1 libobjc.A.dylib 0x01fd5a97 objc_exception_throw + 44 2 CoreFoundation 0x006015c5 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
Please help... Thanks
Stone Preston42,016 Points
try deleting the refresh button, readding it, and reconnecting it to the refresh IBAction
Rajiv Barton12,051 Points
I was having the same issue. I went into my utility area and clicked on the last button called the "connections inspector". I then clicked on the refresh button and where it says "Touch Up Inside" I had two "View Controller Refresh" connections. I deleted the extra one and boom it works. Hope that helps!