iBook page flip transition

后端 未结 2 1573
误落风尘
误落风尘 2020-12-30 17:05

I\'m trying recreate iBook like transition for pages in landscape mode for an pdf reader app. I only need the animation, not the, touch handling like iBook app; the user wit

相关标签:
2条回答
  • 2020-12-30 17:32

    Ole Begemann has done something like this. You can find the project here on GitHub.

    Ole also writes a superb blog summary of some of the best developer links and tutorials around. Well worth subscribing to!

    0 讨论(0)
  • 2020-12-30 17:46

    Look at the UIView documentation for animation types available. Here is what I'd use:

    UIViewAnimationOptions animation;
    if (pageNumberLower) {
        animation = UIViewAnimationOptionTransitionCurlDown;
    } else {
        animation = UIViewAnimationOptionTransitionCurlUp;
    }
    
    [UIView transitionWithView:myChangingView
                      duration:0.5
                       options:animation
                    animations:^{ CHANGE PAGE HERE }
                    completion:NULL];
    
    0 讨论(0)
提交回复
热议问题