Ich habe diese Animation mit einem Hintergrundbild und 12 Bilder der Nadel in der Mitte. es läuft in Ordnung, aber jedes Mal, wenn es Bild und das Bild danach zeigt, möchte ich einfach, dass es zwischen den Bildern glatt läuft. wie kann ich das machen?wie glatte Bildanimation zu erstellen
hier ist mein aktueller Code:
- (IBAction)startAnimation:(id)sender
{
imgAnimation.frame = CGRectMake(0, 0, 184.5f, 172.5f);
imgAnimation.center = CGPointMake(160, 164);
imgAnimation.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"pointer01.png"],
[UIImage imageNamed:@"pointer02.png"],
[UIImage imageNamed:@"pointer03.png"],
[UIImage imageNamed:@"pointer04.png"],
[UIImage imageNamed:@"pointer05.png"],
[UIImage imageNamed:@"pointer06.png"],
[UIImage imageNamed:@"pointer07.png"],
[UIImage imageNamed:@"pointer08.png"],
[UIImage imageNamed:@"pointer09.png"],
[UIImage imageNamed:@"pointer10.png"],
[UIImage imageNamed:@"pointer11.png"],
[UIImage imageNamed:@"pointer12.png"], nil];
[imgAnimation setAnimationRepeatCount:5];
[imgAnimation setAnimationDuration:4.0f];
[imgAnimation startAnimating];
}
Haben Sie diese Frage nicht beziehen fragte vor wenigen Stunden nur? http://stackoverflow.com/questions/10053207/how-to-animate-a-set-of-images. Dupe Konto ??? –
das möchte ich nicht machen. –
Ok .. Entschuldigung dafür .. :-)) –