iphone - Push ViewController with modal animation (horizontal flip) -



iphone - Push ViewController with modal animation (horizontal flip) -

i need force view controller view controller.

menuvc -> vc1 ->vc2

going menuvc vc1 requires no animation, going vc1 vc2 , vc2 vc1 requires flip animaton occur.

however, when going vc2 menuvc, no animation needed.

i using next code:

(from how force viewcontroller flip animation)

[uiview beginanimations:nil context:nil]; [uiview setanimationduration:1]; [uiview setanimationcurve:uiviewanimationcurveeasein]; [uiview setanimationtransition:uiviewanimationtransitionflipfromleft forview:self.view cache:yes]; flashcardvc *flashcardvc = [[flashcardvc alloc] init]; [self.navigationcontroller pushviewcontroller:flashcardvc animated:no]; [uiview commitanimations];

the screen goes blank when seek , above.

what wrong?

you should using block based animations now. also, if you're instantiating storyboard controller controller that's in same storyboard, can more access storyboard self.storyboard.

-(ibaction)fliptonext:(id)sender { secondcontroller *next = [self.storyboard instantiateviewcontrollerwithidentifier:@"next"]; [self.navigationcontroller pushviewcontroller:next animated:no]; [uiview transitionwithview:self.navigationcontroller.view duration:1 options:uiviewanimationoptiontransitionflipfromright animations:nil completion:nil]; }

iphone ios objective-c uiviewcontroller modalviewcontroller

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -