Struct objc2_ui_kit::UIViewController
source · #[repr(C)]pub struct UIViewController { /* private fields */ }
UIResponder
and UIViewController
only.Implementations§
source§impl UIViewController
impl UIViewController
UINavigationControllerItem
UINavigationController
and UINavigationItem
only.pub unsafe fn hidesBottomBarWhenPushed(&self) -> bool
UINavigationController
only.pub unsafe fn setHidesBottomBarWhenPushed( &self, hides_bottom_bar_when_pushed: bool )
UINavigationController
only.UINavigationController
only.source§impl UIViewController
impl UIViewController
UINavigationControllerContextualToolbarItems
pub unsafe fn toolbarItems(&self) -> Option<Retained<NSArray<UIBarButtonItem>>>
UINavigationController
and UIBarButtonItem
and UIBarItem
only.pub unsafe fn setToolbarItems( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>> )
UINavigationController
and UIBarButtonItem
and UIBarItem
only.pub unsafe fn setToolbarItems_animated( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>>, animated: bool )
UINavigationController
and UIBarButtonItem
and UIBarItem
only.source§impl UIViewController
impl UIViewController
UIPopoverController
pub unsafe fn isModalInPopover(&self) -> bool
UIPopoverSupport
only.pub unsafe fn setModalInPopover(&self, modal_in_popover: bool)
UIPopoverSupport
only.pub unsafe fn contentSizeForViewInPopover(&self) -> CGSize
UIPopoverSupport
only.pub unsafe fn setContentSizeForViewInPopover( &self, content_size_for_view_in_popover: CGSize )
UIPopoverSupport
only.source§impl UIViewController
impl UIViewController
UISplitViewController
pub unsafe fn splitViewController( &self ) -> Option<Retained<UISplitViewController>>
UISplitViewController
only.pub unsafe fn collapseSecondaryViewController_forSplitViewController( &self, secondary_view_controller: &UIViewController, split_view_controller: &UISplitViewController )
UISplitViewController
only.pub unsafe fn separateSecondaryViewControllerForSplitViewController( &self, split_view_controller: &UISplitViewController ) -> Option<Retained<UIViewController>>
UISplitViewController
only.source§impl UIViewController
impl UIViewController
UITabBarControllerItem
pub unsafe fn tabBarItem(&self) -> Option<Retained<UITabBarItem>>
UITabBarController
and UIBarItem
and UITabBarItem
only.pub unsafe fn setTabBarItem(&self, tab_bar_item: Option<&UITabBarItem>)
UITabBarController
and UIBarItem
and UITabBarItem
only.pub unsafe fn tabBarController(&self) -> Option<Retained<UITabBarController>>
UITabBarController
only.pub unsafe fn tabBarObservedScrollView(&self) -> Option<Retained<UIScrollView>>
UITabBarController
and UIScrollView
and UIView
only.pub unsafe fn setTabBarObservedScrollView( &self, tab_bar_observed_scroll_view: Option<&UIScrollView> )
UITabBarController
and UIScrollView
and UIView
only.source§impl UIViewController
impl UIViewController
pub unsafe fn initWithNibName_bundle( this: Allocated<Self>, nib_name_or_nil: Option<&NSString>, nib_bundle_or_nil: Option<&NSBundle> ) -> Retained<Self>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
pub fn view(&self) -> Option<Retained<UIView>>
UIView
only.pub fn setView(&self, view: Option<&UIView>)
UIView
only.pub unsafe fn loadView(&self)
pub unsafe fn loadViewIfNeeded(&self)
pub unsafe fn viewIfLoaded(&self) -> Option<Retained<UIView>>
UIView
only.pub unsafe fn viewWillUnload(&self)
pub unsafe fn viewDidUnload(&self)
pub unsafe fn viewDidLoad(&self)
pub unsafe fn isViewLoaded(&self) -> bool
pub unsafe fn nibName(&self) -> Option<Retained<NSString>>
pub unsafe fn nibBundle(&self) -> Option<Retained<NSBundle>>
pub unsafe fn storyboard(&self) -> Option<Retained<UIStoryboard>>
UIStoryboard
only.pub unsafe fn performSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject> )
pub unsafe fn shouldPerformSegueWithIdentifier_sender( &self, identifier: &NSString, sender: Option<&AnyObject> ) -> bool
pub unsafe fn prepareForSegue_sender( &self, segue: &UIStoryboardSegue, sender: Option<&AnyObject> )
UIStoryboardSegue
only.pub unsafe fn canPerformUnwindSegueAction_fromViewController_sender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject> ) -> bool
pub unsafe fn canPerformUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: &AnyObject ) -> bool
pub unsafe fn allowedChildViewControllersForUnwindingFromSource( &self, source: &UIStoryboardUnwindSegueSource ) -> Retained<NSArray<UIViewController>>
UIStoryboardSegue
only.pub unsafe fn childViewControllerContainingSegueSource( &self, source: &UIStoryboardUnwindSegueSource ) -> Option<Retained<UIViewController>>
UIStoryboardSegue
only.pub unsafe fn viewControllerForUnwindSegueAction_fromViewController_withSender( &self, action: Sel, from_view_controller: &UIViewController, sender: Option<&AnyObject> ) -> Option<Retained<UIViewController>>
pub unsafe fn unwindForSegue_towardsViewController( &self, unwind_segue: &UIStoryboardSegue, subsequent_vc: &UIViewController )
UIStoryboardSegue
only.pub unsafe fn segueForUnwindingToViewController_fromViewController_identifier( &self, to_view_controller: &UIViewController, from_view_controller: &UIViewController, identifier: Option<&NSString> ) -> Option<Retained<UIStoryboardSegue>>
UIStoryboardSegue
only.pub unsafe fn viewWillAppear(&self, animated: bool)
pub unsafe fn viewIsAppearing(&self, animated: bool)
pub unsafe fn viewDidAppear(&self, animated: bool)
pub unsafe fn viewWillDisappear(&self, animated: bool)
pub unsafe fn viewDidDisappear(&self, animated: bool)
pub unsafe fn viewWillLayoutSubviews(&self)
pub unsafe fn viewDidLayoutSubviews(&self)
pub unsafe fn title(&self) -> Option<Retained<NSString>>
pub unsafe fn setTitle(&self, title: Option<&NSString>)
pub unsafe fn didReceiveMemoryWarning(&self)
pub unsafe fn parentViewController(&self) -> Option<Retained<UIViewController>>
pub unsafe fn modalViewController(&self) -> Option<Retained<UIViewController>>
pub unsafe fn presentedViewController( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn presentingViewController( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn definesPresentationContext(&self) -> bool
pub unsafe fn setDefinesPresentationContext( &self, defines_presentation_context: bool )
pub unsafe fn providesPresentationContextTransitionStyle(&self) -> bool
pub unsafe fn setProvidesPresentationContextTransitionStyle( &self, provides_presentation_context_transition_style: bool )
pub unsafe fn restoresFocusAfterTransition(&self) -> bool
pub unsafe fn setRestoresFocusAfterTransition( &self, restores_focus_after_transition: bool )
pub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString> )
pub unsafe fn interactionActivityTrackingBaseName( &self ) -> Option<Retained<NSString>>
pub unsafe fn setInteractionActivityTrackingBaseName( &self, interaction_activity_tracking_base_name: Option<&NSString> )
pub unsafe fn isBeingPresented(&self) -> bool
pub unsafe fn isBeingDismissed(&self) -> bool
pub unsafe fn isMovingToParentViewController(&self) -> bool
pub unsafe fn isMovingFromParentViewController(&self) -> bool
pub unsafe fn presentViewController_animated_completion( &self, view_controller_to_present: &UIViewController, flag: bool, completion: Option<&Block<dyn Fn()>> )
block2
only.pub unsafe fn dismissViewControllerAnimated_completion( &self, flag: bool, completion: Option<&Block<dyn Fn()>> )
block2
only.pub unsafe fn presentModalViewController_animated( &self, modal_view_controller: &UIViewController, animated: bool )
pub unsafe fn dismissModalViewControllerAnimated(&self, animated: bool)
pub unsafe fn modalTransitionStyle(&self) -> UIModalTransitionStyle
pub unsafe fn setModalTransitionStyle( &self, modal_transition_style: UIModalTransitionStyle )
pub unsafe fn modalPresentationStyle(&self) -> UIModalPresentationStyle
pub unsafe fn setModalPresentationStyle( &self, modal_presentation_style: UIModalPresentationStyle )
pub unsafe fn modalPresentationCapturesStatusBarAppearance(&self) -> bool
pub unsafe fn setModalPresentationCapturesStatusBarAppearance( &self, modal_presentation_captures_status_bar_appearance: bool )
pub unsafe fn disablesAutomaticKeyboardDismissal(&self) -> bool
pub unsafe fn wantsFullScreenLayout(&self) -> bool
pub unsafe fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)
pub unsafe fn edgesForExtendedLayout(&self) -> UIRectEdge
UIGeometry
only.pub unsafe fn setEdgesForExtendedLayout( &self, edges_for_extended_layout: UIRectEdge )
UIGeometry
only.pub unsafe fn extendedLayoutIncludesOpaqueBars(&self) -> bool
pub unsafe fn setExtendedLayoutIncludesOpaqueBars( &self, extended_layout_includes_opaque_bars: bool )
pub unsafe fn automaticallyAdjustsScrollViewInsets(&self) -> bool
pub unsafe fn setAutomaticallyAdjustsScrollViewInsets( &self, automatically_adjusts_scroll_view_insets: bool )
pub unsafe fn setContentScrollView_forEdge( &self, scroll_view: Option<&UIScrollView>, edge: NSDirectionalRectEdge )
UIGeometry
and UIScrollView
and UIView
only.pub unsafe fn contentScrollViewForEdge( &self, edge: NSDirectionalRectEdge ) -> Option<Retained<UIScrollView>>
UIGeometry
and UIScrollView
and UIView
only.pub unsafe fn preferredContentSize(&self) -> CGSize
pub unsafe fn setPreferredContentSize(&self, preferred_content_size: CGSize)
pub unsafe fn preferredStatusBarStyle(&self) -> UIStatusBarStyle
UIApplication
only.pub unsafe fn prefersStatusBarHidden(&self) -> bool
pub unsafe fn preferredStatusBarUpdateAnimation(&self) -> UIStatusBarAnimation
UIApplication
only.pub fn setNeedsStatusBarAppearanceUpdate(&self)
pub unsafe fn targetViewControllerForAction_sender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<UIViewController>>
pub unsafe fn showViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject> )
pub unsafe fn showDetailViewController_sender( &self, vc: &UIViewController, sender: Option<&AnyObject> )
pub unsafe fn preferredUserInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface
only.pub unsafe fn setNeedsUserInterfaceAppearanceUpdate(&self)
pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface
only.pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle )
UIInterface
only.source§impl UIViewController
impl UIViewController
Methods declared on superclass NSObject
source§impl UIViewController
impl UIViewController
UIViewControllerRotation
pub fn attemptRotationToDeviceOrientation(mtm: MainThreadMarker)
setNeedsUpdateOfSupportedInterfaceOrientations
.pub unsafe fn shouldAutorotateToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation ) -> bool
UIOrientation
only.pub unsafe fn shouldAutorotate(&self) -> bool
pub unsafe fn supportedInterfaceOrientations( &self ) -> UIInterfaceOrientationMask
UIOrientation
only.pub unsafe fn preferredInterfaceOrientationForPresentation( &self ) -> UIInterfaceOrientation
UIOrientation
only.pub unsafe fn setNeedsUpdateOfSupportedInterfaceOrientations(&self)
pub unsafe fn rotatingHeaderView(&self) -> Option<Retained<UIView>>
UIView
only.UIView
only.pub unsafe fn interfaceOrientation(&self) -> UIInterfaceOrientation
UIOrientation
only.pub unsafe fn willRotateToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )
UIOrientation
only.pub unsafe fn didRotateFromInterfaceOrientation( &self, from_interface_orientation: UIInterfaceOrientation )
UIOrientation
only.pub unsafe fn willAnimateRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )
UIOrientation
only.pub unsafe fn willAnimateFirstHalfOfRotationToInterfaceOrientation_duration( &self, to_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )
UIOrientation
only.pub unsafe fn didAnimateFirstHalfOfRotationToInterfaceOrientation( &self, to_interface_orientation: UIInterfaceOrientation )
UIOrientation
only.pub unsafe fn willAnimateSecondHalfOfRotationFromInterfaceOrientation_duration( &self, from_interface_orientation: UIInterfaceOrientation, duration: NSTimeInterval )
UIOrientation
only.source§impl UIViewController
impl UIViewController
UIViewControllerEditing
pub unsafe fn isEditing(&self) -> bool
pub unsafe fn setEditing(&self, editing: bool)
pub unsafe fn setEditing_animated(&self, editing: bool, animated: bool)
pub unsafe fn editButtonItem(&self) -> Retained<UIBarButtonItem>
UIBarButtonItem
and UIBarItem
only.source§impl UIViewController
impl UIViewController
UISearchDisplayControllerSupport
pub unsafe fn searchDisplayController( &self ) -> Option<Retained<UISearchDisplayController>>
UISearchDisplayController
only.source§impl UIViewController
impl UIViewController
UIContainerViewControllerProtectedMethods
pub unsafe fn childViewControllers(&self) -> Retained<NSArray<UIViewController>>
pub unsafe fn addChildViewController(&self, child_controller: &UIViewController)
pub unsafe fn removeFromParentViewController(&self)
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)>> )
UIView
and block2
only.pub unsafe fn beginAppearanceTransition_animated( &self, is_appearing: bool, animated: bool )
pub unsafe fn endAppearanceTransition(&self)
pub unsafe fn childViewControllerForStatusBarStyle( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn childViewControllerForStatusBarHidden( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn setOverrideTraitCollection_forChildViewController( &self, collection: Option<&UITraitCollection>, child_view_controller: &UIViewController )
UITraitCollection
only.pub unsafe fn overrideTraitCollectionForChildViewController( &self, child_view_controller: &UIViewController ) -> Option<Retained<UITraitCollection>>
UITraitCollection
only.pub unsafe fn childViewControllerForUserInterfaceStyle( &self ) -> Option<Retained<UIViewController>>
source§impl UIViewController
impl UIViewController
UIContainerViewControllerCallbacks
pub unsafe fn automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers( &self ) -> bool
pub unsafe fn shouldAutomaticallyForwardRotationMethods(&self) -> bool
pub unsafe fn shouldAutomaticallyForwardAppearanceMethods(&self) -> bool
pub unsafe fn willMoveToParentViewController( &self, parent: Option<&UIViewController> )
pub unsafe fn didMoveToParentViewController( &self, parent: Option<&UIViewController> )
source§impl UIViewController
impl UIViewController
UIStateRestoration
pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString> )
pub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>
UIStateRestoration
only.pub unsafe fn setRestorationClass(&self, restoration_class: Option<&AnyClass>)
UIStateRestoration
only.pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn applicationFinishedRestoringState(&self)
source§impl UIViewController
impl UIViewController
UIConstraintBasedLayoutCoreMethods
pub unsafe fn updateViewConstraints(&self)
source§impl UIViewController
impl UIViewController
UIViewControllerTransitioning
pub unsafe fn transitioningDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitioningDelegate>>>
UIViewControllerTransitioning
only.pub unsafe fn setTransitioningDelegate( &self, transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>> )
UIViewControllerTransitioning
only.source§impl UIViewController
impl UIViewController
UILayoutSupport
pub unsafe fn topLayoutGuide( &self ) -> Retained<ProtocolObject<dyn UILayoutSupport>>
NSLayoutConstraint
only.pub unsafe fn bottomLayoutGuide( &self ) -> Retained<ProtocolObject<dyn UILayoutSupport>>
NSLayoutConstraint
only.pub unsafe fn additionalSafeAreaInsets(&self) -> UIEdgeInsets
UIGeometry
only.pub unsafe fn setAdditionalSafeAreaInsets( &self, additional_safe_area_insets: UIEdgeInsets )
UIGeometry
only.pub unsafe fn systemMinimumLayoutMargins(&self) -> NSDirectionalEdgeInsets
UIGeometry
only.pub unsafe fn viewRespectsSystemMinimumLayoutMargins(&self) -> bool
pub unsafe fn setViewRespectsSystemMinimumLayoutMargins( &self, view_respects_system_minimum_layout_margins: bool )
pub unsafe fn viewLayoutMarginsDidChange(&self)
pub unsafe fn viewSafeAreaInsetsDidChange(&self)
source§impl UIViewController
impl UIViewController
UIKeyCommand
pub unsafe fn addKeyCommand(&self, key_command: &UIKeyCommand)
UICommand
and UIKeyCommand
and UIMenuElement
only.pub unsafe fn removeKeyCommand(&self, key_command: &UIKeyCommand)
UICommand
and UIKeyCommand
and UIMenuElement
only.source§impl UIViewController
impl UIViewController
UIPerformsActions
pub unsafe fn performsActionsWhilePresentingModally(&self) -> bool
source§impl UIViewController
impl UIViewController
NSExtensionAdditions
pub unsafe fn extensionContext(&self) -> Option<Retained<NSExtensionContext>>
source§impl UIViewController
impl UIViewController
UIPresentationController
pub unsafe fn presentationController( &self ) -> Option<Retained<UIPresentationController>>
UIPresentationController
only.pub unsafe fn sheetPresentationController( &self ) -> Option<Retained<UISheetPresentationController>>
UIPresentationController
and UISheetPresentationController
only.pub unsafe fn popoverPresentationController( &self ) -> Option<Retained<UIPopoverPresentationController>>
UIPopoverPresentationController
and UIPresentationController
only.pub unsafe fn activePresentationController( &self ) -> Option<Retained<UIPresentationController>>
UIPresentationController
only.pub unsafe fn isModalInPresentation(&self) -> bool
pub unsafe fn setModalInPresentation(&self, modal_in_presentation: bool)
source§impl UIViewController
impl UIViewController
UIViewControllerPreviewingRegistration
pub unsafe fn registerForPreviewingWithDelegate_sourceView( &self, delegate: &ProtocolObject<dyn UIViewControllerPreviewingDelegate>, source_view: &UIView ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewing>>
UIView
only.pub unsafe fn unregisterForPreviewingWithContext( &self, previewing: &ProtocolObject<dyn UIViewControllerPreviewing> )
source§impl UIViewController
impl UIViewController
UIScreenEdgesDeferringSystemGestures
pub unsafe fn childViewControllerForScreenEdgesDeferringSystemGestures( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn preferredScreenEdgesDeferringSystemGestures(&self) -> UIRectEdge
UIGeometry
only.pub fn setNeedsUpdateOfScreenEdgesDeferringSystemGestures(&self)
source§impl UIViewController
impl UIViewController
UIHomeIndicatorAutoHidden
pub unsafe fn childViewControllerForHomeIndicatorAutoHidden( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn prefersHomeIndicatorAutoHidden(&self) -> bool
pub fn setNeedsUpdateOfHomeIndicatorAutoHidden(&self)
source§impl UIViewController
impl UIViewController
UIPointerLockSupport
pub unsafe fn childViewControllerForPointerLock( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn prefersPointerLocked(&self) -> bool
pub unsafe fn setNeedsUpdateOfPrefersPointerLocked(&self)
source§impl UIViewController
impl UIViewController
UIContentConfiguration
only.UIContentConfiguration
only.UIContentUnavailableConfigurationState
only.UIContentUnavailableConfigurationState
only.source§impl UIViewController
impl UIViewController
pub unsafe fn previewActionItems( &self ) -> Retained<NSArray<ProtocolObject<dyn UIPreviewActionItem>>>
source§impl UIViewController
impl UIViewController
pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection
only.pub unsafe fn updateTraitsIfNeeded(&self)
source§impl UIViewController
impl UIViewController
pub unsafe fn preferredContainerBackgroundStyle( &self ) -> UIContainerBackgroundStyle
pub unsafe fn childViewControllerForPreferredContainerBackgroundStyle( &self ) -> Option<Retained<UIViewController>>
pub unsafe fn setNeedsUpdateOfPreferredContainerBackgroundStyle(&self)
source§impl UIViewController
impl UIViewController
UIViewControllerTransitionCoordinator
pub unsafe fn transitionCoordinator( &self ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitionCoordinator>>>
UIViewControllerTransitionCoordinator
only.Methods from Deref<Target = UIResponder>§
pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub unsafe fn canBecomeFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn canResignFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn isFirstResponder(&self) -> bool
pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
UIEvent
and UITouch
only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
UIEvent
and UITouch
only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
UIEvent
and UITouch
only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
UIEvent
and UITouch
only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch
only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
UIEvent
only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
UIEvent
only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
UIEvent
only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent
only.pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> bool
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder> )
UIMenuBuilder
only.pub unsafe fn validateCommand(&self, command: &UICommand)
UICommand
and UIMenuElement
only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand
and UIKeyCommand
and UIMenuElement
only.pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
UIView
only.pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
UIView
only.pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
UITextInput
only.pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>
UIInputViewController
only.pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>
UIInputViewController
only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput
only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn reloadInputViews(&self)
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>> )
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.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.
§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 unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.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
impl AsMut<AnyObject> for UIViewController
source§impl AsMut<NSObject> for UIViewController
impl AsMut<NSObject> for UIViewController
source§impl AsMut<UIResponder> for UIViewController
impl AsMut<UIResponder> for UIViewController
source§fn as_mut(&mut self) -> &mut UIResponder
fn as_mut(&mut self) -> &mut UIResponder
source§impl AsMut<UIViewController> for UIActivityViewController
Available on crate feature UIActivityViewController
only.
impl AsMut<UIViewController> for UIActivityViewController
UIActivityViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIAlertController
Available on crate feature UIAlertController
only.
impl AsMut<UIViewController> for UIAlertController
UIAlertController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UICloudSharingController
Available on crate feature UICloudSharingController
only.
impl AsMut<UIViewController> for UICloudSharingController
UICloudSharingController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UICollectionViewController
Available on crate feature UICollectionViewController
only.
impl AsMut<UIViewController> for UICollectionViewController
UICollectionViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIColorPickerViewController
Available on crate feature UIColorPickerViewController
only.
impl AsMut<UIViewController> for UIColorPickerViewController
UIColorPickerViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIDocumentBrowserViewController
Available on crate feature UIDocumentBrowserViewController
only.
impl AsMut<UIViewController> for UIDocumentBrowserViewController
UIDocumentBrowserViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIDocumentMenuViewController
Available on crate feature UIDocumentMenuViewController
only.
impl AsMut<UIViewController> for UIDocumentMenuViewController
UIDocumentMenuViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIDocumentPickerExtensionViewController
Available on crate feature UIDocumentPickerExtensionViewController
only.
impl AsMut<UIViewController> for UIDocumentPickerExtensionViewController
UIDocumentPickerExtensionViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIDocumentPickerViewController
Available on crate feature UIDocumentPickerViewController
only.
impl AsMut<UIViewController> for UIDocumentPickerViewController
UIDocumentPickerViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIDocumentViewController
Available on crate feature UIDocumentViewController
only.
impl AsMut<UIViewController> for UIDocumentViewController
UIDocumentViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIFontPickerViewController
Available on crate feature UIFontPickerViewController
only.
impl AsMut<UIViewController> for UIFontPickerViewController
UIFontPickerViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIImagePickerController
Available on crate feature UIImagePickerController
only.
impl AsMut<UIViewController> for UIImagePickerController
UIImagePickerController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIInputViewController
Available on crate feature UIInputViewController
only.
impl AsMut<UIViewController> for UIInputViewController
UIInputViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIPageViewController
Available on crate feature UIPageViewController
only.
impl AsMut<UIViewController> for UIPageViewController
UIPageViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIReferenceLibraryViewController
Available on crate feature UIReferenceLibraryViewController
only.
impl AsMut<UIViewController> for UIReferenceLibraryViewController
UIReferenceLibraryViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UISearchContainerViewController
Available on crate feature UISearchContainerViewController
only.
impl AsMut<UIViewController> for UISearchContainerViewController
UISearchContainerViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UISearchController
Available on crate feature UISearchController
only.
impl AsMut<UIViewController> for UISearchController
UISearchController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UISplitViewController
Available on crate feature UISplitViewController
only.
impl AsMut<UIViewController> for UISplitViewController
UISplitViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UITabBarController
Available on crate feature UITabBarController
only.
impl AsMut<UIViewController> for UITabBarController
UITabBarController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UITableViewController
Available on crate feature UITableViewController
only.
impl AsMut<UIViewController> for UITableViewController
UITableViewController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIVideoEditorController
Available on crate feature UIVideoEditorController
only.
impl AsMut<UIViewController> for UIVideoEditorController
UIVideoEditorController
only.source§fn as_mut(&mut self) -> &mut UIViewController
fn as_mut(&mut self) -> &mut UIViewController
source§impl AsMut<UIViewController> for UIViewController
impl AsMut<UIViewController> for UIViewController
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 feature UIImagePickerController
only.
impl AsRef<UIViewController> for UIImagePickerController
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 UIVideoEditorController
Available on crate feature UIVideoEditorController
only.
impl AsRef<UIViewController> for UIVideoEditorController
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 feature UIImagePickerController
only.
impl Borrow<UIViewController> for UIImagePickerController
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 UIVideoEditorController
Available on crate feature UIVideoEditorController
only.
impl Borrow<UIViewController> for UIVideoEditorController
UIVideoEditorController
only.source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
source§impl BorrowMut<AnyObject> for UIViewController
impl BorrowMut<AnyObject> for UIViewController
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
source§impl BorrowMut<NSObject> for UIViewController
impl BorrowMut<NSObject> for UIViewController
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
source§impl BorrowMut<UIResponder> for UIViewController
impl BorrowMut<UIResponder> for UIViewController
source§fn borrow_mut(&mut self) -> &mut UIResponder
fn borrow_mut(&mut self) -> &mut UIResponder
source§impl BorrowMut<UIViewController> for UIActivityViewController
Available on crate feature UIActivityViewController
only.
impl BorrowMut<UIViewController> for UIActivityViewController
UIActivityViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIAlertController
Available on crate feature UIAlertController
only.
impl BorrowMut<UIViewController> for UIAlertController
UIAlertController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UICloudSharingController
Available on crate feature UICloudSharingController
only.
impl BorrowMut<UIViewController> for UICloudSharingController
UICloudSharingController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UICollectionViewController
Available on crate feature UICollectionViewController
only.
impl BorrowMut<UIViewController> for UICollectionViewController
UICollectionViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIColorPickerViewController
Available on crate feature UIColorPickerViewController
only.
impl BorrowMut<UIViewController> for UIColorPickerViewController
UIColorPickerViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIDocumentBrowserViewController
Available on crate feature UIDocumentBrowserViewController
only.
impl BorrowMut<UIViewController> for UIDocumentBrowserViewController
UIDocumentBrowserViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIDocumentMenuViewController
Available on crate feature UIDocumentMenuViewController
only.
impl BorrowMut<UIViewController> for UIDocumentMenuViewController
UIDocumentMenuViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIDocumentPickerExtensionViewController
Available on crate feature UIDocumentPickerExtensionViewController
only.
impl BorrowMut<UIViewController> for UIDocumentPickerExtensionViewController
UIDocumentPickerExtensionViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIDocumentPickerViewController
Available on crate feature UIDocumentPickerViewController
only.
impl BorrowMut<UIViewController> for UIDocumentPickerViewController
UIDocumentPickerViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIDocumentViewController
Available on crate feature UIDocumentViewController
only.
impl BorrowMut<UIViewController> for UIDocumentViewController
UIDocumentViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIFontPickerViewController
Available on crate feature UIFontPickerViewController
only.
impl BorrowMut<UIViewController> for UIFontPickerViewController
UIFontPickerViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIImagePickerController
Available on crate feature UIImagePickerController
only.
impl BorrowMut<UIViewController> for UIImagePickerController
UIImagePickerController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIInputViewController
Available on crate feature UIInputViewController
only.
impl BorrowMut<UIViewController> for UIInputViewController
UIInputViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIPageViewController
Available on crate feature UIPageViewController
only.
impl BorrowMut<UIViewController> for UIPageViewController
UIPageViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIReferenceLibraryViewController
Available on crate feature UIReferenceLibraryViewController
only.
impl BorrowMut<UIViewController> for UIReferenceLibraryViewController
UIReferenceLibraryViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UISearchContainerViewController
Available on crate feature UISearchContainerViewController
only.
impl BorrowMut<UIViewController> for UISearchContainerViewController
UISearchContainerViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UISearchController
Available on crate feature UISearchController
only.
impl BorrowMut<UIViewController> for UISearchController
UISearchController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UISplitViewController
Available on crate feature UISplitViewController
only.
impl BorrowMut<UIViewController> for UISplitViewController
UISplitViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UITabBarController
Available on crate feature UITabBarController
only.
impl BorrowMut<UIViewController> for UITabBarController
UITabBarController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UITableViewController
Available on crate feature UITableViewController
only.
impl BorrowMut<UIViewController> for UITableViewController
UITableViewController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl BorrowMut<UIViewController> for UIVideoEditorController
Available on crate feature UIVideoEditorController
only.
impl BorrowMut<UIViewController> for UIVideoEditorController
UIVideoEditorController
only.source§fn borrow_mut(&mut self) -> &mut UIViewController
fn borrow_mut(&mut self) -> &mut UIViewController
source§impl ClassType for UIViewController
impl ClassType for UIViewController
§type Super = UIResponder
type Super = UIResponder
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
source§const NAME: &'static str = "UIViewController"
const NAME: &'static str = "UIViewController"
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
source§impl Debug for UIViewController
impl Debug for UIViewController
source§impl Deref for UIViewController
impl Deref for UIViewController
source§impl DerefMut for UIViewController
impl DerefMut for UIViewController
source§impl Hash for UIViewController
impl Hash for UIViewController
source§impl NSCoding for UIViewController
impl NSCoding for UIViewController
source§impl NSExtensionRequestHandling for UIViewController
impl NSExtensionRequestHandling for UIViewController
source§unsafe fn beginRequestWithExtensionContext(&self, context: &NSExtensionContext)
unsafe fn beginRequestWithExtensionContext(&self, context: &NSExtensionContext)
NSExtensionContext
only.source§impl NSObjectProtocol for UIViewController
impl NSObjectProtocol for UIViewController
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &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
source§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§fn eq(&self, other: &UIViewController) -> bool
fn eq(&self, other: &UIViewController) -> bool
self
and other
values to be equal, and is used
by ==
.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
unsafe fn preferredContentSize(&self) -> CGSize
unsafe fn preferredContentSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer> )
unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer> )
unsafe fn sizeForChildContentContainer_withParentContainerSize( &self, container: &ProtocolObject<dyn UIContentContainer>, parent_size: CGSize ) -> CGSize
source§unsafe fn viewWillTransitionToSize_withTransitionCoordinator(
&self,
size: CGSize,
coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>
)
unsafe fn viewWillTransitionToSize_withTransitionCoordinator( &self, size: CGSize, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator> )
UIViewControllerTransitionCoordinator
only.source§unsafe fn willTransitionToTraitCollection_withTransitionCoordinator(
&self,
new_collection: &UITraitCollection,
coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>
)
unsafe fn willTransitionToTraitCollection_withTransitionCoordinator( &self, new_collection: &UITraitCollection, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator> )
UITraitCollection
and UIViewControllerTransitionCoordinator
only.source§impl UIFocusEnvironment for UIViewController
Available on crate feature UIFocus
only.
impl UIFocusEnvironment for UIViewController
UIFocus
only.unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
unsafe fn setNeedsFocusUpdate(&self)
unsafe fn updateFocusIfNeeded(&self)
unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
source§unsafe fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator
)
unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
UIFocusAnimationCoordinator
only.unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
source§unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
UIView
only.unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
source§impl UIResponderStandardEditActions for UIViewController
impl UIResponderStandardEditActions for UIViewController
unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler )
block2
only.unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
source§impl UIStateRestoring for UIViewController
Available on crate feature UIStateRestoration
only.
impl UIStateRestoring for UIViewController
UIStateRestoration
only.unsafe fn restorationParent( &self ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
unsafe fn objectRestorationClass(&self) -> Option<&'static AnyClass>
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn applicationFinishedRestoringState(&self)
source§impl UITraitChangeObservable for UIViewController
Available on crate feature UITraitCollection
only.
impl UITraitChangeObservable for UIViewController
UITraitCollection
only.unsafe fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration> )
source§impl UITraitEnvironment for UIViewController
Available on crate feature UITraitCollection
only.
impl UITraitEnvironment for UIViewController
UITraitCollection
only.fn traitCollection(&self) -> Retained<UITraitCollection>
source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
impl Eq for UIViewController
impl Message for UIViewController
impl StructuralPartialEq for UIViewController
impl UIAppearanceContainer for UIViewController
UIAppearance
only.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<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
Self
if the type has no
mutable counterpart. Read more