public interface UISplitViewControllerDelegate
Modifier and Type | Method and Description |
---|---|
default boolean |
collapseSecondaryViewController(UISplitViewController splitViewController,
UIViewController secondaryViewController,
UIViewController primaryViewController)
It is used in order to add a secondary view controller after adjusting
the primary in a collapsed interface.
|
default void |
popoverController(UISplitViewController svc,
UIPopoverController pc,
UIViewController aViewController)
Deprecated.
|
default int |
preferredInterfaceOrientationForPresentation(UISplitViewController splitViewController)
It is used in order to determine the orientation of the split view
controller.
|
default UIViewController |
primaryViewControllerForCollapsingSplitViewController(UISplitViewController splitViewController)
It is used in order to determine the single view controller that will be
displayed after a collapse.
|
default UIViewController |
primaryViewControllerForExpandingSplitViewController(UISplitViewController splitViewController)
It is used when the split view interface expands in order to provide the
view controller.
|
default UIViewController |
separateSecondaryViewControllerFromPrimaryViewController(UISplitViewController splitViewController,
UIViewController primaryViewController)
It is used in when a new secondary view controller is needed.
|
default boolean |
shouldHideViewController(UISplitViewController svc,
UIViewController vc,
int orientation)
It is used in order to control whether the first view controller should
be hidden concerning the given orientation.
|
default boolean |
showDetailViewController(UISplitViewController splitViewController,
UIViewController vc,
Object sender)
It is used in order to control the process of changing the secondary view
controller.
|
default boolean |
showViewController(UISplitViewController splitViewController,
UIViewController vc,
Object sender)
It is used in order to control the process of changing the primary view
controller.
|
default int |
supportedInterfaceOrientations(UISplitViewController splitViewController)
It is used in order to determine the supported orientations of the split
view controller.
|
default int |
targetDisplayModeForActionInSplitViewController(UISplitViewController svc)
It is used in order to determine the display mode after a split view
controller action.
|
default void |
willChangeToDisplayMode(UISplitViewController svc,
int UISplitViewControllerDisplayMode)
It is used when the split view controller's display mode is going to
change.
|
default void |
willHideViewController(UISplitViewController svc,
UIViewController aViewController,
UIBarButtonItem barButtonItem,
UIPopoverController pc)
Deprecated.
|
default void |
willShowViewController(UISplitViewController svc,
UIViewController aViewController,
UIBarButtonItem barButtonItem)
It is used to in order to handle a view controller that is about to be
shown again.
|
@Deprecated default void willHideViewController(UISplitViewController svc, UIViewController aViewController, UIBarButtonItem barButtonItem, UIPopoverController pc)
svc
- The split view controller that that corresponds to this
delegate.aViewController
- The view controller that is about to be hidden.barButtonItem
- The bar button item related to this action that can
be added to the bar.pc
- The related popover controller.default void willShowViewController(UISplitViewController svc, UIViewController aViewController, UIBarButtonItem barButtonItem)
svc
- The split view controller that corresponds to this delegate.aViewController
- The view controller that is about to be shown
again.barButtonItem
- The bar button item of the bar related to this
action.@Deprecated default void popoverController(UISplitViewController svc, UIPopoverController pc, UIViewController aViewController)
svc
- The split view controller that corresponds to this delegate.pc
- The related popover controller.aViewController
- The view controller that is about to be shown
again.default boolean shouldHideViewController(UISplitViewController svc, UIViewController vc, int orientation)
svc
- The split view controller that corresponds to this delegate.vc
- The first view controller that is about to be hidden.orientation
- The orientation.default void willChangeToDisplayMode(UISplitViewController svc, int UISplitViewControllerDisplayMode)
svc
- The split view controller that corresponds to this delegate.UISplitViewControllerDisplayMode
- The new display mode of the view
controller.default int targetDisplayModeForActionInSplitViewController(UISplitViewController svc)
svc
- The split view controller that corresponds to this delegate.default int preferredInterfaceOrientationForPresentation(UISplitViewController splitViewController)
splitViewController
- The split view controller that corresponds to
this delegate.default int supportedInterfaceOrientations(UISplitViewController splitViewController)
splitViewController
- The split view controller that corresponds to
this delegate.default UIViewController primaryViewControllerForCollapsingSplitViewController(UISplitViewController splitViewController)
splitViewController
- The split view controller that corresponds to
this delegate.default boolean collapseSecondaryViewController(UISplitViewController splitViewController, UIViewController secondaryViewController, UIViewController primaryViewController)
splitViewController
- The split view controller that corresponds to
this delegate.secondaryViewController
- The secondary view controller.primaryViewController
- The primary view controller.default UIViewController primaryViewControllerForExpandingSplitViewController(UISplitViewController splitViewController)
splitViewController
- The split view controller that corresponds to
this delegate.default UIViewController separateSecondaryViewControllerFromPrimaryViewController(UISplitViewController splitViewController, UIViewController primaryViewController)
splitViewController
- The split view controller that corresponds to
this delegate.primaryViewController
- The related primary view controller.default boolean showViewController(UISplitViewController splitViewController, UIViewController vc, Object sender)
splitViewController
- The split view controller that corresponds to
this delegate.vc
- The new primary view controller.sender
- The object that requests this.default boolean showDetailViewController(UISplitViewController splitViewController, UIViewController vc, Object sender)
splitViewController
- The split view controller that corresponds to
this delegate.vc
- The current secondary view controller.sender
- The object that requests this.Copyright © 2020. All rights reserved.