Quote:
Originally Posted by ataranlen
Alright, So remember How I had those arrays that I would use to set the animationImages?
They are set in the Viewcontroller. How would I go about using them in the Class in the endDayCycle?
|
Many options; you could make them properties of the viewController, and pass the whole viweController into the endDayCycle method. If you did that, then endDayCycle would look like this:
Code:
-(void) endDayCycle: (ViewController*) controller{
self.imageView.animationImages = controller.newstageimage;
//other stuff I assume
}
Another method would be to put them in the application delegate, which you can get to from anywhere in your program with [[UIApplication sharedApplication] delegate] , or you could put them in a C global variable.