ios - UIViewAnimation from view and back -


i have question regarding transitioning between uiviews. have view1 transition view2, when want transition doesn't work.

action called on first view flip second view.

- (ibaction)flip:(id)sender {     [uiview transitionfromview:view1 toview:view2 duration:1.0 options: uiviewanimationoptiontransitionflipfromleft                     completion: ^(bool infinished) {                     }];  } 

action called on second view:

- (ibaction)flipback:(id)sender {     [uiview transitionfromview:view2 toview:view1 duration:1.0 options: uiviewanimationoptiontransitionflipfromleft                     completion: ^(bool infinished) {                     }]; } 

thank you!

you need hold strong reference both views - when view1 removed deallocated unless keep hold of strong reference it.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -