Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-27-2009, 07:00 PM   #10 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Post

Quote:
Originally Posted by ataranlen View Post
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.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,869
Threads: 89,225
Posts: 380,693
Top Poster: BrianSlick (7,129)
Welcome to our newest member, aslyworo
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.