hatte ich dieses Stück Code im meinem App:iOS 4.2: Flip Bild mit Block Animationen
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:imgView cache:YES];
imgView.image = img2;
[UIView commitAnimations];
Aber Verwendung dieses Verfahrens wird in iOS 4.0 und später entmutigt, und ich soll transitionWithView:duration:options:animations:completion:
verwenden Ich kann nicht richtig funktionieren. Kann mir jemand helfen? Thx!
Vielen Dank! Klappt wunderbar. – FransGuelinckx
@KennyTM: können Sie mit [NULL vs Nil für Blöcke] klären (http://stackoverflow.com/questions/5766208/which-is-the-right-one-nil-or-null-to-mark-) No-Ziel-C-Block)? – penfold
@FransGuelinckx bitte markieren Sie diese Antwort als akzeptiert, wenn es Ihr Problem gelöst hat. –