Ändern animation übergang

Ich habe eine app mit NavigationController. Wie kann ich das ändern animation, transition-Stil pushViewController und popToViewController?

UPD

Ich geschaffen Kategorie, wie in @lawicko Antwort. Aber ich bekam die Fehlermeldung, wenn ich versuche, rufen Sie die Funktion

[self.navigationController pushViewController:Orte withCustomTransition:CustomViewAnimationTransitionPush Subtyp:CustomViewAnimationSubtypeFromLeft];

Fehlermeldung lautet : "die Verwendung von nicht deklarierter Bezeichner 'CustomViewAnimationTransitionPush'"

Wo sollte ich erklären, dass diese Teil:

typedef enum {
    CustomViewAnimationTransitionNone,
    CustomViewAnimationTransitionFlipFromLeft,
    CustomViewAnimationTransitionFlipFromRight,
    CustomViewAnimationTransitionCurlUp,
    CustomViewAnimationTransitionCurlDown,
    CustomViewAnimationTransitionFadeIn,
    CustomViewAnimationTransitionMoveIn,
    CustomViewAnimationTransitionPush,
    CustomViewAnimationTransitionReveal
} CustomViewAnimationTransition;

Schreiben, jetzt erkläre ich es in UINavigationController+Additions.h

Update 2: Eine weitere neue Fehler:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CATransition", referenced from:
      objc-class-ref in UINavigationController+Additions.o
  "_kCATransition", referenced from:

und die gleichen Fehler foor alle _kCATransitions

Hast du das probiert? [1]: stackoverflow.com/questions/3699882/...
das ist ok, aber ich möchte die animation wie in zurück-Taste.. aber setzen Sie es für pushViewController
Verstehe ich nicht wirklich. Sie möchten die animation, die Sie haben, wenn Sie klicken Sie auf zurück (popViewController) die eine ist, wenn Sie drücken Sie die anzeigen (pushViewController)?
ja! ich will die animation wie horizontal verschiebbar ist. aber mit der Richtung nach Links

InformationsquelleAutor Eugene Trapeznikov | 2012-02-28

Schreibe einen Kommentar