Lukasz
Lukasz

Reputation: 19936

UISplitViewController - presenting modal view controller over the detailed view controller in landscape problem

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

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

...after dismissing it, detailed view is moved to the left and hides behind master view controller. It looks like origin of the detailed view shifts to the origin of the master view (menu in my case)? Why is it happening?

Upvotes: 3

Views: 1672

Answers (1)

Sulthan
Sulthan

Reputation: 130200

Show the modal view over your SplitViewController, not over the detail.

Upvotes: 3

Related Questions