UISplitViewController - is a modal view controller over a detailed view controller in a landscape task

When I try to show some view in modal mode above the detailed UISPlitViewController landscape view by this code:

UIViewController *controller = ....
controller.modalPresentationStyle = UIModalPresentationPageSheet;
[self.detailedViewController presentModalViewController:controller animated:YES];

... after rejection, the detailed view moves to the left and hides behind the main view controller. It seems that the beginning of the detailed review is shifting to the beginning of the main view (the menu in my case)? Why is this happening?

+3
source share
1 answer

Show the modal view of your SplitViewController, not the part.

+3
source

Source: https://habr.com/ru/post/1787144/


All Articles