#[repr(C)]pub struct UITableViewController { /* private fields */ }
UIResponder
and UITableViewController
and UIViewController
only.Expand description
Implementations§
Source§impl UITableViewController
impl UITableViewController
pub unsafe fn initWithStyle( this: Allocated<Self>, style: UITableViewStyle, ) -> Retained<Self>
UITableView
only.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 unsafe fn tableView(&self) -> Option<Retained<UITableView>>
UIScrollView
and UITableView
and UIView
only.Sourcepub unsafe fn setTableView(&self, table_view: Option<&UITableView>)
Available on crate features UIScrollView
and UITableView
and UIView
only.
pub unsafe fn setTableView(&self, table_view: Option<&UITableView>)
UIScrollView
and UITableView
and UIView
only.Setter for tableView
.
pub unsafe fn clearsSelectionOnViewWillAppear(&self) -> bool
Sourcepub unsafe fn setClearsSelectionOnViewWillAppear(
&self,
clears_selection_on_view_will_appear: bool,
)
pub unsafe fn setClearsSelectionOnViewWillAppear( &self, clears_selection_on_view_will_appear: bool, )
Setter for clearsSelectionOnViewWillAppear
.
pub unsafe fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>
UIControl
and UIRefreshControl
and UIView
only.Sourcepub unsafe fn setRefreshControl(
&self,
refresh_control: Option<&UIRefreshControl>,
)
Available on crate features UIControl
and UIRefreshControl
and UIView
only.
pub unsafe fn setRefreshControl( &self, refresh_control: Option<&UIRefreshControl>, )
UIControl
and UIRefreshControl
and UIView
only.Setter for refreshControl
.
Methods from Deref<Target = UIViewController>§
UINavigationController
and UINavigationItem
only.pub unsafe fn hidesBottomBarWhenPushed(&self) -> bool
UINavigationController
only.Sourcepub unsafe fn setHidesBottomBarWhenPushed(
&self,
hides_bottom_bar_when_pushed: bool,
)
Available on crate feature UINavigationController
only.
pub unsafe fn setHidesBottomBarWhenPushed( &self, hides_bottom_bar_when_pushed: bool, )
UINavigationController
only.Setter for hidesBottomBarWhenPushed
.
UINavigationController
only.pub unsafe fn toolbarItems(&self) -> Option<Retained<NSArray<UIBarButtonItem>>>
UINavigationController
and UIBarButtonItem
and UIBarItem
only.Sourcepub unsafe fn setToolbarItems(
&self,
toolbar_items: Option<&NSArray<UIBarButtonItem>>,
)
Available on crate features UINavigationController
and UIBarButtonItem
and UIBarItem
only.
pub unsafe fn setToolbarItems( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>>, )
UINavigationController
and UIBarButtonItem
and UIBarItem
only.Setter for toolbarItems
.
pub unsafe fn setToolbarItems_animated( &self, toolbar_items: Option<&NSArray<UIBarButtonItem>>, animated: bool, )
UINavigationController
and UIBarButtonItem
and UIBarItem
only.pub unsafe fn isModalInPopover(&self) -> bool
UIPopoverSupport
only.Sourcepub unsafe fn setModalInPopover(&self, modal_in_popover: bool)
👎DeprecatedAvailable on crate feature UIPopoverSupport
only.
pub unsafe fn setModalInPopover(&self, modal_in_popover: bool)
UIPopoverSupport
only.Setter for isModalInPopover
.
pub unsafe fn contentSizeForViewInPopover(&self) -> CGSize
UIPopoverSupport
and objc2-core-foundation
only.Sourcepub unsafe fn setContentSizeForViewInPopover(
&self,
content_size_for_view_in_popover: CGSize,
)
👎DeprecatedAvailable on crate features UIPopoverSupport
and objc2-core-foundation
only.
pub unsafe fn setContentSizeForViewInPopover( &self, content_size_for_view_in_popover: CGSize, )
UIPopoverSupport
and objc2-core-foundation
only.Setter for contentSizeForViewInPopover
.
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.Sourcepub unsafe fn tab(&self) -> Option<Retained<UITab>>
Available on crate feature UITab
only.
pub unsafe fn tab(&self) -> Option<Retained<UITab>>
UITab
only.The UITab
instance that was used to create the receiver, and represents the view controller. Default is nil.
pub unsafe 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.Setter for tabBarItem
.
pub unsafe fn tabBarController(&self) -> Option<Retained<UITabBarController>>
UITabBarController
only.pub unsafe fn tabBarObservedScrollView(&self) -> Option<Retained<UIScrollView>>
UITabBarController
and UIScrollView
and UIView
only.Sourcepub unsafe fn setTabBarObservedScrollView(
&self,
tab_bar_observed_scroll_view: Option<&UIScrollView>,
)
👎Deprecated: Use -setContentScrollView:forEdge: instead.Available on crate features UITabBarController
and UIScrollView
and UIView
only.
pub unsafe fn setTabBarObservedScrollView( &self, tab_bar_observed_scroll_view: Option<&UIScrollView>, )
UITabBarController
and UIScrollView
and UIView
only.Setter for tabBarObservedScrollView
.
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 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.Sourcepub unsafe fn viewWillAppear(&self, animated: bool)
pub unsafe 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 unsafe fn viewIsAppearing(&self, animated: bool)
pub unsafe 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 unsafe fn viewDidAppear(&self, animated: bool)
pub unsafe fn viewDidAppear(&self, animated: bool)
Called after the view has fully transitioned to visible, when any transition animations have completed.
Sourcepub unsafe fn viewWillDisappear(&self, animated: bool)
pub unsafe fn viewWillDisappear(&self, animated: bool)
Called when the view is about to be dismissed, covered, or otherwise hidden.
Sourcepub unsafe fn viewDidDisappear(&self, animated: bool)
pub unsafe fn viewDidDisappear(&self, animated: bool)
Called after the view has fully been dismissed, covered, or otherwise hidden, when any transition animations have completed.
pub unsafe fn viewWillLayoutSubviews(&self)
pub unsafe fn viewDidLayoutSubviews(&self)
pub unsafe fn title(&self) -> Option<Retained<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
Sourcepub unsafe fn setDefinesPresentationContext(
&self,
defines_presentation_context: bool,
)
pub unsafe fn setDefinesPresentationContext( &self, defines_presentation_context: bool, )
Setter for definesPresentationContext
.
pub unsafe fn providesPresentationContextTransitionStyle(&self) -> bool
Sourcepub unsafe fn setProvidesPresentationContextTransitionStyle(
&self,
provides_presentation_context_transition_style: bool,
)
pub unsafe fn setProvidesPresentationContextTransitionStyle( &self, provides_presentation_context_transition_style: bool, )
Setter for providesPresentationContextTransitionStyle
.
pub unsafe fn restoresFocusAfterTransition(&self) -> bool
Sourcepub unsafe fn setRestoresFocusAfterTransition(
&self,
restores_focus_after_transition: bool,
)
pub unsafe fn setRestoresFocusAfterTransition( &self, restores_focus_after_transition: bool, )
Setter for restoresFocusAfterTransition
.
Sourcepub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe 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 unsafe fn setFocusGroupIdentifier(
&self,
focus_group_identifier: Option<&NSString>,
)
pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString>, )
Setter for focusGroupIdentifier
.
Sourcepub unsafe fn interactionActivityTrackingBaseName(
&self,
) -> Option<Retained<NSString>>
pub unsafe fn interactionActivityTrackingBaseName( &self, ) -> Option<Retained<NSString>>
The base name for tracking user interactions as activities hosted by this view controller.
Sourcepub unsafe fn setInteractionActivityTrackingBaseName(
&self,
interaction_activity_tracking_base_name: Option<&NSString>,
)
pub unsafe fn setInteractionActivityTrackingBaseName( &self, interaction_activity_tracking_base_name: Option<&NSString>, )
Setter for interactionActivityTrackingBaseName
.
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<&DynBlock<dyn Fn()>>, )
block2
only.pub unsafe fn dismissViewControllerAnimated_completion( &self, flag: bool, completion: Option<&DynBlock<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
Sourcepub unsafe fn setModalTransitionStyle(
&self,
modal_transition_style: UIModalTransitionStyle,
)
pub unsafe fn setModalTransitionStyle( &self, modal_transition_style: UIModalTransitionStyle, )
Setter for modalTransitionStyle
.
Sourcepub unsafe fn preferredTransition(
&self,
) -> Option<Retained<UIViewControllerTransition>>
Available on crate feature UIViewControllerTransition
only.
pub unsafe 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 unsafe fn setPreferredTransition(
&self,
preferred_transition: Option<&UIViewControllerTransition>,
)
Available on crate feature UIViewControllerTransition
only.
pub unsafe fn setPreferredTransition( &self, preferred_transition: Option<&UIViewControllerTransition>, )
UIViewControllerTransition
only.Setter for preferredTransition
.
pub unsafe fn modalPresentationStyle(&self) -> UIModalPresentationStyle
Sourcepub unsafe fn setModalPresentationStyle(
&self,
modal_presentation_style: UIModalPresentationStyle,
)
pub unsafe fn setModalPresentationStyle( &self, modal_presentation_style: UIModalPresentationStyle, )
Setter for modalPresentationStyle
.
pub unsafe fn modalPresentationCapturesStatusBarAppearance(&self) -> bool
Sourcepub unsafe fn setModalPresentationCapturesStatusBarAppearance(
&self,
modal_presentation_captures_status_bar_appearance: bool,
)
pub unsafe fn setModalPresentationCapturesStatusBarAppearance( &self, modal_presentation_captures_status_bar_appearance: bool, )
Setter for modalPresentationCapturesStatusBarAppearance
.
pub unsafe fn disablesAutomaticKeyboardDismissal(&self) -> bool
pub unsafe fn wantsFullScreenLayout(&self) -> bool
Sourcepub unsafe fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)
👎Deprecated
pub unsafe fn setWantsFullScreenLayout(&self, wants_full_screen_layout: bool)
Setter for wantsFullScreenLayout
.
pub unsafe fn edgesForExtendedLayout(&self) -> UIRectEdge
UIGeometry
only.Sourcepub unsafe fn setEdgesForExtendedLayout(
&self,
edges_for_extended_layout: UIRectEdge,
)
Available on crate feature UIGeometry
only.
pub unsafe fn setEdgesForExtendedLayout( &self, edges_for_extended_layout: UIRectEdge, )
UIGeometry
only.Setter for edgesForExtendedLayout
.
pub unsafe fn extendedLayoutIncludesOpaqueBars(&self) -> bool
Sourcepub unsafe fn setExtendedLayoutIncludesOpaqueBars(
&self,
extended_layout_includes_opaque_bars: bool,
)
pub unsafe fn setExtendedLayoutIncludesOpaqueBars( &self, extended_layout_includes_opaque_bars: bool, )
Setter for extendedLayoutIncludesOpaqueBars
.
pub unsafe fn automaticallyAdjustsScrollViewInsets(&self) -> bool
Sourcepub unsafe fn setAutomaticallyAdjustsScrollViewInsets(
&self,
automatically_adjusts_scroll_view_insets: bool,
)
👎Deprecated: Use UIScrollView’s contentInsetAdjustmentBehavior instead
pub unsafe fn setAutomaticallyAdjustsScrollViewInsets( &self, automatically_adjusts_scroll_view_insets: bool, )
Setter for automaticallyAdjustsScrollViewInsets
.
Sourcepub unsafe fn setContentScrollView_forEdge(
&self,
scroll_view: Option<&UIScrollView>,
edge: NSDirectionalRectEdge,
)
Available on crate features UIGeometry
and UIScrollView
and UIView
only.
pub unsafe 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 unsafe fn contentScrollViewForEdge(
&self,
edge: NSDirectionalRectEdge,
) -> Option<Retained<UIScrollView>>
Available on crate features UIGeometry
and UIScrollView
and UIView
only.
pub unsafe 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 unsafe fn preferredContentSize(&self) -> CGSize
objc2-core-foundation
only.Sourcepub unsafe fn setPreferredContentSize(&self, preferred_content_size: CGSize)
Available on crate feature objc2-core-foundation
only.
pub unsafe fn setPreferredContentSize(&self, preferred_content_size: CGSize)
objc2-core-foundation
only.Setter for preferredContentSize
.
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.Sourcepub unsafe fn setOverrideUserInterfaceStyle(
&self,
override_user_interface_style: UIUserInterfaceStyle,
)
Available on crate feature UIInterface
only.
pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle, )
UIInterface
only.Setter for overrideUserInterfaceStyle
.
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.Sourcepub unsafe fn setNeedsUpdateOfSupportedInterfaceOrientations(&self)
pub unsafe 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 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.pub unsafe fn isEditing(&self) -> bool
Sourcepub unsafe fn setEditing(&self, editing: bool)
pub unsafe fn setEditing(&self, editing: bool)
Setter for isEditing
.
pub unsafe fn setEditing_animated(&self, editing: bool, animated: bool)
pub unsafe fn editButtonItem(&self) -> Retained<UIBarButtonItem>
UIBarButtonItem
and UIBarItem
only.pub unsafe fn searchDisplayController( &self, ) -> Option<Retained<UISearchDisplayController>>
UISearchDisplayController
only.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<&DynBlock<dyn Fn()>>, completion: Option<&DynBlock<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>>
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>, )
pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>
Sourcepub unsafe fn setRestorationIdentifier(
&self,
restoration_identifier: Option<&NSString>,
)
pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString>, )
Setter for restorationIdentifier
.
pub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>
UIStateRestoration
only.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
.
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn applicationFinishedRestoringState(&self)
pub unsafe fn updateViewConstraints(&self)
pub unsafe fn transitioningDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UIViewControllerTransitioningDelegate>>>
UIViewControllerTransitioning
only.Sourcepub unsafe fn setTransitioningDelegate(
&self,
transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>>,
)
Available on crate feature UIViewControllerTransitioning
only.
pub unsafe fn setTransitioningDelegate( &self, transitioning_delegate: Option<&ProtocolObject<dyn UIViewControllerTransitioningDelegate>>, )
UIViewControllerTransitioning
only.This is a weak property.
Setter for transitioningDelegate
.
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
and objc2-core-foundation
only.Sourcepub unsafe fn setAdditionalSafeAreaInsets(
&self,
additional_safe_area_insets: UIEdgeInsets,
)
Available on crate features UIGeometry
and objc2-core-foundation
only.
pub unsafe fn setAdditionalSafeAreaInsets( &self, additional_safe_area_insets: UIEdgeInsets, )
UIGeometry
and objc2-core-foundation
only.Setter for additionalSafeAreaInsets
.
pub unsafe fn systemMinimumLayoutMargins(&self) -> NSDirectionalEdgeInsets
UIGeometry
and objc2-core-foundation
only.pub unsafe fn viewRespectsSystemMinimumLayoutMargins(&self) -> bool
Sourcepub unsafe fn setViewRespectsSystemMinimumLayoutMargins(
&self,
view_respects_system_minimum_layout_margins: bool,
)
pub unsafe fn setViewRespectsSystemMinimumLayoutMargins( &self, view_respects_system_minimum_layout_margins: bool, )
Setter for viewRespectsSystemMinimumLayoutMargins
.
pub unsafe fn viewLayoutMarginsDidChange(&self)
pub unsafe fn viewSafeAreaInsetsDidChange(&self)
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.Sourcepub unsafe fn performsActionsWhilePresentingModally(&self) -> bool
pub unsafe 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.
pub unsafe fn extensionContext(&self) -> Option<Retained<NSExtensionContext>>
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
Sourcepub unsafe fn setModalInPresentation(&self, modal_in_presentation: bool)
pub unsafe fn setModalInPresentation(&self, modal_in_presentation: bool)
Setter for isModalInPresentation
.
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>, )
pub unsafe fn childViewControllerForScreenEdgesDeferringSystemGestures( &self, ) -> Option<Retained<UIViewController>>
pub unsafe fn preferredScreenEdgesDeferringSystemGestures(&self) -> UIRectEdge
UIGeometry
only.pub fn setNeedsUpdateOfScreenEdgesDeferringSystemGestures(&self)
pub unsafe fn childViewControllerForHomeIndicatorAutoHidden( &self, ) -> Option<Retained<UIViewController>>
pub unsafe fn prefersHomeIndicatorAutoHidden(&self) -> bool
pub fn setNeedsUpdateOfHomeIndicatorAutoHidden(&self)
pub unsafe fn childViewControllerForPointerLock( &self, ) -> Option<Retained<UIViewController>>
pub unsafe fn prefersPointerLocked(&self) -> bool
pub unsafe fn setNeedsUpdateOfPrefersPointerLocked(&self)
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
.
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.
pub unsafe fn previewActionItems( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIPreviewActionItem>>>
pub unsafe fn traitOverrides( &self, ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection
only.Sourcepub unsafe fn updateTraitsIfNeeded(&self)
pub unsafe 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.
pub unsafe fn preferredContainerBackgroundStyle( &self, ) -> UIContainerBackgroundStyle
pub unsafe fn childViewControllerForPreferredContainerBackgroundStyle( &self, ) -> Option<Retained<UIViewController>>
pub unsafe fn setNeedsUpdateOfPreferredContainerBackgroundStyle(&self)
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.Sourcepub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput
only.
pub unsafe 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 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>>
Sourcepub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity
.
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.Sourcepub unsafe fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.
pub unsafe 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 UITableViewController
impl AsRef<AnyObject> for UITableViewController
Source§impl AsRef<NSObject> for UITableViewController
impl AsRef<NSObject> for UITableViewController
Source§impl AsRef<UIResponder> for UITableViewController
impl AsRef<UIResponder> for UITableViewController
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIViewController> for UITableViewController
impl AsRef<UIViewController> for UITableViewController
Source§fn as_ref(&self) -> &UIViewController
fn as_ref(&self) -> &UIViewController
Source§impl Borrow<AnyObject> for UITableViewController
impl Borrow<AnyObject> for UITableViewController
Source§impl Borrow<NSObject> for UITableViewController
impl Borrow<NSObject> for UITableViewController
Source§impl Borrow<UIResponder> for UITableViewController
impl Borrow<UIResponder> for UITableViewController
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIViewController> for UITableViewController
impl Borrow<UIViewController> for UITableViewController
Source§fn borrow(&self) -> &UIViewController
fn borrow(&self) -> &UIViewController
Source§impl ClassType for UITableViewController
impl ClassType for UITableViewController
Source§const NAME: &'static str = "UITableViewController"
const NAME: &'static str = "UITableViewController"
Source§type Super = UIViewController
type Super = UIViewController
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UITableViewController
impl Debug for UITableViewController
Source§impl Deref for UITableViewController
impl Deref for UITableViewController
Source§impl Hash for UITableViewController
impl Hash for UITableViewController
Source§impl Message for UITableViewController
impl Message for UITableViewController
Source§impl NSCoding for UITableViewController
impl NSCoding for UITableViewController
Source§impl NSObjectProtocol for UITableViewController
impl NSObjectProtocol for UITableViewController
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_ref
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 UITableViewController
impl PartialEq for UITableViewController
Source§impl RefEncode for UITableViewController
impl RefEncode for UITableViewController
Source§const ENCODING_REF: Encoding = <UIViewController as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIViewController as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIContentContainer for UITableViewController
impl UIContentContainer for UITableViewController
Source§unsafe fn preferredContentSize(&self) -> CGSize
unsafe fn preferredContentSize(&self) -> CGSize
UIViewController
and objc2-core-foundation
only.Source§unsafe fn preferredContentSizeDidChangeForChildContentContainer(
&self,
container: &ProtocolObject<dyn UIContentContainer>,
)
unsafe fn preferredContentSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
UIViewController
only.Source§unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer(
&self,
container: &ProtocolObject<dyn UIContentContainer>,
)
unsafe fn systemLayoutFittingSizeDidChangeForChildContentContainer( &self, container: &ProtocolObject<dyn UIContentContainer>, )
UIViewController
only.Source§unsafe fn sizeForChildContentContainer_withParentContainerSize(
&self,
container: &ProtocolObject<dyn UIContentContainer>,
parent_size: CGSize,
) -> CGSize
unsafe fn sizeForChildContentContainer_withParentContainerSize( &self, container: &ProtocolObject<dyn UIContentContainer>, parent_size: CGSize, ) -> CGSize
UIViewController
and objc2-core-foundation
only.Source§unsafe fn viewWillTransitionToSize_withTransitionCoordinator(
&self,
size: CGSize,
coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>,
)
unsafe fn viewWillTransitionToSize_withTransitionCoordinator( &self, size: CGSize, coordinator: &ProtocolObject<dyn UIViewControllerTransitionCoordinator>, )
UIViewControllerTransitionCoordinator
and objc2-core-foundation
and UIViewController
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
and UIViewController
only.Source§impl UIFocusEnvironment for UITableViewController
impl UIFocusEnvironment for UITableViewController
Source§unsafe fn preferredFocusEnvironments(
&self,
) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn preferredFocusEnvironments( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus
only.Source§unsafe fn parentFocusEnvironment(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn parentFocusEnvironment( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus
only.Source§unsafe fn focusItemContainer(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
unsafe fn focusItemContainer( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
UIFocus
only.Source§unsafe fn setNeedsFocusUpdate(&self)
unsafe fn setNeedsFocusUpdate(&self)
UIFocus
only.[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self]
;Source§unsafe fn updateFocusIfNeeded(&self)
unsafe fn updateFocusIfNeeded(&self)
UIFocus
only.[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];
.Source§unsafe fn shouldUpdateFocusInContext(
&self,
context: &UIFocusUpdateContext,
) -> bool
unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext, ) -> bool
UIFocus
only.Source§unsafe fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UIFocus
and UIFocusAnimationCoordinator
only.Source§unsafe fn soundIdentifierForFocusUpdateInContext(
&self,
context: &UIFocusUpdateContext,
) -> Option<Retained<UIFocusSoundIdentifier>>
unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext, ) -> Option<Retained<UIFocusSoundIdentifier>>
UIFocus
only.Source§impl UIResponderStandardEditActions for UITableViewController
impl UIResponderStandardEditActions for UITableViewController
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 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 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§impl UIScrollViewDelegate for UITableViewController
impl UIScrollViewDelegate for UITableViewController
Source§unsafe fn scrollViewDidScroll(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewDidScroll(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidZoom(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewDidZoom(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewWillBeginDragging(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewWillBeginDragging(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewWillEndDragging_withVelocity_targetContentOffset(
&self,
scroll_view: &UIScrollView,
velocity: CGPoint,
target_content_offset: NonNull<CGPoint>,
)
unsafe fn scrollViewWillEndDragging_withVelocity_targetContentOffset( &self, scroll_view: &UIScrollView, velocity: CGPoint, target_content_offset: NonNull<CGPoint>, )
UIResponder
and UIView
and objc2-core-foundation
and UIScrollView
only.Source§unsafe fn scrollViewDidEndDragging_willDecelerate(
&self,
scroll_view: &UIScrollView,
decelerate: bool,
)
unsafe fn scrollViewDidEndDragging_willDecelerate( &self, scroll_view: &UIScrollView, decelerate: bool, )
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewWillBeginDecelerating(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewWillBeginDecelerating(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidEndDecelerating(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewDidEndDecelerating(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidEndScrollingAnimation(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewDidEndScrollingAnimation(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn viewForZoomingInScrollView(
&self,
scroll_view: &UIScrollView,
) -> Option<Retained<UIView>>
unsafe fn viewForZoomingInScrollView( &self, scroll_view: &UIScrollView, ) -> Option<Retained<UIView>>
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewWillBeginZooming_withView(
&self,
scroll_view: &UIScrollView,
view: Option<&UIView>,
)
unsafe fn scrollViewWillBeginZooming_withView( &self, scroll_view: &UIScrollView, view: Option<&UIView>, )
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidEndZooming_withView_atScale(
&self,
scroll_view: &UIScrollView,
view: Option<&UIView>,
scale: CGFloat,
)
unsafe fn scrollViewDidEndZooming_withView_atScale( &self, scroll_view: &UIScrollView, view: Option<&UIView>, scale: CGFloat, )
UIResponder
and UIView
and objc2-core-foundation
and UIScrollView
only.Source§unsafe fn scrollViewShouldScrollToTop(&self, scroll_view: &UIScrollView) -> bool
unsafe fn scrollViewShouldScrollToTop(&self, scroll_view: &UIScrollView) -> bool
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidScrollToTop(&self, scroll_view: &UIScrollView)
unsafe fn scrollViewDidScrollToTop(&self, scroll_view: &UIScrollView)
UIResponder
and UIView
and UIScrollView
only.Source§unsafe fn scrollViewDidChangeAdjustedContentInset(
&self,
scroll_view: &UIScrollView,
)
unsafe fn scrollViewDidChangeAdjustedContentInset( &self, scroll_view: &UIScrollView, )
UIResponder
and UIView
and UIScrollView
only.Source§impl UITableViewDataSource for UITableViewController
impl UITableViewDataSource for UITableViewController
Source§unsafe fn tableView_numberOfRowsInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> NSInteger
unsafe fn tableView_numberOfRowsInSection( &self, table_view: &UITableView, section: NSInteger, ) -> NSInteger
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_cellForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Retained<UITableViewCell>
unsafe fn tableView_cellForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Retained<UITableViewCell>
UIResponder
and UIScrollView
and UITableViewCell
and UIView
and UITableView
only.Source§unsafe fn numberOfSectionsInTableView(
&self,
table_view: &UITableView,
) -> NSInteger
unsafe fn numberOfSectionsInTableView( &self, table_view: &UITableView, ) -> NSInteger
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_titleForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<NSString>>
unsafe fn tableView_titleForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> Option<Retained<NSString>>
UIResponder
and UIScrollView
and UIView
and UITableView
only.UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_canEditRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_canEditRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_canMoveRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_canMoveRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn sectionIndexTitlesForTableView(
&self,
table_view: &UITableView,
) -> Option<Retained<NSArray<NSString>>>
unsafe fn sectionIndexTitlesForTableView( &self, table_view: &UITableView, ) -> Option<Retained<NSArray<NSString>>>
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_sectionForSectionIndexTitle_atIndex(
&self,
table_view: &UITableView,
title: &NSString,
index: NSInteger,
) -> NSInteger
unsafe fn tableView_sectionForSectionIndexTitle_atIndex( &self, table_view: &UITableView, title: &NSString, index: NSInteger, ) -> NSInteger
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§unsafe fn tableView_commitEditingStyle_forRowAtIndexPath(
&self,
table_view: &UITableView,
editing_style: UITableViewCellEditingStyle,
index_path: &NSIndexPath,
)
unsafe fn tableView_commitEditingStyle_forRowAtIndexPath( &self, table_view: &UITableView, editing_style: UITableViewCellEditingStyle, index_path: &NSIndexPath, )
UIResponder
and UIScrollView
and UITableViewCell
and UIView
and UITableView
only.Source§unsafe fn tableView_moveRowAtIndexPath_toIndexPath(
&self,
table_view: &UITableView,
source_index_path: &NSIndexPath,
destination_index_path: &NSIndexPath,
)
unsafe fn tableView_moveRowAtIndexPath_toIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, destination_index_path: &NSIndexPath, )
UIResponder
and UIScrollView
and UIView
and UITableView
only.Source§impl UITableViewDelegate for UITableViewController
impl UITableViewDelegate for UITableViewController
Source§unsafe fn tableView_willDisplayCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
unsafe fn tableView_willDisplayCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UITableViewCell
and UIView
only.Source§unsafe fn tableView_willDisplayHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
unsafe fn tableView_willDisplayHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didEndDisplayingCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
unsafe fn tableView_didEndDisplayingCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UITableViewCell
and UIView
only.Source§unsafe fn tableView_didEndDisplayingHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
unsafe fn tableView_didEndDisplayingHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_heightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
unsafe fn tableView_heightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.Source§unsafe fn tableView_heightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
unsafe fn tableView_heightForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> CGFloat
UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.Source§unsafe fn tableView_estimatedHeightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
unsafe fn tableView_estimatedHeightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.Source§unsafe fn tableView_estimatedHeightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
unsafe fn tableView_estimatedHeightForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> CGFloat
UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.UITableView
and UIScrollView
and UIResponder
and UIView
and objc2-core-foundation
only.Source§unsafe fn tableView_viewForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<UIView>>
unsafe fn tableView_viewForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> Option<Retained<UIView>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_accessoryTypeForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellAccessoryType
unsafe fn tableView_accessoryTypeForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellAccessoryType
UITableView
and UIScrollView
and UIResponder
and UITableViewCell
and UIView
only.Source§unsafe fn tableView_accessoryButtonTappedForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_accessoryButtonTappedForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_shouldHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_shouldHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_didHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didUnhighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_didUnhighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_willSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
unsafe fn tableView_willSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_willDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
unsafe fn tableView_willDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_didSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_didDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_canPerformPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_canPerformPrimaryActionForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.tableView:performPrimaryActionForRowAtIndexPath:
for more details about primary actions. Read moreSource§unsafe fn tableView_performPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_performPrimaryActionForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_editingStyleForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellEditingStyle
unsafe fn tableView_editingStyleForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellEditingStyle
UITableView
and UIScrollView
and UIResponder
and UITableViewCell
and UIView
only.Source§unsafe fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSString>>
unsafe fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSString>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_editActionsForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSArray<UITableViewRowAction>>>
unsafe fn tableView_editActionsForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSArray<UITableViewRowAction>>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
unsafe fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UITableView
and UIScrollView
and UIResponder
and UISwipeActionsConfiguration
and UIView
only.Source§unsafe fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
unsafe fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UITableView
and UIScrollView
and UIResponder
and UISwipeActionsConfiguration
and UIView
only.Source§unsafe fn tableView_shouldIndentWhileEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_shouldIndentWhileEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_willBeginEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_willBeginEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didEndEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: Option<&NSIndexPath>,
)
unsafe fn tableView_didEndEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: Option<&NSIndexPath>, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath(
&self,
table_view: &UITableView,
source_index_path: &NSIndexPath,
proposed_destination_index_path: &NSIndexPath,
) -> Retained<NSIndexPath>
unsafe fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, proposed_destination_index_path: &NSIndexPath, ) -> Retained<NSIndexPath>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_indentationLevelForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> NSInteger
unsafe fn tableView_indentationLevelForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> NSInteger
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_shouldShowMenuForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_shouldShowMenuForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_canPerformAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
) -> bool
unsafe fn tableView_canPerformAction_forRowAtIndexPath_withSender( &self, table_view: &UITableView, action: Sel, index_path: &NSIndexPath, sender: Option<&AnyObject>, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_performAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
)
unsafe fn tableView_performAction_forRowAtIndexPath_withSender( &self, table_view: &UITableView, action: Sel, index_path: &NSIndexPath, sender: Option<&AnyObject>, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_canFocusRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_canFocusRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_shouldUpdateFocusInContext(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
) -> bool
unsafe fn tableView_shouldUpdateFocusInContext( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, ) -> bool
UITableView
and UIScrollView
and UIFocus
and UIResponder
and UIView
only.Source§unsafe fn tableView_didUpdateFocusInContext_withAnimationCoordinator(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
unsafe fn tableView_didUpdateFocusInContext_withAnimationCoordinator( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UITableView
and UIScrollView
and UIFocus
and UIFocusAnimationCoordinator
and UIResponder
and UIView
only.Source§unsafe fn indexPathForPreferredFocusedViewInTableView(
&self,
table_view: &UITableView,
) -> Option<Retained<NSIndexPath>>
unsafe fn indexPathForPreferredFocusedViewInTableView( &self, table_view: &UITableView, ) -> Option<Retained<NSIndexPath>>
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_selectionFollowsFocusForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_selectionFollowsFocusForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_shouldSpringLoadRowAtIndexPath_withContext(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
context: &ProtocolObject<dyn UISpringLoadedInteractionContext>,
) -> bool
unsafe fn tableView_shouldSpringLoadRowAtIndexPath_withContext( &self, table_view: &UITableView, index_path: &NSIndexPath, context: &ProtocolObject<dyn UISpringLoadedInteractionContext>, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UISpringLoadedInteraction
and UIView
only.Source§unsafe fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
unsafe fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_didBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
unsafe fn tableView_didBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableViewDidEndMultipleSelectionInteraction(
&self,
table_view: &UITableView,
)
unsafe fn tableViewDidEndMultipleSelectionInteraction( &self, table_view: &UITableView, )
UITableView
and UIScrollView
and UIResponder
and UIView
only.Source§unsafe fn tableView_contextMenuConfigurationForRowAtIndexPath_point(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
point: CGPoint,
) -> Option<Retained<UIContextMenuConfiguration>>
unsafe fn tableView_contextMenuConfigurationForRowAtIndexPath_point( &self, table_view: &UITableView, index_path: &NSIndexPath, point: CGPoint, ) -> Option<Retained<UIContextMenuConfiguration>>
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIResponder
and UIView
and objc2-core-foundation
only.Source§unsafe fn tableView_previewForHighlightingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
unsafe fn tableView_previewForHighlightingContextMenuWithConfiguration( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, ) -> Option<Retained<UITargetedPreview>>
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIResponder
and UITargetedPreview
and UIView
only.Source§unsafe fn tableView_previewForDismissingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
unsafe fn tableView_previewForDismissingContextMenuWithConfiguration( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, ) -> Option<Retained<UITargetedPreview>>
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIResponder
and UITargetedPreview
and UIView
only.Source§unsafe fn tableView_willPerformPreviewActionForMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>,
)
unsafe fn tableView_willPerformPreviewActionForMenuWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>, )
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIContextMenuInteraction
and UIResponder
and UIView
only.Source§unsafe fn tableView_willDisplayContextMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
unsafe fn tableView_willDisplayContextMenuWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>, )
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIContextMenuInteraction
and UIResponder
and UIView
only.Source§unsafe fn tableView_willEndContextMenuInteractionWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
unsafe fn tableView_willEndContextMenuInteractionWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>, )
UITableView
and UIScrollView
and UIContextMenuConfiguration
and UIContextMenuInteraction
and UIResponder
and UIView
only.Source§impl UITraitEnvironment for UITableViewController
impl UITraitEnvironment for UITableViewController
Source§fn traitCollection(&self) -> Retained<UITraitCollection>
fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection
only.Source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>,
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection>, )
UITraitCollection
only.impl DowncastTarget for UITableViewController
impl Eq for UITableViewController
impl UIAppearanceContainer for UITableViewController
Auto Trait Implementations§
impl !Freeze for UITableViewController
impl !RefUnwindSafe for UITableViewController
impl !Send for UITableViewController
impl !Sync for UITableViewController
impl !Unpin for UITableViewController
impl !UnwindSafe for UITableViewController
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