Featured Member Applications

TanZen ($0.99)

Air Hockey ($0.99)

Forex On The Go Lite (FREE)

Cams Ahoy! Europe ($0.99)

Cams Ahoy! North America ($0.99)

Air Mouse ($5.99)

Internet Radio Box ($2.99)

Photoshop Pirate Guide ($10.99)

Oog & Gappo In The Kitchen ($2.99)

Chess Player ($3.99)

Candy Hearts ($0.99)

Want your application to be advertised here?

Go Back   iPhone Dev SDK Forum

» Site Navigation
» Home
» 360iDev Conference
Looking for an iPhone conference?



iPhone Dev SDK will be there and we're hoping to see you there!

360|iDev
San Jose, CA
March 2-4, 2009
Tickets on sale now!
» Advertisements


Visit our friends over at The App Show! Steve and Dave produce a weekly show shining a light on the iPhone 2.0 software and the applications being developed by the amazing development community for the iPhone SDK!



App Fiend is a simple and efficient way to keep track of what iPhone and iPod Touch Apps your friends are using (or have used), and what they think about them.
» Online Users: 107
19 members and 88 guests
Alainms23, almeida80, cwebb, digitalsoul, erotsppa, Forsworn, ihuangeri, jaguard, jase, mviking, ravesinc01, schroederdev, shan, smithdale87, Stevenup7002, Stitch, tkilmer, trsills, Wunk
Most users ever online was 207, 10-24-2008 at 09:29 AM.
» Stats
Members: 5,125
Threads: 7,551
Posts: 31,753
Top Poster: RickMaddy (890)
Welcome to our newest member, almeida80
View Single Post
Old 10-10-2008, 09:52 PM   #1 (permalink)
Kenrik
Senior Member
 
Join Date: Sep 2008
Posts: 248
Default Weird Animation issue...

Ok so I had an animation that was working great on an infinite loop.

Code:
- (void)cloudAnimation
{
	[UIView beginAnimations:nil context:NULL];
	[UIView setAnimationRepeatCount:1e100f];
	[UIView setAnimationDuration:30.0];
	[UIView setAnimationDelegate:self];
	[UIView setAnimationRepeatAutoreverses:YES];
	cloudView.center = CGPointMake (20, 300);
	[UIView commitAnimations];
}
It was called in my "initWithFram" like this

Code:
		[self cloudAnimation];
Well this was working perfect while the view that was my main (and only) view was what loaded first but I switched to have multiple views and this view is no longer the first view loaded by my LevelViewControler.

I Flip into the view with the animation like this:

Code:
UIImage *startButtonImage = [UIImage imageNamed:@"startButtonA.png"];
	CGRect buttonFrame = CGRectMake(startShiftRightA, startShiftDownA, startButtonImage.size.width, startButtonImage.size.height);
	startButton = [self buttonWithTitle:nil target:self.viewControllerB selector:@selector(flipGame:) frame:buttonFrame image:startButtonImage];
Well the animation does not run anymore..

But I tried to attach that animation to another of my UIviews and it instantly moved that UIview to where the end of the animation would be without actually animating (it would load in with the view already at the ending point of the animation)

What's up with this? this animation is on an infinite loop.. it should just run once called.

I'm confused as to why it's broken now when it was working before.

as a note: the rest of my animations are still working..

I know it's because I added more views and this got screwy.. I think my view is not getting initialized correctly.

HELP!

Last edited by Kenrik; 10-11-2008 at 11:18 AM.
Kenrik is offline   Reply With Quote
 
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Owned and Operated by 913solutions, LLC, ©2008 - 2009