What are definesPresentationContext and providesPresentationContextTransitionStyle

前端 未结 2 1796
攒了一身酷
攒了一身酷 2020-12-13 04:06

ViewController has definesPresentationContext and providesPresentationContextTransitionStyle, but have no idea about how they work. I

2条回答
  •  Happy的楠姐
    2020-12-13 04:45

    definesPresentationContext is related to child view controllers which in storyboards are represented by Container View. So, this option influence a presentation of a new UIViewController from a container view.

    providesPresentationContextTransitionStyle is related also to child view controllers and will take effect only when definesPresentationContext is true

提交回复
热议问题