IOS 6.0: UISplitViewController Popover broken or design modified by Apple?

I created a project with a master part template in Xcode 4.5 and a destination of 5.1. Can someone please help me with the following UISplitViewController questions.

  • In portrait mode, the main view disappears on the left. It does not appear as a Popover view, as it is used in iOS 5.0 in portrait mode. See Attached Images. How to get a wizard view as a popover?

  • Anyway, can I hide the main view in Landscap mode?

Thanks. popover in ios 6.0

popover till ios 5.0

+4
source share
1 answer

This is the default action since 5.1. From the iOS 6 release notes:

In iOS 5.1, the UISplitViewController class adopts a sliding presentation style when presenting the left view (previously seen only in Mail). This style is used when a presentation is initiated either by an existing panel button element provided by delegate methods or by swiping the screen in the right direction. No additional API implementation is required to get this behavior, and all existing APIs, including the UIPopoverController instance provided by the delegate, continue to work.

If the gesture is not acceptable in your application, set the Represents property of theithGesture of your split view controller to NO to disable the gesture. However, disabling gestures is not recommended since its use provides a consistent user interface in all applications.

Here's the dirty way to fix it.

+6
source

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


All Articles