Wie pro Ihre Anforderung möchten Sie Bild eines nach dem anderen
zu diesem Zweck Verwendung Abschluss Block ersten Bildanimation animieren zweites Bild zu animieren und so weiter wie unter Code
UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"-t%d",1]]];
[imgView setBackgroundColor:[UIColor redColor]];
UIImageView *imgView2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"-t%d",2]]];
[imgView2 setBackgroundColor:[UIColor redColor]];
UIImageView *imgView3 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"-t%d",2]]];
[imgView3 setBackgroundColor:[UIColor redColor]];
[self.view addSubview:imgView];
[self.view addSubview:imgView2];
[self.view addSubview:imgView3];
[UIView animateWithDuration:0.5 delay:1.0 options:UIViewAnimationOptionLayoutSubviews animations:^{
[imgView setFrame:CGRectMake(0, 0, 150, 150)];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.5 delay:1.0 options:UIViewAnimationOptionLayoutSubviews animations:^{
[imgView2 setFrame:CGRectMake(self.view.frame.size.width - 150, 0, 150, 150)];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.5 delay:1.0 options:UIViewAnimationOptionLayoutSubviews animations:^{
[imgView3 setFrame:CGRectMake(0, self.view.frame.size.height - 150, 150, 150)];
} completion:^(BOOL finished) {
}];
}];
}];
Es wird Hilfe Sie :)
Sie benötigen uiimageview Animation schnell zu langsam für Perticular Bereich? – Shreyank
UIView animateWithDuration? –
@Shreyank .... Nicht schnell zu langsam ... aber wir wollen 3 Bilder nacheinander nach einiger Zeit an 3 verschiedenen Orten hinzufügen ... ein Bild an einer Stelle, nachdem das Bild platziert wurde, nächstes Bild animieren und kommen in den nächsten Ort wie das –