public class UISplitViewController extends UIViewController
Modifier and Type | Field and Description |
---|---|
static float |
AutomaticDimension |
Constructor and Description |
---|
UISplitViewController() |
Modifier and Type | Method and Description |
---|---|
UISplitViewControllerDelegate |
delegate()
Returns specified delegate of this UISplitViewController.
|
void |
didReceiveMemoryWarning()
Called when a memory warning arises in order to notify the view
controller.
|
void |
didRotateFromInterfaceOrientation(int UIInterfaceOrientation)
Called after the user interface rotation in order to notify the view
controller.
|
int |
displayMode()
Returns the display mode for this split view controller.
|
UIBarButtonItem |
displayModeButtonItem()
Returns the button of this UISplitViewController.
|
boolean |
isCollapsed()
Returns a Boolean that shows whether only one child of the view
controller is displayed.
|
void |
loadView()
Creates a view for this view controller.
|
double |
maximumPrimaryColumnWidth()
Returns the maximum width of content of the primary view controller
expressed in points.
|
double |
minimumPrimaryColumnWidth()
Returns the minimum width of content of the primary view controller
expressed in points.
|
int |
preferredDisplayMode()
Returns the preferred display mode of this split view controller.
|
double |
preferredPrimaryColumnWidthFraction()
Returns the relative width of content of the primary view controller.
|
boolean |
presentsWithGesture()
Returns a Boolean that shows whether this UISplitViewController can show
up or conceal with a swipe gesture.
|
double |
primaryColumnWidth()
Returns the width of content of the primary view controller expressed in
points.
|
void |
setDelegate(UISplitViewControllerDelegate delegate)
Set the specified delegate of this UISplitViewController.
|
void |
setMaximumPrimaryColumnWidth(double maximumPrimaryColumnWidth)
Sets the maximum width for content of the primary view controller
expressed in points.
|
void |
setMinimumPrimaryColumnWidth(double minimumPrimaryColumnWidth)
Sets the minimum width for content of the primary view controller
expressed in points.
|
void |
setPreferredDisplayMode(int UISplitViewControllerDisplayMode)
Sets the preferred display mode for this split view controller.
|
void |
setPreferredPrimaryColumnWidthFraction(double preferredPrimaryColumnWidthFraction)
Sets the relative width for content of the primary view controller.
|
void |
setPresentsWithGesture(boolean presentsWithGesture)
Sets a Boolean that defines whether this UISplitViewController can show
up or conceal with a swipe gesture.
|
void |
setViewControllers(List<UIViewController> viewControllers)
Sets the specified array of view controllers as the set that this
UISplitViewController manages.
|
void |
showDetailViewController(UIViewController vc,
Object sender)
Presents the specified UISplitViewController as the secondary controller
of this UISplitViewController.
|
void |
showViewController(UIViewController vc,
Object sender)
Presents the specified UISplitViewController as the primary controller of
this UISplitViewController.
|
List<UIViewController> |
viewControllers()
Returns the array of view controllers that this UISplitViewController
manages.
|
void |
willRotateToInterfaceOrientation(int UIInterfaceOrientation,
double duration)
Called right before the user interface begins rotating in order to notify
the view controller.
|
addChildViewController, additionalSafeAreaInsets, allowedChildViewControllersForUnwindingFromSource, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, bottomLayoutGuide, childViewControllerContainingSegueSource, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, contentSizeForViewInPopover, definesPresentationContext, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissViewControllerAnimated, edgesForExtendedLayout, editButtonItem, endAppearanceTransition, extensionContext, hidesBottomBarWhenPushed, interfaceOrientation, isEditing, isModalInPopover, isViewLoaded, loadViewIfNeeded, modalPresentationStyle, modalTransitionStyle, navigationController, navigationItem, nextResponder, nibName, parentViewController, performSegueWithIdentifier, preferredInterfaceOrientationForPresentation, preferredStatusBarStyle, prefersStatusBarHidden, prepareForSegue, presentedViewController, presentingViewController, presentModalViewController, presentViewController, providesPresentationContextTransitionStyle, removeFromParentViewController, restorationIdentifier, rotatingFooterView, rotatingHeaderView, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setHidesBottomBarWhenPushed, setModalInPopover, setModalPresentationStyle, setModalTransitionStyle, setNeedsStatusBarAppearanceUpdate, setProvidesPresentationContextTransitionStyle, setRestorationIdentifier, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setView, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifier, splitViewController, storyboard, supportedInterfaceOrientations, tabBarController, tabBarItem, title, toolbarItems, topLayoutGuide, transitionFromViewController, view, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, wantsFullScreenLayout, willAnimateRotationToInterfaceOrientation
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static final float AutomaticDimension
public List<UIViewController> viewControllers()
public void setViewControllers(List<UIViewController> viewControllers)
viewControllers
- The array of view controllers that this
UISplitViewController manages.public boolean presentsWithGesture()
public void setPresentsWithGesture(boolean presentsWithGesture)
presentsWithGesture
- A Boolean that defines whether this
UISplitViewController can show up or conceal with a swipe gesture.public int preferredDisplayMode()
public void setPreferredDisplayMode(int UISplitViewControllerDisplayMode)
UISplitViewControllerDisplayMode
- The preferred display mode for
this split view controller.public int displayMode()
UISplitViewControllerDisplayMode
public UIBarButtonItem displayModeButtonItem()
public boolean isCollapsed()
public double preferredPrimaryColumnWidthFraction()
public void setPreferredPrimaryColumnWidthFraction(double preferredPrimaryColumnWidthFraction)
preferredPrimaryColumnWidthFraction
- The relative width for content
of the primary view controller.public double primaryColumnWidth()
public double minimumPrimaryColumnWidth()
public void setMinimumPrimaryColumnWidth(double minimumPrimaryColumnWidth)
minimumPrimaryColumnWidth
- The minimum width for content of the
primary view controller expressed in points.public double maximumPrimaryColumnWidth()
public void setMaximumPrimaryColumnWidth(double maximumPrimaryColumnWidth)
maximumPrimaryColumnWidth
- The maximum width for content of the
primary view controller expressed in points.public UISplitViewControllerDelegate delegate()
public void setDelegate(UISplitViewControllerDelegate delegate)
delegate
- The specified delegate of this UISplitViewController.public void showDetailViewController(UIViewController vc, Object sender)
showDetailViewController
in class UIViewController
vc
- The secondary controller of this UISplitViewController.sender
- The object that applied this request.public void showViewController(UIViewController vc, Object sender)
showViewController
in class UIViewController
vc
- The primary controller of this UISplitViewController.sender
- The object that applied this request.public void loadView()
UIViewController
loadView
in class UIViewController
public void didReceiveMemoryWarning()
UIViewController
didReceiveMemoryWarning
in class UIViewController
public void willRotateToInterfaceOrientation(int UIInterfaceOrientation, double duration)
UIViewController
willRotateToInterfaceOrientation
in class UIViewController
UIInterfaceOrientation
- The new orientation of the user interface.duration
- The duration of the rotation expressed in seconds.UIInterfaceOrientation
public void didRotateFromInterfaceOrientation(int UIInterfaceOrientation)
UIViewController
didRotateFromInterfaceOrientation
in class UIViewController
UIInterfaceOrientation
- The previous orientation of the user
interface.UIInterfaceOrientation
Copyright © 2020. All rights reserved.