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

后端 未结 3 734
[愿得一人]
[愿得一人] 2021-02-04 18:03

I have a view controller that has the following hierarchy:

UIViewController
|
|-view
    |-presentView (UIView)
   

3条回答
  •  遥遥无期
    2021-02-04 18:46

    I've been struggling with this issue and the only way I could resolve it is that I put the fromView into another view. In your case the view hierarchy should look like this:

    UIViewController
    |
    |-view
       |-containerView
          |-presentView
       |-stagedView
       |-UIToolBar
    

    The fromView parameter still should point to presentView. Hope this helps.

提交回复
热议问题