Class UITableViewCell

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UIGestureRecognizerDelegate, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UITableViewCell
extends UIView
implements NSCoding, UIGestureRecognizerDelegate
  • Constructor Details

    • UITableViewCell

      public UITableViewCell()
    • UITableViewCell

      protected UITableViewCell​(NSObject.Handle h, long handle)
    • UITableViewCell

      protected UITableViewCell​(NSObject.SkipInit skipInit)
    • UITableViewCell

      public UITableViewCell​(UITableViewCellStyle style, String reuseIdentifier)
    • UITableViewCell

      public UITableViewCell​(NSCoder coder)
    • UITableViewCell

      public UITableViewCell​(CGRect frame)
  • Method Details

    • getConfigurationState

      public UICellConfigurationState getConfigurationState()
      Since:
      Available in iOS 14.0 and later.
    • getConfigurationUpdateHandler

      public VoidBlock2<UITableViewCell,​UICellConfigurationState> getConfigurationUpdateHandler()
      Since:
      Available in iOS 15.0 and later.
    • setConfigurationUpdateHandler

      public void setConfigurationUpdateHandler​(VoidBlock2<UITableViewCell,​UICellConfigurationState> v)
      Since:
      Available in iOS 15.0 and later.
    • getContentConfiguration

      public UIContentConfiguration getContentConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setContentConfiguration

      public void setContentConfiguration​(UIContentConfiguration v)
      Since:
      Available in iOS 14.0 and later.
    • automaticallyUpdatesContentConfiguration

      public boolean automaticallyUpdatesContentConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setAutomaticallyUpdatesContentConfiguration

      public void setAutomaticallyUpdatesContentConfiguration​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getContentView

      public UIView getContentView()
    • getImageView

      @Deprecated public UIImageView getImageView()
      Deprecated.
      Use UIListContentConfiguration instead, this property will be deprecated in a future release.
    • getTextLabel

      @Deprecated public UILabel getTextLabel()
      Deprecated.
      Use UIListContentConfiguration instead, this property will be deprecated in a future release.
    • getDetailTextLabel

      @Deprecated public UILabel getDetailTextLabel()
      Deprecated.
      Use UIListContentConfiguration instead, this property will be deprecated in a future release.
    • getBackgroundConfiguration

      public UIBackgroundConfiguration getBackgroundConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setBackgroundConfiguration

      public void setBackgroundConfiguration​(UIBackgroundConfiguration v)
      Since:
      Available in iOS 14.0 and later.
    • automaticallyUpdatesBackgroundConfiguration

      public boolean automaticallyUpdatesBackgroundConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setAutomaticallyUpdatesBackgroundConfiguration

      public void setAutomaticallyUpdatesBackgroundConfiguration​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getBackgroundView

      public UIView getBackgroundView()
    • setBackgroundView

      public void setBackgroundView​(UIView v)
    • getSelectedBackgroundView

      public UIView getSelectedBackgroundView()
    • setSelectedBackgroundView

      public void setSelectedBackgroundView​(UIView v)
    • getMultipleSelectionBackgroundView

      public UIView getMultipleSelectionBackgroundView()
    • setMultipleSelectionBackgroundView

      public void setMultipleSelectionBackgroundView​(UIView v)
    • getReuseIdentifier

      public String getReuseIdentifier()
    • getSelectionStyle

      public UITableViewCellSelectionStyle getSelectionStyle()
    • setSelectionStyle

      public void setSelectionStyle​(UITableViewCellSelectionStyle v)
    • isSelected

      public boolean isSelected()
    • setSelected

      public void setSelected​(boolean v)
    • isHighlighted

      public boolean isHighlighted()
    • setHighlighted

      public void setHighlighted​(boolean v)
    • getEditingStyle

      public UITableViewCellEditingStyle getEditingStyle()
    • showsReorderControl

      public boolean showsReorderControl()
    • setShowsReorderControl

      public void setShowsReorderControl​(boolean v)
    • shouldIndentWhileEditing

      public boolean shouldIndentWhileEditing()
    • setShouldIndentWhileEditing

      public void setShouldIndentWhileEditing​(boolean v)
    • getAccessoryType

      public UITableViewCellAccessoryType getAccessoryType()
    • setAccessoryType

      public void setAccessoryType​(UITableViewCellAccessoryType v)
    • getAccessoryView

      public UIView getAccessoryView()
    • setAccessoryView

      public void setAccessoryView​(UIView v)
    • getEditingAccessoryType

      public UITableViewCellAccessoryType getEditingAccessoryType()
    • setEditingAccessoryType

      public void setEditingAccessoryType​(UITableViewCellAccessoryType v)
    • getEditingAccessoryView

      public UIView getEditingAccessoryView()
    • setEditingAccessoryView

      public void setEditingAccessoryView​(UIView v)
    • getIndentationLevel

      public long getIndentationLevel()
    • setIndentationLevel

      public void setIndentationLevel​(long v)
    • getIndentationWidth

      public double getIndentationWidth()
    • setIndentationWidth

      public void setIndentationWidth​(double v)
    • getSeparatorInset

      public UIEdgeInsets getSeparatorInset()
    • setSeparatorInset

      public void setSeparatorInset​(UIEdgeInsets v)
    • isEditing

      public boolean isEditing()
    • setEditing

      public void setEditing​(boolean v)
    • isShowingDeleteConfirmation

      public boolean isShowingDeleteConfirmation()
    • getFocusStyle

      public UITableViewCellFocusStyle getFocusStyle()
      Since:
      Available in iOS 9.0 and later.
    • setFocusStyle

      public void setFocusStyle​(UITableViewCellFocusStyle v)
      Since:
      Available in iOS 9.0 and later.
    • isUserInteractionEnabledWhileDragging

      public boolean isUserInteractionEnabledWhileDragging()
      Since:
      Available in iOS 11.0 and later.
    • setUserInteractionEnabledWhileDragging

      public void setUserInteractionEnabledWhileDragging​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • init

      protected long init​(UITableViewCellStyle style, String reuseIdentifier)
    • init

      protected long init​(NSCoder coder)
      Overrides:
      init in class UIView
    • setNeedsUpdateConfiguration

      public void setNeedsUpdateConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • updateConfigurationUsingState

      public void updateConfigurationUsingState​(UICellConfigurationState state)
      Since:
      Available in iOS 14.0 and later.
    • defaultContentConfiguration

      public UIListContentConfiguration defaultContentConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • prepareForReuse

      public void prepareForReuse()
    • setSelected

      public void setSelected​(boolean selected, boolean animated)
    • setHighlighted

      public void setHighlighted​(boolean highlighted, boolean animated)
    • setEditing

      public void setEditing​(boolean editing, boolean animated)
    • willTransitionToState

      public void willTransitionToState​(UITableViewCellStateMask state)
    • didTransitionToState

      public void didTransitionToState​(UITableViewCellStateMask state)
    • dragStateDidChange

      public void dragStateDidChange​(UITableViewCellDragState dragState)
      Since:
      Available in iOS 11.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.
    • shouldBegin

      public boolean shouldBegin​(UIGestureRecognizer gestureRecognizer)
      Specified by:
      shouldBegin in interface UIGestureRecognizerDelegate
    • shouldRecognizeSimultaneously

      public boolean shouldRecognizeSimultaneously​(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
      Specified by:
      shouldRecognizeSimultaneously in interface UIGestureRecognizerDelegate
    • shouldRequireFailure

      public boolean shouldRequireFailure​(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
      Specified by:
      shouldRequireFailure in interface UIGestureRecognizerDelegate
    • shouldBeRequiredToFail

      public boolean shouldBeRequiredToFail​(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
      Specified by:
      shouldBeRequiredToFail in interface UIGestureRecognizerDelegate
    • shouldReceiveTouch

      public boolean shouldReceiveTouch​(UIGestureRecognizer gestureRecognizer, UITouch touch)
      Specified by:
      shouldReceiveTouch in interface UIGestureRecognizerDelegate
    • shouldReceivePress

      public boolean shouldReceivePress​(UIGestureRecognizer gestureRecognizer, UIPress press)
      Specified by:
      shouldReceivePress in interface UIGestureRecognizerDelegate
    • shouldReceiveEvent

      public boolean shouldReceiveEvent​(UIGestureRecognizer gestureRecognizer, UIEvent event)
      Specified by:
      shouldReceiveEvent in interface UIGestureRecognizerDelegate
      Since:
      Available in iOS 13.4 and later.