0

I have two ViewControllers.

  1. Presenting
  2. Presented -> can be FullScreen or FormSheet (depending whether it is running on compact or regular horizontal size class)

How can Presented controller detect, whether it is presented as a modal or FormSheet?

4

1 回答 1

0

Just check the modalPresentationStyle property of the UIViewController.

于 2018-10-20T11:50:40.730 回答