¡@

Home 

2014/10/15 ¤U¤È 10:15:24

iphone Programming Glossary: uiviewanimationoptiontransitioncurlup

Is there a way to use UIViewAnimationOptionTransitionCurlUp without it animating the entire screen?

http://stackoverflow.com/questions/4687770/is-there-a-way-to-use-uiviewanimationoptiontransitioncurlup-without-it-animating

there a way to use UIViewAnimationOptionTransitionCurlUp without it animating the entire screen I have a view controller that has the following hierarchy UIViewController view.. . The present and staged view only cover most of the screen and there is a UIToolbar at the bottom. When I use the UIViewAnimationOptionTransitionCurlUp transition it is animating the whole root view toolbar included not just the two views involved. UIView transitionFromView.. the two views involved. UIView transitionFromView self.presentView toView self.stagedView duration 0.5f options UIViewAnimationOptionTransitionCurlUp completion ^ BOOL finished if finished cleanup code Is there a way to only animate the two subviews leaving the toolbar..

Animated transition doesn't work correctly in landscape orientation

http://stackoverflow.com/questions/4707606/animated-transition-doesnt-work-correctly-in-landscape-orientation

class bundle nil UIView transitionFromView self.view toView aViewController.view duration 2 options UIViewAnimationOptionTransitionCurlUp completion NULL It appears as though the view doesn't get the orientation changed notification so it presents it in portrait.. nice animation of transitionFromView. Well try this niceness UIView transitionWithView self.view duration 2 options UIViewAnimationOptionTransitionCurlUp animations ^ self.view addSubview aViewController.view completion NULL If for some reason that doesn't work for you.. aViewController.view UIView transitionFromView self.view toView aViewController.view duration 2 options UIViewAnimationOptionTransitionCurlUp completion NULL One minor additional point is that your aViewController is leaking so you should make it a retained property..