pub struct UIViewController { /* private fields */ }UIResponder and UIViewController only.Expand description
Implementations§
Source§impl UIViewController
UINavigationControllerItem.
impl UIViewController
UINavigationControllerItem.
UINavigationController and UINavigationItem only.pub fn hidesBottomBarWhenPushed(&self) -> bool
UINavigationController only.Sourcepub fn setHidesBottomBarWhenPushed(&self, hides_bottom_bar_when_pushed: bool)
Available on crate feature UINavigationController only.
pub fn setHidesBottomBarWhenPushed(&self, hides_bottom_bar_when_pushed: bool)
UINavigationController only.Setter for hidesBottomBarWhenPushed.
UINavigationController only.Source§impl UIViewController
UINavigationControllerContextualToolbarItems.
impl UIViewController
UINavigationControllerContextualToolbarItems.
pub fn toolbarItems(&self) -> Option<Retained<NSArray<UIBarButtonItem>>>
UINavigationController and UIBarButtonItem and UIBarItem only.Sourcepub fn setToolbarItems(&self, toolbar_items: Option<&NSArray<UIBarButtonItem>>)
Available on crate features UINavigationController and UIBarButtonItem and UIBarItem only.
pub fn setToolbarItems(&self, toolbar_items: Option<&NSArray<UIBarButtonItem>>)
UINavigationController and UIBarButtonItem and UIBarItem only.Setter for toolbarItems.
pub fn setToolbarItems_animated( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>>, animated: bool, )
UINavigationController and UIBarButtonItem and UIBarItem only.Source§impl UIViewController
UIPopoverController.
impl UIViewController
UIPopoverController.
pub fn isModalInPopover(&self) -> bool
UIPopoverSupport only.Sourcepub fn setModalInPopover(&self, modal_in_popover: bool)
👎DeprecatedAvailable on crate feature UIPopoverSupport only.
pub fn setModalInPopover(&self, modal_in_popover: bool)
UIPopoverSupport only.Setter for isModalInPopover.
pub fn contentSizeForViewInPopover(&self) -> CGSize
UIPopoverSupport and objc2-core-foundation only.Sourcepub fn setContentSizeForViewInPopover(
&self,
content_size_for_view_in_popover: CGSize,
)
👎DeprecatedAvailable on crate features UIPopoverSupport and objc2-core-foundation only.
pub fn setContentSizeForViewInPopover( &self, content_size_for_view_in_popover: CGSize, )
UIPopoverSupport and objc2-core-foundation only.Setter for contentSizeForViewInPopover.
Source§impl UIViewController
UISplitViewController.
impl UIViewController
UISplitViewController.
pub fn splitViewController(&self) -> Option<Retained<UISplitViewController>>
UISplitViewController only.pub fn collapseSecondaryViewController_forSplitViewController( &self, secondary_view_controller: &UIViewController, split_view_controller: &UISplitViewController, )
UISplitViewController only.pub fn separateSecondaryViewControllerForSplitViewController( &self, split_view_controller: &UISplitViewController, ) -> Option<Retained<UIViewController>>
UISplitViewController only.Source§impl UIViewController
UITab.
impl UIViewController
UITab.
Source§impl UIViewController
UITabBarControllerItem.
impl UIViewController
UITabBarControllerItem.
pub fn tabBarItem(&self) -> Option<Retained<UITabBarItem>>
UITabBarController and UIBarItem and UITabBarItem only.Sourcepub unsafe fn setTabBarItem(&self, tab_bar_item: Option<&UITabBarItem>)
Available on crate features UITabBarController and UIBarItem and UITabBarItem only.
pub unsafe fn setTabBarItem(&self, tab_bar_item: Option<&UITabBarItem>)
UITabBarController and UIBarItem and UITabBarItem only.pub fn tabBarController(&self) -> Option<Retained<UITabBarController>>
UITabBarController only.pub fn tabBarObservedScrollView(&self) -> Option<Retained<UIScrollView>>
UITabBarController and UIScrollView and UIView only.Sourcepub 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.
pub fn setTabBarObservedScrollView( &self, tab_bar_observed_scroll_view: Option<&UIScrollView>, )
UITabBarController and UIScrollView and UIView only.Setter for tabBarObservedScrollView.
Source§impl UIViewController
impl UIViewController
pub fn initWithNibName_bundle( this: Allocated<Self>, nib_name_or_nil: Option<&NSString>, nib_bundle_or_nil: Option<&NSBundle>, ) -> Retained<Self>
Sourcepub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder, ) -> Option<Retained<Self>>
§Safety
coder possibly has further requirements.
pub fn view(&self) -> Option<Retained<UIView>>
UIView only.Sourcepub fn setView(&self, view: Option<&UIView>)
Available on crate feature UIView only.
pub fn setView(&self, view: Option<&UIView>)
UIView only.Setter for view.
pub fn loadView(&self)
pub fn loadViewIfNeeded(&self)
pub fn viewIfLoaded(&self) -> Option<Retained<UIView>>
UIView only.pub fn viewWillUnload(&self)
pub fn viewDidUnload(&self)
pub fn viewDidLoad(&self)
pub fn isViewLoaded(&self) -> bool
pub fn nibName(&self) -> Option<Retained<NSString>>
pub fn nibBundle(&self) -> Option<Retained<NSBundle>>
pub fn storyboard(&self) -> Option<Retained<UIStoryboard>>
UIStoryboard only.Sourcepub 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.
pub unsafe fn performSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject>, )
§Safety
sender should be of the correct type.
Sourcepub 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.
pub unsafe fn shouldPerformSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject>, ) -> bool
§Safety
sender should be of the correct type.
Sourcepub 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.
pub unsafe fn prepareForSegue_sender( &self, segue: &UIStoryboardSegue, sender: Option<&AnyObject>, )
UIStoryboardSegue only.§Safety
sender should be of the correct type.
Sourcepub 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.
pub unsafe fn canPerformUnwindSegueAction_fromViewController_sender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject>, ) -> bool
§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourcepub unsafe fn canPerformUnwindSegueAction_fromViewController_withSender(
&self,
action: Sel,
from_view_controller: &UIViewController,
sender: &AnyObject,
) -> bool
👎Deprecated
pub unsafe fn canPerformUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: &AnyObject, ) -> bool
§Safety
actionmust be a valid selector.sendershould be of the correct type.
pub fn allowedChildViewControllersForUnwindingFromSource( &self, source: &UIStoryboardUnwindSegueSource, ) -> Retained<NSArray<UIViewController>>
UIStoryboardSegue only.pub fn childViewControllerContainingSegueSource( &self, source: &UIStoryboardUnwindSegueSource, ) -> Option<Retained<UIViewController>>
UIStoryboardSegue only.Sourcepub unsafe fn viewControllerForUnwindSegueAction_fromViewController_withSender(
&self,
action: Sel,
from_view_controller: &UIViewController,
sender: Option<&AnyObject>,
) -> Option<Retained<UIViewController>>
👎Deprecated
pub unsafe fn viewControllerForUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject>, ) -> Option<Retained<UIViewController>>
§Safety
actionmust be a valid selector.sendershould be of the correct type.
pub fn unwindForSegue_towardsViewController( &self, unwind_segue: &UIStoryboardSegue, subsequent_vc: &UIViewController, )
UIStoryboardSegue only.pub fn segueForUnwindingToViewController_fromViewController_identifier( &self, to_view_controller: &UIViewController, from_view_controller: &UIViewController, identifier: Option<&NSString>, ) -> Option<Retained<UIStoryboardSegue>>
UIStoryboardSegue only.Sourcepub fn viewWillAppear(&self, animated: bool)
pub fn viewWillAppear(&self, animated: bool)
Called when the view is about to made visible, before it is added to the hierarchy. Because the view is not yet in the hierarchy at the time this method is called, it is too early in the appearance transition for many usages. Prefer -viewIsAppearing: instead of this method when possible. Only use this method when its exact timing before the appearance transition starts running is desired, such as to set up an alongside animation with a transition coordinator, or as a counterpart for paired code in a viewWillDisappear/viewDidDisappear callback that does not rely on the view or view controller’s trait collection or the view hierarchy.
Sourcepub fn viewIsAppearing(&self, animated: bool)
pub fn viewIsAppearing(&self, animated: bool)
Called when the view is becoming visible at the beginning of the appearance transition, after it has been added to the hierarchy and been laid out by its superview. This method is very similar to -viewWillAppear: and is always called shortly afterwards (so changes made in either callback will be visible to the user at the same time), but unlike -viewWillAppear:, at the time when -viewIsAppearing: is called all of the following are valid for the view controller and its own view:
- View controller and view’s trait collection
- View’s superview chain and window
- View’s geometry (e.g. frame/bounds, safe area insets, layout margins) Choose this method instead of -viewWillAppear: by default, as it is a direct replacement that provides equivalent or superior behavior in nearly all cases.
Sourcepub fn viewDidAppear(&self, animated: bool)
pub fn viewDidAppear(&self, animated: bool)
Called after the view has fully transitioned to visible, when any transition animations have completed.
Sourcepub fn viewWillDisappear(&self, animated: bool)
pub fn viewWillDisappear(&self, animated: bool)
Called when the view is about to be dismissed, covered, or otherwise hidden.
Sourcepub fn viewDidDisappear(&self, animated: bool)
pub fn viewDidDisappear(&self, animated: bool)
Called after the view has fully been dismissed, covered, or otherwise hidden, when any transition animations have completed.
Sourcepub fn setNeedsUpdateProperties(&self)
pub fn setNeedsUpdateProperties(&self)
Call to manually request a properties update for the view controller. Multiple requests may be coalesced into a single update alongside the next layout pass.
Sourcepub fn updateProperties(&self)
pub fn updateProperties(&self)
Override point for subclasses to update properties of this view controller or its view.
Never call this method directly; use setNeedsUpdateProperties to schedule an update.
Sourcepub fn updatePropertiesIfNeeded(&self)
pub fn updatePropertiesIfNeeded(&self)
Forces an immediate properties update for this view controller and its view, including any view controllers and views in this subtree.
pub fn viewWillLayoutSubviews(&self)
pub fn viewDidLayoutSubviews(&self)
pub fn title(&self) -> Option<Retained<NSString>>
pub fn didReceiveMemoryWarning(&self)
pub fn parentViewController(&self) -> Option<Retained<UIViewController>>
pub fn modalViewController(&self) -> Option<Retained<UIViewController>>
pub fn presentedViewController(&self) -> Option<Retained<UIViewController>>
pub fn presentingViewController(&self) -> Option<Retained<UIViewController>>
pub fn definesPresentationContext(&self) -> bool
Sourcepub fn setDefinesPresentationContext(&self, defines_presentation_context: bool)
pub fn setDefinesPresentationContext(&self, defines_presentation_context: bool)
Setter for definesPresentationContext.
pub fn providesPresentationContextTransitionStyle(&self) -> bool
Sourcepub fn setProvidesPresentationContextTransitionStyle(
&self,
provides_presentation_context_transition_style: bool,
)
pub fn setProvidesPresentationContextTransitionStyle( &self, provides_presentation_context_transition_style: bool, )
Setter for providesPresentationContextTransitionStyle.
pub fn restoresFocusAfterTransition(&self) -> bool
Sourcepub fn setRestoresFocusAfterTransition(
&self,
restores_focus_after_transition: bool,
)
pub fn setRestoresFocusAfterTransition( &self, restores_focus_after_transition: bool, )
Setter for restoresFocusAfterTransition.
Sourcepub fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
The identifier of the focus group that this view controller belongs to. If this is nil, the view controller inherits the focus group of its parent focus environment.
Sourcepub fn setFocusGroupIdentifier(&self, focus_group_identifier: Option<&NSString>)
pub fn setFocusGroupIdentifier(&self, focus_group_identifier: Option<&NSString>)
Setter for focusGroupIdentifier.
This is copied when set.
Sourcepub fn interactionActivityTrackingBaseName(&self) -> Option<Retained<NSString>>
pub fn interactionActivityTrackingBaseName(&self) -> Option<Retained<NSString>>
The base name for tracking user interactions as activities hosted by this view controller.
Sourcepub fn setInteractionActivityTrackingBaseName(
&self,
interaction_activity_tracking_base_name: Option<&NSString>,
)
pub fn setInteractionActivityTrackingBaseName( &self, interaction_activity_tracking_base_name: Option<&NSString>, )
Setter for interactionActivityTrackingBaseName.
This is copied when set.
pub fn isBeingPresented(&self) -> bool
pub fn isBeingDismissed(&self) -> bool
pub fn isMovingToParentViewController(&self) -> bool
pub fn isMovingFromParentViewController(&self) -> bool
pub fn presentViewController_animated_completion( &self, view_controller_to_present: &UIViewController, flag: bool, completion: Option<&DynBlock<dyn Fn()>>, )
block2 only.pub fn dismissViewControllerAnimated_completion( &self, flag: bool, completion: Option<&DynBlock<dyn Fn()>>, )
block2 only.pub fn presentModalViewController_animated( &self, modal_view_controller: &UIViewController, animated: bool, )
pub fn dismissModalViewControllerAnimated(&self, animated: bool)
pub fn modalTransitionStyle(&self) -> UIModalTransitionStyle
Sourcepub fn setModalTransitionStyle(
&self,
modal_transition_style: UIModalTransitionStyle,
)
pub fn setModalTransitionStyle( &self, modal_transition_style: UIModalTransitionStyle, )
Setter for modalTransitionStyle.
Sourcepub fn preferredTransition(
&self,
) -> Option<Retained<UIViewControllerTransition>>
Available on crate feature UIViewControllerTransition only.
pub fn preferredTransition( &self, ) -> Option<Retained<UIViewControllerTransition>>
UIViewControllerTransition only.Preferred system provided transition to use when displaying this
view controller. Note that this only indicates a preference.
The provided transition may be ignored if not supported by the
current context. For example, UINavigationController supports
the .zoom transition, but not the .coverVertical transition.
Sourcepub fn setPreferredTransition(
&self,
preferred_transition: Option<&UIViewControllerTransition>,
)
Available on crate feature UIViewControllerTransition only.
pub fn setPreferredTransition( &self, preferred_transition: Option<&UIViewControllerTransition>, )
UIViewControllerTransition only.Setter for preferredTransition.
pub fn modalPresentationStyle(&self) -> UIModalPresentationStyle
Sourcepub fn setModalPresentationStyle(
&self,
modal_presentation_style: UIModalPresentationStyle,
)
pub fn setModalPresentationStyle( &self, modal_presentation_style: UIModalPresentationStyle, )
Setter for modalPresentationStyle.
pub fn modalPresentationCapturesStatusBarAppearance(&self) -> bool
Sourcepub fn setModalPresentationCapturesStatusBarAppearance(
&self,
modal_presentation_captures_status_bar_appearance: bool,
)
pub fn setModalPresentationCapturesStatusBarAppearance( &self, modal_presentation_captures_status_bar_appearance: bool, )
Setter for modalPresentationCapturesStatusBarAppearance.
pub fn disablesAutomaticKeyboardDismissal(&self) -> bool
pub fn wantsFullScreenLayout(&self) -> bool
Sourcepub fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)
👎Deprecated
pub fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)
Setter for wantsFullScreenLayout.
pub fn edgesForExtendedLayout(&self) -> UIRectEdge
UIGeometry only.Sourcepub fn setEdgesForExtendedLayout(&self, edges_for_extended_layout: UIRectEdge)
Available on crate feature UIGeometry only.
pub fn setEdgesForExtendedLayout(&self, edges_for_extended_layout: UIRectEdge)
UIGeometry only.Setter for edgesForExtendedLayout.
pub fn extendedLayoutIncludesOpaqueBars(&self) -> bool
Sourcepub fn setExtendedLayoutIncludesOpaqueBars(
&self,
extended_layout_includes_opaque_bars: bool,
)
pub fn setExtendedLayoutIncludesOpaqueBars( &self, extended_layout_includes_opaque_bars: bool, )
Setter for extendedLayoutIncludesOpaqueBars.
pub fn automaticallyAdjustsScrollViewInsets(&self) -> bool
Sourcepub fn setAutomaticallyAdjustsScrollViewInsets(
&self,
automatically_adjusts_scroll_view_insets: bool,
)
👎Deprecated: Use UIScrollView’s contentInsetAdjustmentBehavior instead
pub fn setAutomaticallyAdjustsScrollViewInsets( &self, automatically_adjusts_scroll_view_insets: bool, )
Setter for automaticallyAdjustsScrollViewInsets.
Sourcepub fn setContentScrollView_forEdge(
&self,
scroll_view: Option<&UIScrollView>,
edge: NSDirectionalRectEdge,
)
Available on crate features UIGeometry and UIScrollView and UIView only.
pub fn setContentScrollView_forEdge( &self, scroll_view: Option<&UIScrollView>, edge: NSDirectionalRectEdge, )
UIGeometry and UIScrollView and UIView only.Aggregate values (e.g., NSDirectionalRectEdgeAll) are accepted in the edge parameter; NSDirectionalRectEdgeLeading and Trailing are ignored on iOS 15.0
Sourcepub fn contentScrollViewForEdge(
&self,
edge: NSDirectionalRectEdge,
) -> Option<Retained<UIScrollView>>
Available on crate features UIGeometry and UIScrollView and UIView only.
pub fn contentScrollViewForEdge( &self, edge: NSDirectionalRectEdge, ) -> Option<Retained<UIScrollView>>
UIGeometry and UIScrollView and UIView only.Pass only a single edge (e.g., NSDirectionalRectEdgeTop) in the edge parameter. Raises an exception when passed an aggregate edge (e.g., NSDirectionalRectEdgeAll)
pub fn preferredContentSize(&self) -> CGSize
objc2-core-foundation only.Sourcepub fn setPreferredContentSize(&self, preferred_content_size: CGSize)
Available on crate feature objc2-core-foundation only.
pub fn setPreferredContentSize(&self, preferred_content_size: CGSize)
objc2-core-foundation only.Setter for preferredContentSize.
pub fn preferredStatusBarStyle(&self) -> UIStatusBarStyle
UIApplication only.pub fn prefersStatusBarHidden(&self) -> bool
pub fn preferredStatusBarUpdateAnimation(&self) -> UIStatusBarAnimation
UIApplication only.pub fn setNeedsStatusBarAppearanceUpdate(&self)
Sourcepub unsafe fn targetViewControllerForAction_sender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> Option<Retained<UIViewController>>
pub unsafe fn targetViewControllerForAction_sender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<UIViewController>>
§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourcepub unsafe fn showViewController_sender(
&self,
vc: &UIViewController,
sender: Option<&AnyObject>,
)
pub unsafe fn showViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject>, )
§Safety
sender should be of the correct type.
Sourcepub unsafe fn showDetailViewController_sender(
&self,
vc: &UIViewController,
sender: Option<&AnyObject>,
)
pub unsafe fn showDetailViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject>, )
§Safety
sender should be of the correct type.
pub fn preferredUserInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface only.pub fn setNeedsUserInterfaceAppearanceUpdate(&self)
pub fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface only.Sourcepub fn setOverrideUserInterfaceStyle(
&self,
override_user_interface_style: UIUserInterfaceStyle,
)
Available on crate feature UIInterface only.
pub fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle, )
UIInterface only.Setter for overrideUserInterfaceStyle.
Source§impl UIViewController
Methods declared on superclass NSObject.
impl UIViewController
Methods declared on superclass NSObject.
Source§impl UIViewController
UIViewControllerRotation.
impl UIViewController
UIViewControllerRotation.
pub fn attemptRotationToDeviceOrientation(mtm: MainThreadMarker)
setNeedsUpdateOfSupportedInterfaceOrientations.pub fn shouldAutorotateToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation, ) -> bool
UIOrientation only.pub fn shouldAutorotate(&self) -> bool
pub fn supportedInterfaceOrientations(&self) -> UIInterfaceOrientationMask
UIOrientation only.pub fn preferredInterfaceOrientationForPresentation( &self, ) -> UIInterfaceOrientation
UIOrientation only.Sourcepub fn setNeedsUpdateOfSupportedInterfaceOrientations(&self)
pub fn setNeedsUpdateOfSupportedInterfaceOrientations(&self)
Notifies the view controller that a change occurred that affects supported interface orientations or the preferred interface orientation for presentation.
By default, this will animate any changes to orientation. To perform a non-animated update, call within [UIView performWithoutAnimation:].
pub fn rotatingHeaderView(&self) -> Option<Retained<UIView>>
UIView only.UIView only.pub fn interfaceOrientation(&self) -> UIInterfaceOrientation
UIOrientation only.pub fn willRotateToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval, )
UIOrientation only.pub fn didRotateFromInterfaceOrientation( &self, from_interface_orientation: UIInterfaceOrientation, )
UIOrientation only.pub fn willAnimateRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval, )
UIOrientation only.pub fn willAnimateFirstHalfOfRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval, )
UIOrientation only.pub fn didAnimateFirstHalfOfRotationToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation, )
UIOrientation only.pub fn willAnimateSecondHalfOfRotationFromInterfaceOrientation_duration( &self, from_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval, )
UIOrientation only.Source§impl UIViewController
UIViewControllerEditing.
impl UIViewController
UIViewControllerEditing.
pub fn isEditing(&self) -> bool
Sourcepub fn setEditing(&self, editing: bool)
pub fn setEditing(&self, editing: bool)
Setter for isEditing.
pub fn setEditing_animated(&self, editing: bool, animated: bool)
pub fn editButtonItem(&self) -> Retained<UIBarButtonItem>
UIBarButtonItem and UIBarItem only.Source§impl UIViewController
UISearchDisplayControllerSupport.
impl UIViewController
UISearchDisplayControllerSupport.
pub fn searchDisplayController( &self, ) -> Option<Retained<UISearchDisplayController>>
UISearchDisplayController only.Source§impl UIViewController
UIContainerViewControllerProtectedMethods.
impl UIViewController
UIContainerViewControllerProtectedMethods.
pub fn childViewControllers(&self) -> Retained<NSArray<UIViewController>>
pub fn addChildViewController(&self, child_controller: &UIViewController)
pub fn removeFromParentViewController(&self)
pub fn transitionFromViewController_toViewController_duration_options_animations_completion( &self, from_view_controller: &UIViewController, to_view_controller: &UIViewController, duration: NSTimeInterval, options: UIViewAnimationOptions, animations: Option<&DynBlock<dyn Fn()>>, completion: Option<&DynBlock<dyn Fn(Bool)>>, )
UIView and block2 only.pub fn beginAppearanceTransition_animated( &self, is_appearing: bool, animated: bool, )
pub fn endAppearanceTransition(&self)
pub fn childViewControllerForStatusBarStyle( &self, ) -> Option<Retained<UIViewController>>
pub fn childViewControllerForStatusBarHidden( &self, ) -> Option<Retained<UIViewController>>
pub fn setOverrideTraitCollection_forChildViewController( &self, collection: Option<&UITraitCollection>, child_view_controller: &UIViewController, )
UITraitCollection only.pub fn overrideTraitCollectionForChildViewController( &self, child_view_controller: &UIViewController, ) -> Option<Retained<UITraitCollection>>
UITraitCollection only.pub fn childViewControllerForUserInterfaceStyle( &self, ) -> Option<Retained<UIViewController>>
Source§impl UIViewController
UIContainerViewControllerCallbacks.
impl UIViewController
UIContainerViewControllerCallbacks.
pub fn automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers( &self, ) -> bool
pub fn shouldAutomaticallyForwardRotationMethods(&self) -> bool
pub fn shouldAutomaticallyForwardAppearanceMethods(&self) -> bool
pub fn willMoveToParentViewController(&self, parent: Option<&UIViewController>)
pub fn didMoveToParentViewController(&self, parent: Option<&UIViewController>)
Source§impl UIViewController
UIStateRestoration.
impl UIViewController
UIStateRestoration.
pub fn restorationIdentifier(&self) -> Option<Retained<NSString>>
Sourcepub fn setRestorationIdentifier(
&self,
restoration_identifier: Option<&NSString>,
)
pub fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString>, )
Setter for restorationIdentifier.
This is copied when set.
Sourcepub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>
Available on crate feature UIStateRestoration only.
pub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>
UIStateRestoration only.§Safety
This is not retained internally, you must ensure the object is still alive.
Sourcepub unsafe fn setRestorationClass(&self, restoration_class: Option<&AnyClass>)
Available on crate feature UIStateRestoration only.
pub unsafe fn setRestorationClass(&self, restoration_class: Option<&AnyClass>)
UIStateRestoration only.Setter for restorationClass.
§Safety
restoration_classmust implement UIViewControllerRestoration.- This is unretained, you must ensure the object is kept alive while in use.
Sourcepub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
Sourcepub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
pub fn applicationFinishedRestoringState(&self)
Source§impl UIViewController
UIConstraintBasedLayoutCoreMethods.
impl UIViewController
UIConstraintBasedLayoutCoreMethods.
pub fn updateViewConstraints(&self)
Source§impl UIViewController
UIViewControllerTransitioning.
impl UIViewController
UIViewControllerTransitioning.
pub fn transitioningDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitioningDelegate>>>
UIViewControllerTransitioning only.Sourcepub fn setTransitioningDelegate(
&self,
transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>>,
)
Available on crate feature UIViewControllerTransitioning only.
pub fn setTransitioningDelegate( &self, transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>>, )
UIViewControllerTransitioning only.Setter for transitioningDelegate.
This is a weak property.
Source§impl UIViewController
UILayoutSupport.
impl UIViewController
UILayoutSupport.
pub fn topLayoutGuide(&self) -> Retained<ProtocolObject<dyn UILayoutSupport>>
NSLayoutConstraint only.pub fn bottomLayoutGuide(&self) -> Retained<ProtocolObject<dyn UILayoutSupport>>
NSLayoutConstraint only.pub fn additionalSafeAreaInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setAdditionalSafeAreaInsets(
&self,
additional_safe_area_insets: UIEdgeInsets,
)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setAdditionalSafeAreaInsets( &self, additional_safe_area_insets: UIEdgeInsets, )
UIGeometry and objc2-core-foundation only.Setter for additionalSafeAreaInsets.
pub fn systemMinimumLayoutMargins(&self) -> NSDirectionalEdgeInsets
UIGeometry and objc2-core-foundation only.pub fn viewRespectsSystemMinimumLayoutMargins(&self) -> bool
Sourcepub fn setViewRespectsSystemMinimumLayoutMargins(
&self,
view_respects_system_minimum_layout_margins: bool,
)
pub fn setViewRespectsSystemMinimumLayoutMargins( &self, view_respects_system_minimum_layout_margins: bool, )
Setter for viewRespectsSystemMinimumLayoutMargins.
pub fn viewLayoutMarginsDidChange(&self)
pub fn viewSafeAreaInsetsDidChange(&self)
Source§impl UIViewController
UIKeyCommand.
impl UIViewController
UIKeyCommand.
pub fn addKeyCommand(&self, key_command: &UIKeyCommand)
UICommand and UIKeyCommand and UIMenuElement only.pub fn removeKeyCommand(&self, key_command: &UIKeyCommand)
UICommand and UIKeyCommand and UIMenuElement only.Source§impl UIViewController
UIPerformsActions.
impl UIViewController
UIPerformsActions.
Sourcepub fn performsActionsWhilePresentingModally(&self) -> bool
pub fn performsActionsWhilePresentingModally(&self) -> bool
Determines whether the receiver continues to respond to actions while it is presenting a view controller modally.
Defaults to YES. You can change the default return value by providing a value for UIViewControllerPerformsActionsWhilePresentingModally in your Info.plist file.
Source§impl UIViewController
NSExtensionAdditions.
impl UIViewController
NSExtensionAdditions.
pub fn extensionContext(&self) -> Option<Retained<NSExtensionContext>>
Source§impl UIViewController
UIPresentationController.
impl UIViewController
UIPresentationController.
pub fn presentationController( &self, ) -> Option<Retained<UIPresentationController>>
UIPresentationController only.pub fn sheetPresentationController( &self, ) -> Option<Retained<UISheetPresentationController>>
UIPresentationController and UISheetPresentationController only.pub fn popoverPresentationController( &self, ) -> Option<Retained<UIPopoverPresentationController>>
UIPopoverPresentationController and UIPresentationController only.pub fn activePresentationController( &self, ) -> Option<Retained<UIPresentationController>>
UIPresentationController only.pub fn isModalInPresentation(&self) -> bool
Sourcepub fn setModalInPresentation(&self, modal_in_presentation: bool)
pub fn setModalInPresentation(&self, modal_in_presentation: bool)
Setter for isModalInPresentation.
Source§impl UIViewController
UIViewControllerPreviewingRegistration.
impl UIViewController
UIViewControllerPreviewingRegistration.
pub fn registerForPreviewingWithDelegate_sourceView( &self, delegate: &ProtocolObject<dyn UIViewControllerPreviewingDelegate>, source_view: &UIView, ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewing>>
UIView only.pub fn unregisterForPreviewingWithContext( &self, previewing: &ProtocolObject<dyn UIViewControllerPreviewing>, )
Source§impl UIViewController
UIScreenEdgesDeferringSystemGestures.
impl UIViewController
UIScreenEdgesDeferringSystemGestures.
pub fn childViewControllerForScreenEdgesDeferringSystemGestures( &self, ) -> Option<Retained<UIViewController>>
pub fn preferredScreenEdgesDeferringSystemGestures(&self) -> UIRectEdge
UIGeometry only.pub fn setNeedsUpdateOfScreenEdgesDeferringSystemGestures(&self)
Source§impl UIViewController
UIHomeIndicatorAutoHidden.
impl UIViewController
UIHomeIndicatorAutoHidden.
pub fn childViewControllerForHomeIndicatorAutoHidden( &self, ) -> Option<Retained<UIViewController>>
pub fn prefersHomeIndicatorAutoHidden(&self) -> bool
pub fn setNeedsUpdateOfHomeIndicatorAutoHidden(&self)
Source§impl UIViewController
UIPointerLockSupport.
impl UIViewController
UIPointerLockSupport.
pub fn childViewControllerForPointerLock( &self, ) -> Option<Retained<UIViewController>>
pub fn prefersPointerLocked(&self) -> bool
pub fn setNeedsUpdateOfPrefersPointerLocked(&self)
Source§impl UIViewController
impl UIViewController
Available on crate feature UIContentConfiguration only.
UIContentConfiguration only.Setting a content unavailable configuration replaces the existing content unavailable view of the view controller with a new content unavailable view instance from the configuration, or directly applies the configuration to the existing content unavailable view if the configuration is compatible with the existing content unavailable view type. The default value is nil.
Available on crate feature UIContentConfiguration only.
UIContentConfiguration only.Setter for contentUnavailableConfiguration.
This is copied when set.
Available on crate feature UIContentUnavailableConfigurationState only.
UIContentUnavailableConfigurationState only.Returns the current content unavailable configuration state for the view. To add your own custom state(s), override the getter and call super to obtain an instance with the system properties set, then set your own custom states as desired.
Requests the view update its content unavailable configuration for its current state. This method is called automatically
when the view’s contentUnavailableConfigurationState may have changed, as well as in other circumstances where an
update may be required. Multiple requests may be coalesced into a single update at the appropriate time.
Available on crate feature UIContentUnavailableConfigurationState only.
UIContentUnavailableConfigurationState only.Subclasses should override this method and update the content unavailable’s configuration using the state provided.
This method should not be called directly, use setNeedsUpdateContentUnavailableConfiguration to request an update.
Source§impl UIViewController
impl UIViewController
Sourcepub fn childViewControllerForInterfaceOrientationLock(
&self,
) -> Option<Retained<UIViewController>>
pub fn childViewControllerForInterfaceOrientationLock( &self, ) -> Option<Retained<UIViewController>>
Override to return a child view controller or nil. If non-nil, that view controller’s preference for interface orientation lock will be used. If nil, self is used.
Whenever the return value changes, call setNeedsUpdateOfPrefersInterfaceOrientationLocked().
Sourcepub fn prefersInterfaceOrientationLocked(&self) -> bool
pub fn prefersInterfaceOrientationLocked(&self) -> bool
Whether this view controller prefers the scene’s interface orientation to be locked when shown. The default is NO. Note that this preference may or may not be honored.
See UIWindowScene.Geometry for the current state of interface orientation lock.
Sourcepub fn setNeedsUpdateOfPrefersInterfaceOrientationLocked(&self)
pub fn setNeedsUpdateOfPrefersInterfaceOrientationLocked(&self)
Call whenever the view controller’s preference for interface orientation lock has changed
Source§impl UIViewController
impl UIViewController
pub fn previewActionItems( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIPreviewActionItem>>>
Source§impl UIViewController
impl UIViewController
pub fn traitOverrides(&self) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection only.Sourcepub fn updateTraitsIfNeeded(&self)
pub fn updateTraitsIfNeeded(&self)
Forces an immediate trait update for this view controller and its view, including any view controllers and views in this subtree. Any trait change callbacks are sent synchronously.
Source§impl UIViewController
impl UIViewController
pub fn preferredContainerBackgroundStyle(&self) -> UIContainerBackgroundStyle
pub fn childViewControllerForPreferredContainerBackgroundStyle( &self, ) -> Option<Retained<UIViewController>>
pub fn setNeedsUpdateOfPreferredContainerBackgroundStyle(&self)
Source§impl UIViewController
UIViewControllerTransitionCoordinator.
impl UIViewController
UIViewControllerTransitionCoordinator.
pub fn transitionCoordinator( &self, ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitionCoordinator>>>
UIViewControllerTransitionCoordinator only.Methods from Deref<Target = UIResponder>§
pub fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub fn canBecomeFirstResponder(&self) -> bool
pub fn becomeFirstResponder(&self) -> bool
pub fn canResignFirstResponder(&self) -> bool
pub fn resignFirstResponder(&self) -> bool
pub fn isFirstResponder(&self) -> bool
pub fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch only.pub fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent only.Sourcepub unsafe fn canPerformAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> bool
pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> bool
§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourcepub unsafe fn targetForAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> Option<Retained<AnyObject>>
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
§Safety
actionmust be a valid selector.sendershould be of the correct type.
pub fn buildMenuWithBuilder(&self, builder: &ProtocolObject<dyn UIMenuBuilder>)
UIMenuBuilder only.pub fn validateCommand(&self, command: &UICommand)
UICommand and UIMenuElement only.Sourcepub fn providerForDeferredMenuElement(
&self,
deferred_element: &UIDeferredMenuElement,
) -> Option<Retained<UIDeferredMenuElementProvider>>
Available on crate features UIDeferredMenuElement and UIMenuElement only.
pub fn providerForDeferredMenuElement( &self, deferred_element: &UIDeferredMenuElement, ) -> Option<Retained<UIDeferredMenuElementProvider>>
UIDeferredMenuElement and UIMenuElement only.Asks the responder for an element provider to fulfill the given focus-based deferred element.
Check the identifier of the deferred element to identify which deferred element this is.
By default, this returns nil. Return a non-nil provider to make this responder responsible for providing
elements for this fulfillment of the deferred element.
pub fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub fn editingInteractionConfiguration( &self, ) -> UIEditingInteractionConfiguration
pub fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand and UIKeyCommand and UIMenuElement only.pub fn inputView(&self) -> Option<Retained<UIView>>
UIView only.pub fn inputAccessoryView(&self) -> Option<Retained<UIView>>
UIView only.Sourcepub fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput only.
pub fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
UITextInput only.This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain.
pub fn inputViewController(&self) -> Option<Retained<UIInputViewController>>
UIInputViewController only.pub fn inputAccessoryViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController only.pub fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput only.pub fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub fn reloadInputViews(&self)
pub fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Sourcepub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity.
pub fn updateUserActivityState(&self, activity: &NSUserActivity)
pub fn restoreUserActivityState(&self, activity: &NSUserActivity)
Sourcepub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
pub fn activityItemsConfiguration( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Sourcepub fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
pub fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>, )
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Setter for activityItemsConfiguration.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature UIIndirectScribbleInteraction only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction only.Dynamically find the class of this object.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init/new methods).
§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());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.Available on crate feature UIIndirectScribbleInteraction only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.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.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Available on crate feature UIIndirectScribbleInteraction only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
UIIndirectScribbleInteraction only.Attempt to downcast the object to a class of type T.
This is the reference-variant. Use Retained::downcast if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString to a NSMutableString,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass: for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject.
§Panics
This works internally by calling isKindOfClass:. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject and
NSProxy implement this method.
§Examples
Cast an NSString back and forth from NSObject.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();Try (and fail) to cast an NSObject to an NSString.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}Trait Implementations§
Source§impl AsRef<AnyObject> for UIViewController
impl AsRef<AnyObject> for UIViewController
Source§impl AsRef<NSObject> for UIViewController
impl AsRef<NSObject> for UIViewController
Source§impl AsRef<UIResponder> for UIViewController
impl AsRef<UIResponder> for UIViewController
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIViewController> for UIActivityViewController
Available on crate feature UIActivityViewController only.
impl AsRef<UIViewController> for UIActivityViewController
UIActivityViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIAlertController
Available on crate feature UIAlertController only.
impl AsRef<UIViewController> for UIAlertController
UIAlertController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UICloudSharingController
Available on crate feature UICloudSharingController only.
impl AsRef<UIViewController> for UICloudSharingController
UICloudSharingController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UICollectionViewController
Available on crate feature UICollectionViewController only.
impl AsRef<UIViewController> for UICollectionViewController
UICollectionViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIColorPickerViewController
Available on crate feature UIColorPickerViewController only.
impl AsRef<UIViewController> for UIColorPickerViewController
UIColorPickerViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIDocumentBrowserViewController
Available on crate feature UIDocumentBrowserViewController only.
impl AsRef<UIViewController> for UIDocumentBrowserViewController
UIDocumentBrowserViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIDocumentMenuViewController
Available on crate feature UIDocumentMenuViewController only.
impl AsRef<UIViewController> for UIDocumentMenuViewController
UIDocumentMenuViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIDocumentPickerExtensionViewController
Available on crate feature UIDocumentPickerExtensionViewController only.
impl AsRef<UIViewController> for UIDocumentPickerExtensionViewController
UIDocumentPickerExtensionViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIDocumentPickerViewController
Available on crate feature UIDocumentPickerViewController only.
impl AsRef<UIViewController> for UIDocumentPickerViewController
UIDocumentPickerViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIDocumentViewController
Available on crate feature UIDocumentViewController only.
impl AsRef<UIViewController> for UIDocumentViewController
UIDocumentViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIFontPickerViewController
Available on crate feature UIFontPickerViewController only.
impl AsRef<UIViewController> for UIFontPickerViewController
UIFontPickerViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIImagePickerController
Available on crate features UINavigationController and UIImagePickerController only.
impl AsRef<UIViewController> for UIImagePickerController
UINavigationController and UIImagePickerController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIInputViewController
Available on crate feature UIInputViewController only.
impl AsRef<UIViewController> for UIInputViewController
UIInputViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIPageViewController
Available on crate feature UIPageViewController only.
impl AsRef<UIViewController> for UIPageViewController
UIPageViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIReferenceLibraryViewController
Available on crate feature UIReferenceLibraryViewController only.
impl AsRef<UIViewController> for UIReferenceLibraryViewController
UIReferenceLibraryViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UISearchContainerViewController
Available on crate feature UISearchContainerViewController only.
impl AsRef<UIViewController> for UISearchContainerViewController
UISearchContainerViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UISearchController
Available on crate feature UISearchController only.
impl AsRef<UIViewController> for UISearchController
UISearchController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UISplitViewController
Available on crate feature UISplitViewController only.
impl AsRef<UIViewController> for UISplitViewController
UISplitViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UITabBarController
Available on crate feature UITabBarController only.
impl AsRef<UIViewController> for UITabBarController
UITabBarController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UITableViewController
Available on crate feature UITableViewController only.
impl AsRef<UIViewController> for UITableViewController
UITableViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UITextFormattingViewController
Available on crate feature UITextFormattingViewController only.
impl AsRef<UIViewController> for UITextFormattingViewController
UITextFormattingViewController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIVideoEditorController
Available on crate features UINavigationController and UIVideoEditorController only.
impl AsRef<UIViewController> for UIVideoEditorController
UINavigationController and UIVideoEditorController only.Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl AsRef<UIViewController> for UIViewController
impl AsRef<UIViewController> for UIViewController
Source§impl Borrow<AnyObject> for UIViewController
impl Borrow<AnyObject> for UIViewController
Source§impl Borrow<NSObject> for UIViewController
impl Borrow<NSObject> for UIViewController
Source§impl Borrow<UIResponder> for UIViewController
impl Borrow<UIResponder> for UIViewController
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIViewController> for UIActivityViewController
Available on crate feature UIActivityViewController only.
impl Borrow<UIViewController> for UIActivityViewController
UIActivityViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIAlertController
Available on crate feature UIAlertController only.
impl Borrow<UIViewController> for UIAlertController
UIAlertController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UICloudSharingController
Available on crate feature UICloudSharingController only.
impl Borrow<UIViewController> for UICloudSharingController
UICloudSharingController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UICollectionViewController
Available on crate feature UICollectionViewController only.
impl Borrow<UIViewController> for UICollectionViewController
UICollectionViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIColorPickerViewController
Available on crate feature UIColorPickerViewController only.
impl Borrow<UIViewController> for UIColorPickerViewController
UIColorPickerViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIDocumentBrowserViewController
Available on crate feature UIDocumentBrowserViewController only.
impl Borrow<UIViewController> for UIDocumentBrowserViewController
UIDocumentBrowserViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIDocumentMenuViewController
Available on crate feature UIDocumentMenuViewController only.
impl Borrow<UIViewController> for UIDocumentMenuViewController
UIDocumentMenuViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIDocumentPickerExtensionViewController
Available on crate feature UIDocumentPickerExtensionViewController only.
impl Borrow<UIViewController> for UIDocumentPickerExtensionViewController
UIDocumentPickerExtensionViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIDocumentPickerViewController
Available on crate feature UIDocumentPickerViewController only.
impl Borrow<UIViewController> for UIDocumentPickerViewController
UIDocumentPickerViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIDocumentViewController
Available on crate feature UIDocumentViewController only.
impl Borrow<UIViewController> for UIDocumentViewController
UIDocumentViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIFontPickerViewController
Available on crate feature UIFontPickerViewController only.
impl Borrow<UIViewController> for UIFontPickerViewController
UIFontPickerViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIImagePickerController
Available on crate features UINavigationController and UIImagePickerController only.
impl Borrow<UIViewController> for UIImagePickerController
UINavigationController and UIImagePickerController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIInputViewController
Available on crate feature UIInputViewController only.
impl Borrow<UIViewController> for UIInputViewController
UIInputViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIPageViewController
Available on crate feature UIPageViewController only.
impl Borrow<UIViewController> for UIPageViewController
UIPageViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIReferenceLibraryViewController
Available on crate feature UIReferenceLibraryViewController only.
impl Borrow<UIViewController> for UIReferenceLibraryViewController
UIReferenceLibraryViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UISearchContainerViewController
Available on crate feature UISearchContainerViewController only.
impl Borrow<UIViewController> for UISearchContainerViewController
UISearchContainerViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UISearchController
Available on crate feature UISearchController only.
impl Borrow<UIViewController> for UISearchController
UISearchController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UISplitViewController
Available on crate feature UISplitViewController only.
impl Borrow<UIViewController> for UISplitViewController
UISplitViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UITabBarController
Available on crate feature UITabBarController only.
impl Borrow<UIViewController> for UITabBarController
UITabBarController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UITableViewController
Available on crate feature UITableViewController only.
impl Borrow<UIViewController> for UITableViewController
UITableViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UITextFormattingViewController
Available on crate feature UITextFormattingViewController only.
impl Borrow<UIViewController> for UITextFormattingViewController
UITextFormattingViewController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl Borrow<UIViewController> for UIVideoEditorController
Available on crate features UINavigationController and UIVideoEditorController only.
impl Borrow<UIViewController> for UIVideoEditorController
UINavigationController and UIVideoEditorController only.Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl ClassType for UIViewController
impl ClassType for UIViewController
Source§const NAME: &'static str = "UIViewController"
const NAME: &'static str = "UIViewController"
Source§type Super = UIResponder
type Super = UIResponder
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UIViewController
impl Debug for UIViewController
Source§impl Deref for UIViewController
impl Deref for UIViewController
Source§impl Hash for UIViewController
impl Hash for UIViewController
Source§impl Message for UIViewController
impl Message for UIViewController
Source§impl NSCoding for UIViewController
impl NSCoding for UIViewController
Source§impl NSExtensionRequestHandling for UIViewController
impl NSExtensionRequestHandling for UIViewController
fn beginRequestWithExtensionContext(&self, context: &NSExtensionContext)
Source§impl NSObjectProtocol for UIViewController
impl NSObjectProtocol for UIViewController
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass directly, or cast your objects with AnyObject::downcast_refSource§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl PartialEq for UIViewController
impl PartialEq for UIViewController
Source§impl RefEncode for UIViewController
impl RefEncode for UIViewController
Source§const ENCODING_REF: Encoding = <UIResponder as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIResponder as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIContentContainer for UIViewController
impl UIContentContainer for UIViewController
Source§fn preferredContentSize(&self) -> CGSize
fn preferredContentSize(&self) -> CGSize
objc2-core-foundation only.fn preferredContentSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
fn systemLayoutFittingSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
Source§fn sizeForChildContentContainer_withParentContainerSize(
&self,
container: &ProtocolObject<dyn UIContentContainer>,
parent_size: CGSize,
) -> CGSize
fn sizeForChildContentContainer_withParentContainerSize( &self, container: &ProtocolObject<dyn UIContentContainer>, parent_size: CGSize, ) -> CGSize
objc2-core-foundation only.Source§fn viewWillTransitionToSize_withTransitionCoordinator(
&self,
size: CGSize,
coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>,
)
fn viewWillTransitionToSize_withTransitionCoordinator( &self, size: CGSize, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>, )
UIViewControllerTransitionCoordinator and objc2-core-foundation only.Source§fn willTransitionToTraitCollection_withTransitionCoordinator(
&self,
new_collection: &UITraitCollection,
coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>,
)
fn willTransitionToTraitCollection_withTransitionCoordinator( &self, new_collection: &UITraitCollection, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>, )
UITraitCollection and UIViewControllerTransitionCoordinator only.Source§impl UIFocusEnvironment for UIViewController
impl UIFocusEnvironment for UIViewController
Source§fn preferredFocusEnvironments(
&self,
) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
fn preferredFocusEnvironments( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus only.Source§fn parentFocusEnvironment(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
fn parentFocusEnvironment( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus only.Source§fn focusItemContainer(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
fn focusItemContainer( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
UIFocus only.Source§fn setNeedsFocusUpdate(&self)
fn setNeedsFocusUpdate(&self)
UIFocus only.[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self];Source§fn updateFocusIfNeeded(&self)
fn updateFocusIfNeeded(&self)
UIFocus only.[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];.Source§fn shouldUpdateFocusInContext(&self, context: &UIFocusUpdateContext) -> bool
fn shouldUpdateFocusInContext(&self, context: &UIFocusUpdateContext) -> bool
UIFocus only.Source§fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UIFocus and UIFocusAnimationCoordinator only.Source§fn soundIdentifierForFocusUpdateInContext(
&self,
context: &UIFocusUpdateContext,
) -> Option<Retained<UIFocusSoundIdentifier>>
fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext, ) -> Option<Retained<UIFocusSoundIdentifier>>
UIFocus only.Source§impl UIResponderStandardEditActions for UIViewController
impl UIResponderStandardEditActions for UIViewController
Source§unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn cut(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignRight(&self, sender: Option<&AnyObject>)
unsafe fn alignRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler,
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler, )
UIResponder and block2 only.Source§unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn print(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn export(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
UIResponder only.Source§impl UIStateRestoring for UIViewController
impl UIStateRestoring for UIViewController
Source§fn restorationParent(
&self,
) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
fn restorationParent( &self, ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
UIStateRestoration only.Source§fn objectRestorationClass(&self) -> Option<&'static AnyClass>
fn objectRestorationClass(&self) -> Option<&'static AnyClass>
UIStateRestoration only.Source§unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
UIStateRestoration only.Source§unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
UIStateRestoration only.Source§fn applicationFinishedRestoringState(&self)
fn applicationFinishedRestoringState(&self)
UIStateRestoration only.Source§impl UITraitChangeObservable for UIViewController
impl UITraitChangeObservable for UIViewController
Source§fn unregisterForTraitChanges(
&self,
registration: &ProtocolObject<dyn UITraitChangeRegistration>,
)
fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration>, )
UITraitCollection only.Source§impl UITraitEnvironment for UIViewController
impl UITraitEnvironment for UIViewController
Source§fn traitCollection(&self) -> Retained<UITraitCollection>
fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection only.Source§fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>,
)
fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection>, )
UITraitCollection only.impl DowncastTarget for UIViewController
impl Eq for UIViewController
impl UIAppearanceContainer for UIViewController
Auto Trait Implementations§
impl !Freeze for UIViewController
impl !RefUnwindSafe for UIViewController
impl !Send for UIViewController
impl !Sync for UIViewController
impl !Unpin for UIViewController
impl !UnwindSafe for UIViewController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<'a, T> MainThreadOnly for T
impl<'a, T> MainThreadOnly for T
Source§fn mtm(&self) -> MainThreadMarker
fn mtm(&self) -> MainThreadMarker
MainThreadMarker from the main-thread-only object. Read more