Using definesPresentationContext with UIModalPresentationStyle.custom
问题 I am using view controller containment to manage a set of child view controllers which should be able to modally present other view controllers in a custom manner. I have run into an issue where the definesPresentationContext property is not used when a presenting from a view controller using UIModalPresentationStyle.custom As an example, I have three view controllers: ROOT , A , and B ROOT |_ A A is the child of ROOT . I would like to present B modally from A while using custom