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

Deanna Robertazzi
PLUS
Deanna Robertazzi
Courses Plus Student 2,447 Points

I can't animate my crystal ball

My app crashes every time I run the simulator. This link is a picture of my viewController.m file:

https://www.dropbox.com/s/nj9u9iqaugspyaf/Photo%20Jul%2010%2C%203%2019%2030%20PM%20%28HDR%29.jpg

This is my main storyboard and the error I get:

https://www.dropbox.com/s/y83bs9h42umhxad/Photo%20Jul%2010%2C%203%2019%2054%20PM.jpg

What's wrong with my code and storyboard? Thank you.

Patrick Cooney
Patrick Cooney
12,216 Points

1) can you post the code to the forums from your view controller and model files? Here's how to format it

2) The unrecognized selector could be a few things. Something that needs to stay around may be getting released by ARC, you could be trying to send a method to a class that doesn't support it, etc.

If you post the actual code it will be easier for us to help you out.

1 Answer

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Why does it say [UILabel setAnimationImages:] in the console output? Are you trying to set the animation images array to the label or to the background UIImageView.

If you can post your project files to Dropbox or some place else I'll have a look and let you know.