Struct objc2_ui_kit::UIViewController

source ·
#[repr(C)]
pub struct UIViewController { /* private fields */ }
Available on crate features UIResponder and UIViewController only.

Implementations§

source§

impl UIViewController

UINavigationControllerItem

source

pub unsafe fn navigationItem(&self) -> Retained<UINavigationItem>

Available on crate features UINavigationController and UINavigationItem only.
source

pub unsafe fn hidesBottomBarWhenPushed(&self) -> bool

Available on crate feature UINavigationController only.
source

pub unsafe fn setHidesBottomBarWhenPushed( &self, hides_bottom_bar_when_pushed: bool )

Available on crate feature UINavigationController only.
source

pub unsafe fn navigationController( &self ) -> Option<Retained<UINavigationController>>

Available on crate feature UINavigationController only.
source§

impl UIViewController

UINavigationControllerContextualToolbarItems

source

pub unsafe fn toolbarItems(&self) -> Option<Retained<NSArray<UIBarButtonItem>>>

Available on crate features UINavigationController and UIBarButtonItem and UIBarItem only.
source

pub unsafe fn setToolbarItems( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>> )

Available on crate features UINavigationController and UIBarButtonItem and UIBarItem only.
source

pub unsafe fn setToolbarItems_animated( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>>, animated: bool )

Available on crate features UINavigationController and UIBarButtonItem and UIBarItem only.
source§

impl UIViewController

UIPopoverController

source

pub unsafe fn isModalInPopover(&self) -> bool

👎Deprecated
Available on crate feature UIPopoverSupport only.
source

pub unsafe fn setModalInPopover(&self, modal_in_popover: bool)

👎Deprecated
Available on crate feature UIPopoverSupport only.
source

pub unsafe fn contentSizeForViewInPopover(&self) -> CGSize

👎Deprecated
Available on crate feature UIPopoverSupport only.
source

pub unsafe fn setContentSizeForViewInPopover( &self, content_size_for_view_in_popover: CGSize )

👎Deprecated
Available on crate feature UIPopoverSupport only.
source§

impl UIViewController

UISplitViewController

source

pub unsafe fn splitViewController( &self ) -> Option<Retained<UISplitViewController>>

Available on crate feature UISplitViewController only.
source

pub unsafe fn collapseSecondaryViewController_forSplitViewController( &self, secondary_view_controller: &UIViewController, split_view_controller: &UISplitViewController )

Available on crate feature UISplitViewController only.
source

pub unsafe fn separateSecondaryViewControllerForSplitViewController( &self, split_view_controller: &UISplitViewController ) -> Option<Retained<UIViewController>>

Available on crate feature UISplitViewController only.
source§

impl UIViewController

UITabBarControllerItem

source

pub unsafe fn tabBarItem(&self) -> Option<Retained<UITabBarItem>>

Available on crate features UITabBarController and UIBarItem and UITabBarItem only.
source

pub unsafe fn setTabBarItem(&self, tab_bar_item: Option<&UITabBarItem>)

Available on crate features UITabBarController and UIBarItem and UITabBarItem only.
source

pub unsafe fn tabBarController(&self) -> Option<Retained<UITabBarController>>

Available on crate feature UITabBarController only.
source

pub unsafe fn tabBarObservedScrollView(&self) -> Option<Retained<UIScrollView>>

👎Deprecated: Use -setContentScrollView:forEdge: instead.
Available on crate features UITabBarController and UIScrollView and UIView only.
source

pub unsafe fn setTabBarObservedScrollView( &self, tab_bar_observed_scroll_view: Option<&UIScrollView> )

👎Deprecated: Use -setContentScrollView:forEdge: instead.
Available on crate features UITabBarController and UIScrollView and UIView only.
source§

impl UIViewController

source

pub unsafe fn initWithNibName_bundle( this: Allocated<Self>, nib_name_or_nil: Option<&NSString>, nib_bundle_or_nil: Option<&NSBundle> ) -> Retained<Self>

source

pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>

source

pub fn view(&self) -> Option<Retained<UIView>>

Available on crate feature UIView only.
source

pub fn setView(&self, view: Option<&UIView>)

Available on crate feature UIView only.
source

pub unsafe fn loadView(&self)

source

pub unsafe fn loadViewIfNeeded(&self)

source

pub unsafe fn viewIfLoaded(&self) -> Option<Retained<UIView>>

Available on crate feature UIView only.
source

pub unsafe fn viewWillUnload(&self)

👎Deprecated
source

pub unsafe fn viewDidUnload(&self)

👎Deprecated
source

pub unsafe fn viewDidLoad(&self)

source

pub unsafe fn isViewLoaded(&self) -> bool

source

pub unsafe fn nibName(&self) -> Option<Retained<NSString>>

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
source

pub unsafe fn nibBundle(&self) -> Option<Retained<NSBundle>>

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
source

pub unsafe fn storyboard(&self) -> Option<Retained<UIStoryboard>>

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UIStoryboard only.
source

pub unsafe fn performSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject> )

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
source

pub unsafe fn shouldPerformSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject> ) -> bool

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
source

pub unsafe fn prepareForSegue_sender( &self, segue: &UIStoryboardSegue, sender: Option<&AnyObject> )

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UIStoryboardSegue only.
source

pub unsafe fn canPerformUnwindSegueAction_fromViewController_sender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject> ) -> bool

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
source

pub unsafe fn canPerformUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: &AnyObject ) -> bool

👎Deprecated
source

pub unsafe fn allowedChildViewControllersForUnwindingFromSource( &self, source: &UIStoryboardUnwindSegueSource ) -> Retained<NSArray<UIViewController>>

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UIStoryboardSegue only.
source

pub unsafe fn childViewControllerContainingSegueSource( &self, source: &UIStoryboardUnwindSegueSource ) -> Option<Retained<UIViewController>>

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UIStoryboardSegue only.
source

pub unsafe fn viewControllerForUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject> ) -> Option<Retained<UIViewController>>

👎Deprecated
source

pub unsafe fn unwindForSegue_towardsViewController( &self, unwind_segue: &UIStoryboardSegue, subsequent_vc: &UIViewController )

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UIStoryboardSegue only.
source

pub unsafe fn segueForUnwindingToViewController_fromViewController_identifier( &self, to_view_controller: &UIViewController, from_view_controller: &UIViewController, identifier: Option<&NSString> ) -> Option<Retained<UIStoryboardSegue>>

👎Deprecated
Available on crate feature UIStoryboardSegue only.
source

pub unsafe fn viewWillAppear(&self, animated: bool)

source

pub unsafe fn viewIsAppearing(&self, animated: bool)

source

pub unsafe fn viewDidAppear(&self, animated: bool)

source

pub unsafe fn viewWillDisappear(&self, animated: bool)

source

pub unsafe fn viewDidDisappear(&self, animated: bool)

source

pub unsafe fn viewWillLayoutSubviews(&self)

source

pub unsafe fn viewDidLayoutSubviews(&self)

source

pub unsafe fn title(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setTitle(&self, title: Option<&NSString>)

source

pub unsafe fn didReceiveMemoryWarning(&self)

source

pub unsafe fn parentViewController(&self) -> Option<Retained<UIViewController>>

source

pub unsafe fn modalViewController(&self) -> Option<Retained<UIViewController>>

👎Deprecated
source

pub unsafe fn presentedViewController( &self ) -> Option<Retained<UIViewController>>

source

pub unsafe fn presentingViewController( &self ) -> Option<Retained<UIViewController>>

source

pub unsafe fn definesPresentationContext(&self) -> bool

source

pub unsafe fn setDefinesPresentationContext( &self, defines_presentation_context: bool )

source

pub unsafe fn providesPresentationContextTransitionStyle(&self) -> bool

source

pub unsafe fn setProvidesPresentationContextTransitionStyle( &self, provides_presentation_context_transition_style: bool )

source

pub unsafe fn restoresFocusAfterTransition(&self) -> bool

source

pub unsafe fn setRestoresFocusAfterTransition( &self, restores_focus_after_transition: bool )

source

pub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString> )

source

pub unsafe fn interactionActivityTrackingBaseName( &self ) -> Option<Retained<NSString>>

source

pub unsafe fn setInteractionActivityTrackingBaseName( &self, interaction_activity_tracking_base_name: Option<&NSString> )

source

pub unsafe fn isBeingPresented(&self) -> bool

source

pub unsafe fn isBeingDismissed(&self) -> bool

source

pub unsafe fn isMovingToParentViewController(&self) -> bool

source

pub unsafe fn isMovingFromParentViewController(&self) -> bool

source

pub unsafe fn presentViewController_animated_completion( &self, view_controller_to_present: &UIViewController, flag: bool, completion: Option<&Block<dyn Fn()>> )

Available on crate feature block2 only.
source

pub unsafe fn dismissViewControllerAnimated_completion( &self, flag: bool, completion: Option<&Block<dyn Fn()>> )

Available on crate feature block2 only.
source

pub unsafe fn presentModalViewController_animated( &self, modal_view_controller: &UIViewController, animated: bool )

👎Deprecated
source

pub unsafe fn dismissModalViewControllerAnimated(&self, animated: bool)

👎Deprecated
source

pub unsafe fn modalTransitionStyle(&self) -> UIModalTransitionStyle

source

pub unsafe fn setModalTransitionStyle( &self, modal_transition_style: UIModalTransitionStyle )

source

pub unsafe fn modalPresentationStyle(&self) -> UIModalPresentationStyle

source

pub unsafe fn setModalPresentationStyle( &self, modal_presentation_style: UIModalPresentationStyle )

source

pub unsafe fn modalPresentationCapturesStatusBarAppearance(&self) -> bool

source

pub unsafe fn setModalPresentationCapturesStatusBarAppearance( &self, modal_presentation_captures_status_bar_appearance: bool )

source

pub unsafe fn disablesAutomaticKeyboardDismissal(&self) -> bool

source

pub unsafe fn wantsFullScreenLayout(&self) -> bool

👎Deprecated
source

pub unsafe fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)

👎Deprecated
source

pub unsafe fn edgesForExtendedLayout(&self) -> UIRectEdge

Available on crate feature UIGeometry only.
source

pub unsafe fn setEdgesForExtendedLayout( &self, edges_for_extended_layout: UIRectEdge )

Available on crate feature UIGeometry only.
source

pub unsafe fn extendedLayoutIncludesOpaqueBars(&self) -> bool

source

pub unsafe fn setExtendedLayoutIncludesOpaqueBars( &self, extended_layout_includes_opaque_bars: bool )

source

pub unsafe fn automaticallyAdjustsScrollViewInsets(&self) -> bool

👎Deprecated: Use UIScrollView’s contentInsetAdjustmentBehavior instead
source

pub unsafe fn setAutomaticallyAdjustsScrollViewInsets( &self, automatically_adjusts_scroll_view_insets: bool )

👎Deprecated: Use UIScrollView’s contentInsetAdjustmentBehavior instead
source

pub unsafe fn setContentScrollView_forEdge( &self, scroll_view: Option<&UIScrollView>, edge: NSDirectionalRectEdge )

Available on crate features UIGeometry and UIScrollView and UIView only.
source

pub unsafe fn contentScrollViewForEdge( &self, edge: NSDirectionalRectEdge ) -> Option<Retained<UIScrollView>>

Available on crate features UIGeometry and UIScrollView and UIView only.
source

pub unsafe fn preferredContentSize(&self) -> CGSize

source

pub unsafe fn setPreferredContentSize(&self, preferred_content_size: CGSize)

source

pub unsafe fn preferredStatusBarStyle(&self) -> UIStatusBarStyle

👎Deprecated: Has no effect on visionOS
Available on crate feature UIApplication only.
source

pub unsafe fn prefersStatusBarHidden(&self) -> bool

👎Deprecated: Has no effect on visionOS
source

pub unsafe fn preferredStatusBarUpdateAnimation(&self) -> UIStatusBarAnimation

👎Deprecated: Has no effect on visionOS
Available on crate feature UIApplication only.
source

pub fn setNeedsStatusBarAppearanceUpdate(&self)

source

pub unsafe fn targetViewControllerForAction_sender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<UIViewController>>

source

pub unsafe fn showViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject> )

source

pub unsafe fn showDetailViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject> )

source

pub unsafe fn preferredUserInterfaceStyle(&self) -> UIUserInterfaceStyle

Available on crate feature UIInterface only.
source

pub unsafe fn setNeedsUserInterfaceAppearanceUpdate(&self)

source

pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle

Available on crate feature UIInterface only.
source

pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle )

Available on crate feature UIInterface only.
source§

impl UIViewController

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

source

pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>

source§

impl UIViewController

UIViewControllerRotation

source

pub fn attemptRotationToDeviceOrientation(mtm: MainThreadMarker)

👎Deprecated: Please use instance method setNeedsUpdateOfSupportedInterfaceOrientations.
source

pub unsafe fn shouldAutorotateToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation ) -> bool

👎Deprecated
Available on crate feature UIOrientation only.
source

pub unsafe fn shouldAutorotate(&self) -> bool

👎Deprecated: Update supported interface orientations and call setNeedsUpdateOfSupportedInterfaceOrientations to indicate a change.
source

pub unsafe fn supportedInterfaceOrientations( &self ) -> UIInterfaceOrientationMask

Available on crate feature UIOrientation only.
source

pub unsafe fn preferredInterfaceOrientationForPresentation( &self ) -> UIInterfaceOrientation

Available on crate feature UIOrientation only.
source

pub unsafe fn setNeedsUpdateOfSupportedInterfaceOrientations(&self)

source

pub unsafe fn rotatingHeaderView(&self) -> Option<Retained<UIView>>

👎Deprecated: Header views are animated along with the rest of the view hierarchy
Available on crate feature UIView only.
source

pub unsafe fn rotatingFooterView(&self) -> Option<Retained<UIView>>

👎Deprecated: Footer views are animated along with the rest of the view hierarchy
Available on crate feature UIView only.
source

pub unsafe fn interfaceOrientation(&self) -> UIInterfaceOrientation

👎Deprecated
Available on crate feature UIOrientation only.
source

pub unsafe fn willRotateToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )

👎Deprecated: Implement viewWillTransitionToSize:withTransitionCoordinator: instead
Available on crate feature UIOrientation only.
source

pub unsafe fn didRotateFromInterfaceOrientation( &self, from_interface_orientation: UIInterfaceOrientation )

👎Deprecated
Available on crate feature UIOrientation only.
source

pub unsafe fn willAnimateRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )

👎Deprecated: Implement viewWillTransitionToSize:withTransitionCoordinator: instead
Available on crate feature UIOrientation only.
source

pub unsafe fn willAnimateFirstHalfOfRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )

👎Deprecated
Available on crate feature UIOrientation only.
source

pub unsafe fn didAnimateFirstHalfOfRotationToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation )

👎Deprecated
Available on crate feature UIOrientation only.
source

pub unsafe fn willAnimateSecondHalfOfRotationFromInterfaceOrientation_duration( &self, from_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )

👎Deprecated
Available on crate feature UIOrientation only.
source§

impl UIViewController

UIViewControllerEditing

source

pub unsafe fn isEditing(&self) -> bool

source

pub unsafe fn setEditing(&self, editing: bool)

source

pub unsafe fn setEditing_animated(&self, editing: bool, animated: bool)

source

pub unsafe fn editButtonItem(&self) -> Retained<UIBarButtonItem>

Available on crate features UIBarButtonItem and UIBarItem only.
source§

impl UIViewController

UISearchDisplayControllerSupport

source

pub unsafe fn searchDisplayController( &self ) -> Option<Retained<UISearchDisplayController>>

👎Deprecated
Available on crate feature UISearchDisplayController only.
source§

impl UIViewController

UIContainerViewControllerProtectedMethods

source

pub unsafe fn childViewControllers(&self) -> Retained<NSArray<UIViewController>>

source

pub unsafe fn addChildViewController(&self, child_controller: &UIViewController)

source

pub unsafe fn removeFromParentViewController(&self)

source

pub unsafe fn transitionFromViewController_toViewController_duration_options_animations_completion( &self, from_view_controller: &UIViewController, to_view_controller: &UIViewController, duration: NSTimeInterval, options: UIViewAnimationOptions, animations: Option<&Block<dyn Fn()>>, completion: Option<&Block<dyn Fn(Bool)>> )

Available on crate features UIView and block2 only.
source

pub unsafe fn beginAppearanceTransition_animated( &self, is_appearing: bool, animated: bool )

source

pub unsafe fn endAppearanceTransition(&self)

source

pub unsafe fn childViewControllerForStatusBarStyle( &self ) -> Option<Retained<UIViewController>>

👎Deprecated: Has no effect on visionOS
source

pub unsafe fn childViewControllerForStatusBarHidden( &self ) -> Option<Retained<UIViewController>>

👎Deprecated: Has no effect on visionOS
source

pub unsafe fn setOverrideTraitCollection_forChildViewController( &self, collection: Option<&UITraitCollection>, child_view_controller: &UIViewController )

👎Deprecated: Use the traitOverrides property on the child view controller instead
Available on crate feature UITraitCollection only.
source

pub unsafe fn overrideTraitCollectionForChildViewController( &self, child_view_controller: &UIViewController ) -> Option<Retained<UITraitCollection>>

👎Deprecated: Use the traitOverrides property on the child view controller instead
Available on crate feature UITraitCollection only.
source

pub unsafe fn childViewControllerForUserInterfaceStyle( &self ) -> Option<Retained<UIViewController>>

source§

impl UIViewController

UIContainerViewControllerCallbacks

source

pub unsafe fn automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers( &self ) -> bool

👎Deprecated
source

pub unsafe fn shouldAutomaticallyForwardRotationMethods(&self) -> bool

👎Deprecated: Manually forward viewWillTransitionToSize:withTransitionCoordinator: if necessary
source

pub unsafe fn shouldAutomaticallyForwardAppearanceMethods(&self) -> bool

source

pub unsafe fn willMoveToParentViewController( &self, parent: Option<&UIViewController> )

source

pub unsafe fn didMoveToParentViewController( &self, parent: Option<&UIViewController> )

source§

impl UIViewController

UIStateRestoration

source

pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString> )

source

pub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>

Available on crate feature UIStateRestoration only.
source

pub unsafe fn setRestorationClass(&self, restoration_class: Option<&AnyClass>)

Available on crate feature UIStateRestoration only.
source

pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)

source

pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)

source

pub unsafe fn applicationFinishedRestoringState(&self)

source§

impl UIViewController

UIConstraintBasedLayoutCoreMethods

source

pub unsafe fn updateViewConstraints(&self)

source§

impl UIViewController

UIViewControllerTransitioning

source

pub unsafe fn transitioningDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitioningDelegate>>>

Available on crate feature UIViewControllerTransitioning only.
source

pub unsafe fn setTransitioningDelegate( &self, transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>> )

Available on crate feature UIViewControllerTransitioning only.
source§

impl UIViewController

UILayoutSupport

source

pub unsafe fn topLayoutGuide( &self ) -> Retained<ProtocolObject<dyn UILayoutSupport>>

👎Deprecated: Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor
Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn bottomLayoutGuide( &self ) -> Retained<ProtocolObject<dyn UILayoutSupport>>

👎Deprecated: Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor
Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn additionalSafeAreaInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setAdditionalSafeAreaInsets( &self, additional_safe_area_insets: UIEdgeInsets )

Available on crate feature UIGeometry only.
source

pub unsafe fn systemMinimumLayoutMargins(&self) -> NSDirectionalEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn viewRespectsSystemMinimumLayoutMargins(&self) -> bool

source

pub unsafe fn setViewRespectsSystemMinimumLayoutMargins( &self, view_respects_system_minimum_layout_margins: bool )

source

pub unsafe fn viewLayoutMarginsDidChange(&self)

source

pub unsafe fn viewSafeAreaInsetsDidChange(&self)

source§

impl UIViewController

UIKeyCommand

source

pub unsafe fn addKeyCommand(&self, key_command: &UIKeyCommand)

Available on crate features UICommand and UIKeyCommand and UIMenuElement only.
source

pub unsafe fn removeKeyCommand(&self, key_command: &UIKeyCommand)

Available on crate features UICommand and UIKeyCommand and UIMenuElement only.
source§

impl UIViewController

UIPerformsActions

source§

impl UIViewController

NSExtensionAdditions

source§

impl UIViewController

UIPresentationController

source

pub unsafe fn presentationController( &self ) -> Option<Retained<UIPresentationController>>

Available on crate feature UIPresentationController only.
source

pub unsafe fn sheetPresentationController( &self ) -> Option<Retained<UISheetPresentationController>>

Available on crate features UIPresentationController and UISheetPresentationController only.
source

pub unsafe fn popoverPresentationController( &self ) -> Option<Retained<UIPopoverPresentationController>>

Available on crate features UIPopoverPresentationController and UIPresentationController only.
source

pub unsafe fn activePresentationController( &self ) -> Option<Retained<UIPresentationController>>

Available on crate feature UIPresentationController only.
source

pub unsafe fn isModalInPresentation(&self) -> bool

source

pub unsafe fn setModalInPresentation(&self, modal_in_presentation: bool)

source§

impl UIViewController

UIViewControllerPreviewingRegistration

source

pub unsafe fn registerForPreviewingWithDelegate_sourceView( &self, delegate: &ProtocolObject<dyn UIViewControllerPreviewingDelegate>, source_view: &UIView ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewing>>

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature UIView only.
source

pub unsafe fn unregisterForPreviewingWithContext( &self, previewing: &ProtocolObject<dyn UIViewControllerPreviewing> )

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
source§

impl UIViewController

UIScreenEdgesDeferringSystemGestures

source§

impl UIViewController

UIHomeIndicatorAutoHidden

source§

impl UIViewController

UIPointerLockSupport

source§

impl UIViewController

source

pub unsafe fn contentUnavailableConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIContentConfiguration>>>

Available on crate feature UIContentConfiguration only.
source

pub unsafe fn setContentUnavailableConfiguration( &self, content_unavailable_configuration: Option<&ProtocolObject<dyn UIContentConfiguration>> )

Available on crate feature UIContentConfiguration only.
source

pub unsafe fn contentUnavailableConfigurationState( &self ) -> Retained<UIContentUnavailableConfigurationState>

Available on crate feature UIContentUnavailableConfigurationState only.
source

pub unsafe fn setNeedsUpdateContentUnavailableConfiguration(&self)

source

pub unsafe fn updateContentUnavailableConfigurationUsingState( &self, state: &UIContentUnavailableConfigurationState )

Available on crate feature UIContentUnavailableConfigurationState only.
source§

impl UIViewController

source

pub unsafe fn previewActionItems( &self ) -> Retained<NSArray<ProtocolObject<dyn UIPreviewActionItem>>>

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
source§

impl UIViewController

source

pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>

Available on crate feature UITraitCollection only.
source

pub unsafe fn updateTraitsIfNeeded(&self)

source§

impl UIViewController

source§

impl UIViewController

UIViewControllerTransitionCoordinator

source

pub unsafe fn transitionCoordinator( &self ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitionCoordinator>>>

Available on crate feature UIViewControllerTransitionCoordinator only.

Methods from Deref<Target = UIResponder>§

source

pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>

source

pub unsafe fn canBecomeFirstResponder(&self) -> bool

source

pub unsafe fn becomeFirstResponder(&self) -> bool

source

pub unsafe fn canResignFirstResponder(&self) -> bool

source

pub unsafe fn resignFirstResponder(&self) -> bool

source

pub unsafe fn isFirstResponder(&self) -> bool

source

pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)

Available on crate feature UITouch only.
source

pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)

Available on crate feature UIEvent only.
source

pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> bool

source

pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>

source

pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder> )

Available on crate feature UIMenuBuilder only.
source

pub unsafe fn validateCommand(&self, command: &UICommand)

Available on crate features UICommand and UIMenuElement only.
source

pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>

source

pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration

source

pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>

Available on crate features UICommand and UIKeyCommand and UIMenuElement only.
source

pub unsafe fn inputView(&self) -> Option<Retained<UIView>>

Available on crate feature UIView only.
source

pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>

Available on crate feature UIView only.
source

pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>

Available on crate feature UITextInput only.
source

pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>

Available on crate feature UIInputViewController only.
source

pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>

Available on crate feature UIInputViewController only.
source

pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>

Available on crate feature UITextInput only.
source

pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn reloadInputViews(&self)

source

pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>

source

pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)

source

pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)

source

pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)

source

pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)

source

pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
source

pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>> )

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Available on crate feature UIIndirectScribbleInteraction only.

Dynamically find the class of this object.

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
Available on crate feature UIIndirectScribbleInteraction only.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
Available on crate feature UIIndirectScribbleInteraction only.

Use Ivar::load_mut instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Trait Implementations§

source§

impl AsMut<AnyObject> for UIViewController

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for UIViewController

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIResponder> for UIViewController

source§

fn as_mut(&mut self) -> &mut UIResponder

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIActivityViewController

Available on crate feature UIActivityViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIAlertController

Available on crate feature UIAlertController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UICloudSharingController

Available on crate feature UICloudSharingController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UICollectionViewController

Available on crate feature UICollectionViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIColorPickerViewController

Available on crate feature UIColorPickerViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIDocumentBrowserViewController

Available on crate feature UIDocumentBrowserViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIDocumentMenuViewController

Available on crate feature UIDocumentMenuViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIDocumentPickerExtensionViewController

Available on crate feature UIDocumentPickerExtensionViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIDocumentPickerViewController

Available on crate feature UIDocumentPickerViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIDocumentViewController

Available on crate feature UIDocumentViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIFontPickerViewController

Available on crate feature UIFontPickerViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIImagePickerController

Available on crate feature UIImagePickerController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIInputViewController

Available on crate feature UIInputViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UINavigationController

Available on crate feature UINavigationController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIPageViewController

Available on crate feature UIPageViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIReferenceLibraryViewController

Available on crate feature UIReferenceLibraryViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UISearchContainerViewController

Available on crate feature UISearchContainerViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UISearchController

Available on crate feature UISearchController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UISplitViewController

Available on crate feature UISplitViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UITabBarController

Available on crate feature UITabBarController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UITableViewController

Available on crate feature UITableViewController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIVideoEditorController

Available on crate feature UIVideoEditorController only.
source§

fn as_mut(&mut self) -> &mut UIViewController

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIViewController> for UIViewController

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for UIViewController

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSObject> for UIViewController

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIResponder> for UIViewController

source§

fn as_ref(&self) -> &UIResponder

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIActivityViewController

Available on crate feature UIActivityViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIAlertController

Available on crate feature UIAlertController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UICloudSharingController

Available on crate feature UICloudSharingController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UICollectionViewController

Available on crate feature UICollectionViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIColorPickerViewController

Available on crate feature UIColorPickerViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIDocumentBrowserViewController

Available on crate feature UIDocumentBrowserViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIDocumentMenuViewController

Available on crate feature UIDocumentMenuViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIDocumentPickerExtensionViewController

Available on crate feature UIDocumentPickerExtensionViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIDocumentPickerViewController

Available on crate feature UIDocumentPickerViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIDocumentViewController

Available on crate feature UIDocumentViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIFontPickerViewController

Available on crate feature UIFontPickerViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIImagePickerController

Available on crate feature UIImagePickerController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIInputViewController

Available on crate feature UIInputViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UINavigationController

Available on crate feature UINavigationController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIPageViewController

Available on crate feature UIPageViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIReferenceLibraryViewController

Available on crate feature UIReferenceLibraryViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UISearchContainerViewController

Available on crate feature UISearchContainerViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UISearchController

Available on crate feature UISearchController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UISplitViewController

Available on crate feature UISplitViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UITabBarController

Available on crate feature UITabBarController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UITableViewController

Available on crate feature UITableViewController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIVideoEditorController

Available on crate feature UIVideoEditorController only.
source§

fn as_ref(&self) -> &UIViewController

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIViewController> for UIViewController

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<AnyObject> for UIViewController

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for UIViewController

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIResponder> for UIViewController

source§

fn borrow(&self) -> &UIResponder

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIActivityViewController

Available on crate feature UIActivityViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIAlertController

Available on crate feature UIAlertController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UICloudSharingController

Available on crate feature UICloudSharingController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UICollectionViewController

Available on crate feature UICollectionViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIColorPickerViewController

Available on crate feature UIColorPickerViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIDocumentBrowserViewController

Available on crate feature UIDocumentBrowserViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIDocumentMenuViewController

Available on crate feature UIDocumentMenuViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIDocumentPickerExtensionViewController

Available on crate feature UIDocumentPickerExtensionViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIDocumentPickerViewController

Available on crate feature UIDocumentPickerViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIDocumentViewController

Available on crate feature UIDocumentViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIFontPickerViewController

Available on crate feature UIFontPickerViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIImagePickerController

Available on crate feature UIImagePickerController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIInputViewController

Available on crate feature UIInputViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UINavigationController

Available on crate feature UINavigationController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIPageViewController

Available on crate feature UIPageViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIReferenceLibraryViewController

Available on crate feature UIReferenceLibraryViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UISearchContainerViewController

Available on crate feature UISearchContainerViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UISearchController

Available on crate feature UISearchController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UISplitViewController

Available on crate feature UISplitViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UITabBarController

Available on crate feature UITabBarController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UITableViewController

Available on crate feature UITableViewController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIViewController> for UIVideoEditorController

Available on crate feature UIVideoEditorController only.
source§

fn borrow(&self) -> &UIViewController

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for UIViewController

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for UIViewController

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIResponder> for UIViewController

source§

fn borrow_mut(&mut self) -> &mut UIResponder

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIActivityViewController

Available on crate feature UIActivityViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIAlertController

Available on crate feature UIAlertController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UICloudSharingController

Available on crate feature UICloudSharingController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UICollectionViewController

Available on crate feature UICollectionViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIColorPickerViewController

Available on crate feature UIColorPickerViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIDocumentBrowserViewController

Available on crate feature UIDocumentBrowserViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIDocumentMenuViewController

Available on crate feature UIDocumentMenuViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIDocumentPickerExtensionViewController

Available on crate feature UIDocumentPickerExtensionViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIDocumentPickerViewController

Available on crate feature UIDocumentPickerViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIDocumentViewController

Available on crate feature UIDocumentViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIFontPickerViewController

Available on crate feature UIFontPickerViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIImagePickerController

Available on crate feature UIImagePickerController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIInputViewController

Available on crate feature UIInputViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UINavigationController

Available on crate feature UINavigationController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIPageViewController

Available on crate feature UIPageViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIReferenceLibraryViewController

Available on crate feature UIReferenceLibraryViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UISearchContainerViewController

Available on crate feature UISearchContainerViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UISearchController

Available on crate feature UISearchController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UISplitViewController

Available on crate feature UISplitViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UITabBarController

Available on crate feature UITabBarController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UITableViewController

Available on crate feature UITableViewController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIViewController> for UIVideoEditorController

Available on crate feature UIVideoEditorController only.
source§

fn borrow_mut(&mut self) -> &mut UIViewController

Mutably borrows from an owned value. Read more
source§

impl ClassType for UIViewController

§

type Super = UIResponder

The superclass of this class. Read more
§

type Mutability = MainThreadOnly

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "UIViewController"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

impl Debug for UIViewController

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for UIViewController

§

type Target = UIResponder

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for UIViewController

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Hash for UIViewController

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NSCoding for UIViewController

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

impl NSExtensionRequestHandling for UIViewController

source§

unsafe fn beginRequestWithExtensionContext(&self, context: &NSExtensionContext)
where Self: Sized + Message,

Available on crate feature NSExtensionContext only.
source§

impl NSObjectProtocol for UIViewController

source§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
source§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

Check if the object is an instance of the class type, or one of its subclasses. Read more
source§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
source§

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
source§

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
source§

impl PartialEq for UIViewController

source§

fn eq(&self, other: &UIViewController) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefEncode for UIViewController

source§

const ENCODING_REF: Encoding = <UIResponder as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl UIContentContainer for UIViewController

source§

unsafe fn preferredContentSize(&self) -> CGSize
where Self: Sized + Message,

source§

unsafe fn preferredContentSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer> )
where Self: Sized + Message,

source§

unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer> )
where Self: Sized + Message,

source§

unsafe fn sizeForChildContentContainer_withParentContainerSize( &self, container: &ProtocolObject<dyn UIContentContainer>, parent_size: CGSize ) -> CGSize
where Self: Sized + Message,

source§

unsafe fn viewWillTransitionToSize_withTransitionCoordinator( &self, size: CGSize, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator> )
where Self: Sized + Message,

Available on crate feature UIViewControllerTransitionCoordinator only.
source§

unsafe fn willTransitionToTraitCollection_withTransitionCoordinator( &self, new_collection: &UITraitCollection, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator> )
where Self: Sized + Message,

Available on crate features UITraitCollection and UIViewControllerTransitionCoordinator only.
source§

impl UIFocusEnvironment for UIViewController

Available on crate feature UIFocus only.
source§

unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source§

unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source§

unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
where Self: Sized + Message,

source§

unsafe fn setNeedsFocusUpdate(&self)
where Self: Sized + Message,

source§

unsafe fn updateFocusIfNeeded(&self)
where Self: Sized + Message,

source§

unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
where Self: Sized + Message,

source§

unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
where Self: Sized + Message,

Available on crate feature UIFocusAnimationCoordinator only.
source§

unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
where Self: Sized + Message,

source§

unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
where Self: Sized + Message,

👎Deprecated
Available on crate feature UIView only.
source§

unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source§

impl UIResponderStandardEditActions for UIViewController

source§

unsafe fn cut(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn copy(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn paste(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn select(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn selectAll(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn delete(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn find(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findNext(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler )
where Self: Sized + Message,

Available on crate feature block2 only.
source§

unsafe fn print(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn rename(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn duplicate(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn move(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn export(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

impl UIStateRestoring for UIViewController

Available on crate feature UIStateRestoration only.
source§

unsafe fn restorationParent( &self ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
where Self: Sized + Message,

source§

unsafe fn objectRestorationClass(&self) -> Option<&'static AnyClass>
where Self: Sized + Message,

source§

unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

source§

unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

source§

unsafe fn applicationFinishedRestoringState(&self)
where Self: Sized + Message,

source§

impl UITraitChangeObservable for UIViewController

Available on crate feature UITraitCollection only.
source§

unsafe fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration> )
where Self: Sized + Message,

source§

impl UITraitEnvironment for UIViewController

Available on crate feature UITraitCollection only.
source§

fn traitCollection(&self) -> Retained<UITraitCollection>
where Self: Sized + Message,

source§

unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
where Self: Sized + Message,

👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
source§

impl Eq for UIViewController

source§

impl Message for UIViewController

source§

impl StructuralPartialEq for UIViewController

source§

impl UIAppearanceContainer for UIViewController

Available on crate feature UIAppearance only.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

§

type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable

The immutable counterpart of the type, or Self if the type has no immutable counterpart. Read more
§

type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

source§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsMainThreadOnly for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsMainThreadOnly,

source§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,