본문 바로가기
프로그래밍 놀이터/iOS

[ios/tutorial] Flip Left/Right, & Curl Up/Down Animation

by 돼지왕 왕돼지 2017. 11. 18.
반응형

 [ios/tutorial] Flip Left/Right, & Curl Up/Down Animation


& Curl Up/Down Animation, beginanimations, commitanimations, setanimationduration, setanimationsurve, setanimationtransition, UIViewAnimationTransitionCurlDown, UIViewAnimationTransitionCurlUp, UIViewAnimationTransitionFlipFromLeft, UIViewAnimationTransitionFlipFromRight, UIViewAnimationTransitionNone, [ios/tutorial] Flip Left/Right


-

[UIView beginAnimations:nil context:nil];

[UIView setAnimationDuration:1.5];

[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];

[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft

                         forView:targetView

                         cache:YES];

[UIView commitAnimations];



-

animationTransition 에 들어갈 수 있는 constant 들은...

UIViewAnimationTransitionFlipFromLeft

UIViewAnimationTransitionFlipFromRight

UIViewAnimationTransitionCurlUp

UIViewAnimationTransitionCurlDown

UIViewAnimationTransitionNone




반응형

댓글