편집

다음을 통해 공유


UICollectionView Class

Definition

Efficiently presents multiple UIViews on the screen using flexible layouts.

[Foundation.Register("UICollectionView", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public class UICollectionView : UIKit.UIScrollView, IDisposable, UIKit.IUIDataSourceTranslating, UIKit.IUISpringLoadedInteractionSupporting
type UICollectionView = class
    inherit UIScrollView
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface IUIDataSourceTranslating
    interface IUISpringLoadedInteractionSupporting
Inheritance
Attributes
Implements

Remarks

The UICollectionView is a container view that allows the application developer to lay out multiple items on the screen with more flexibility than is provided by a UITableView. It is a subtype of UIScrollView, so the layouts can span multiple pages. The layout used by the UICollectionView is controlled by it's CollectionViewLayout property.

A UICollectionView must have a UICollectionViewLayout. The most commonly-used UICollectionViewLayout is UICollectionViewFlowLayout, which lays out its content views either horizontally or vertically until it reaches the bounds and then wraps around.

These grid-like layouts are very flexible and customizable, but because UICollectionView and UICollectionViewLayout are independent, simply providing a different UICollectionViewLayout can easily change the presentation style of the UICollectionView. The application developer can create custom layouts to support whatever layout can be imagined.

The patterns for providing data to a UICollectionView to create items and interact with those items follow the same delegation and data source patterns commonly used in iOS development.

Collection Views are more powerful than UITableViews, which are limited to a single column, but are also more complex. UITableView has certain built-in behaviors such as an editing mode, row animations, and easy-to-use headers and footers. If a UITableView satisfies the application's UI requirements, the application developer should prefer to use the UITableView.

A UICollectionView user interface involves a collaboration of different objects with different concerns:

ConcernDescriptionTypes
Content ManagementThe overall contents of the user interface

UICollectionView, UICollectionViewController

LayoutPosition and layout attributes of various component views

UICollectionViewLayout, UICollectionViewLayoutAttributes, UICollectionViewUpdateItem

Data ManagementData and event-management

UICollectionViewDataSource, UICollectionViewDelegate

Reusable viewsDefine component elements of the overall UICollectionView

UICollectionViewCell, UICollectionReusableView

UICollectionView Basics

A UICollectionView is made up of three different types of UIViews:

RoleDescriptionType
CellsData-driven views, each of a single item in the data set. UICollectionViewCell
Supplementary viewsData-driven views, each associated with a section. For example, header and footer views. UICollectionReusableView
Decoration viewsNon-data-driven views associated with the layout and overall view appearance. For example, the scrolling bookshelves background in the iBooks app and the Newsstand. UICollectionReusableView

The relationship between these three types of views is shown in the following image, based on the "Introduction to Collection Views" article. The cells are the orange-and-white rectangles and are laid out in a line. An instance of a supplementary view with a BackgroundColor of Yellow separates sections, while a single decoration view provides a background for the entire UICollectionView.

(Background image by NASA, https://visibleearth.nasa.gov/)

Understanding the reuse queue

The UICollectionView is designed to work with large datasets. The two major attributes of this design are the "reuse queue" for component views and the UICollectionViewDataSource interface. The reuse queue is a system-managed collection of component views that minimizes memory consumption by only allocating those views that are on-screen and a handful of "next visible" screens. The following illustration, based on a variation of the code from the "Introduction to Collection Views" sample, shows how efficient this reuse queue is: 204 views are visible but the reuse queue only consists of 217 instances of the AnimalCell subtype of UICollectionViewCell. The dataset numbers in the thousands, but the number of actually allocated view components is minimal.

Not only does the reuse queue only have a minimal number of component views, it reuses component views rather than allocating and releasing off-screen views. This helps greatly with performance, but has important consequences for the application developer:

The following code, from the "Introduction to Collection Views" sample, shows how component view types are registered and reassigned. Each component role type has an NSString identifier (for instance, the type AnimalCell, which is used for the cell role, has the identifier "AnimalCell", the others are not shown). The methods RegisterClassForCell(Type, String) and RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, String) register the classes for the cell and supplementary view roles, while the method RegisterClassForDecorationView(Type, NSString) registers the decoration view with the UICollectionViewLayout that is the UICollectionView's' CollectionViewLayout property.

It is very important that you provide a constructor that takes a RectangleF argument in any subclasses that you register with UICollectionView. This is required because the classes are actually allocated by the Objective-C runtime, and you must initialize them. The following example shows the expected constructor that you should provide:

public class AnimalCell : UICollectionViewCell
{
[Export ("initWithFrame:")]
  public AnimalCell (RectangleF frame) : base (frame) {}
}

The overridden methods GetCell(UICollectionView, NSIndexPath) and GetViewForSupplementaryElement(UICollectionView, NSString, NSIndexPath) show the re-assignment code. The NSIndexPath that is passed as the indexPath argument contains the Section and Item integers that allow the application developer to locate a specific data item and appropriately assign the cell's relevant visual elements. (Application developers familiar with UITableView will note that Item and Row are the same value.)

Since these methods, particularly the GetCell(UICollectionView, NSIndexPath) method, are called many times during scrolling, the application developer should avoid unnecessary processing during these calls.

public class AnimalCell : UICollectionViewCell
{
  private static NSString classId = new NSString ("AnimalCell");
  public static NSString ClassId { get { return classId; } }

[Export ("initWithFrame:")]
  public AnimalCell (RectangleF frame) : base (frame) {}

//..etc...
}


public class SimpleCollectionViewController : UICollectionViewController
{
  public override void ViewDidLoad ()
  {
    Base.ViewDidLoad ();

    var cv = CollectionView;

    cv.RegisterClassForCell (typeof(AnimalCell), AnimalCell.ClassId);
    cv.RegisterClassForSupplementaryView (typeof(HeaderView), UICollectionElementKindSection.Header, HeaderView.ClassId);
    cv.CollectionViewLayout.RegisterClassForDecorationView (typeof(DecorationView), DecorationView.ClassId);
  }

  public override UICollectionViewCell GetCell (UICollectionView collectionView, MonoTouch.Foundation.NSIndexPath indexPath)
  {
    var animalCell = (AnimalCell)collectionView.DequeueReusableCell (AnimalCell.ClassId, indexPath);
    var animal = animals [indexPath.Section * (animals.Count / SectionCount) + indexPath.Item];

    animalCell.Image = animal.Image;

    return animalCell;
  }


  public override UICollectionReusableView GetViewForSupplementaryElement (UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath)
  {
    var headerView = (HeaderView)collectionView.DequeueReusableSupplementaryView (elementKind, HeaderView.ClassId, indexPath);
    headerView.Text = "Supplementary View Section " + indexPath.Section.ToString ();
    return headerView;
  }
  //...etc...
}

Rather than registering program classes, application developers may choose to register nibs defined with XCode's Interface Builder. The relevant methods are shown in the following table.

RoleClass Registration MethodNib Registration Method
Cell RegisterClassForCell(Type, String) RegisterNibForCell(UINib, String)
Supplementary View RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, String) RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String)
Decoration View RegisterClassForDecorationView(Type, NSString) RegisterNibForDecorationView(UINib, NSString)

Handling events

To handle events associated with a UICollectionView, the application developer may subtype UICollectionViewDelegate and assign an instance to the Delegate property.

UICollectionView is a subtype of UIScrollView and UIScrollViewDelegate contains many of the same methods as UIScrollViewDelegate but is not a subtype of that class.

Selecting and highlighting in a UICollectionView follows this sequence:

User ActionUICollectionViewDelegate MethodsUICollectionViewCell Properties
Nothing touched Highlighted == false; Selected == false
Finger down in cell ShouldHighlightItem(UICollectionView, NSIndexPath) is called. If it returns false, processing stops.
ItemHighlighted(UICollectionView, NSIndexPath) is called. Highlighted == true; Selected == false
Finger up ShouldSelectItem(UICollectionView, NSIndexPath) is called. If it returns false, processing stops.
ItemSelected(UICollectionView, NSIndexPath) is called. ItemUnhighlighted(UICollectionView, NSIndexPath) is called.

Highlighted == false; Selected == true

Deselecting a UICollectionViewCell follows a similar sequence:

User ActionUICollectionViewDelegate MethodsUICollectionViewCell Properties
Nothing touched while some UICollectionViewCell is highlighted. Highlighted == false; Selected == true
Finger taps cell (Deselect gesture) ShouldDeselectItem(UICollectionView, NSIndexPath) is called. If it returns false, processing stops.
ItemDeselected(UICollectionView, NSIndexPath) is called. Highlighted == false; Selected == false

Constructors

UICollectionView(CGRect, UICollectionViewLayout)
UICollectionView(IntPtr)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

UICollectionView(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

UICollectionView(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Properties

AccessibilityActivationPoint

The screen coordinates for the accessibility element.

(Inherited from UIView)
AccessibilityAssistiveTechnologyFocusedIdentifiers (Inherited from UIResponder)
AccessibilityAttributedHint

An attributed string providing a brief description of the behavior of the accessibility element.

(Inherited from UIView)
AccessibilityAttributedLabel

A brief attributed string describing the purpose of the UIView.

(Inherited from UIView)
AccessibilityAttributedValue

An attributed string holding the value of the UIView, when it is different than the AccessibilityAttributedLabel.

(Inherited from UIView)
AccessibilityCustomActions

Allows methods to be added to AccessibilityCustomActions as accessibility-supporting supplementary actions.

(Inherited from UIResponder)
AccessibilityDragSourceDescriptors (Inherited from UIResponder)
AccessibilityDropPointDescriptors (Inherited from UIResponder)
AccessibilityElementsHidden

Whether the view's accessibility elements are visible.

(Inherited from UIView)
AccessibilityFrame

The Frame of the accessibility element, in screen coordinates.

(Inherited from UIView)
AccessibilityHint

A brief description of the action performed by the accessibility element.

(Inherited from UIView)
AccessibilityIdentifier

Uniquely identifies this for the purposes of accessibility.

(Inherited from UIView)
AccessibilityIgnoresInvertColors

Gets or sets whether the UIView will invert its colors in response to such an accessibility request.

(Inherited from UIView)
AccessibilityLabel

A localized identifier for the accessibility element.

(Inherited from UIView)
AccessibilityLanguage

The BCP 47 language tag of the language used to speak the accessibility element's components.

(Inherited from UIView)
AccessibilityNavigationStyle

Gets or sets the navigation style.

(Inherited from UIView)
AccessibilityPath

Allows the accessibility element to be non-rectangular.

(Inherited from UIView)
AccessibilityTraits

A bitmask of the UIAccessibilityTraits of this.

(Inherited from UIView)
AccessibilityValue

The value of the accessibility element.

(Inherited from UIView)
AccessibilityViewIsModal

Whether Voice Over should ignore sibling elements.

(Inherited from UIView)
AdjustedContentInset

Gets the insets that consider the content insets and the scroll view safe area.

(Inherited from UIScrollView)
AlignmentRectInsets

Adjustments to the Frame for use with Auto Layout.

(Inherited from UIView)
AllowsMultipleSelection

Specifies whether more than one UICollectionViewCell can be selected at a time.

AllowsSelection

Specifies whether an application user can select a UICollectionViewCell by tapping.

Alpha

Controls the transparency (alpha) value for the view.

(Inherited from UIView)
AlwaysBounceHorizontal

If set to true and Bounces is true, then bouncing will occur when horizontal scrolling reaches the end of the view.

(Inherited from UIScrollView)
AlwaysBounceVertical

If set to true and Bounces is true, then bouncing will occur when vertical scrolling reaches the end of the view.

(Inherited from UIScrollView)
Appearance

Strongly-typed property that returns the UIAppearance class for this class.

AutoresizingMask

A bitmask that specifies how the receiver should resize itself when its super-view's bounds change.

(Inherited from UIView)
AutosizesSubviews

Specifies whether the receiver should automatically resize its Subviews when the receiver's Bounds change.

(Inherited from UIView)
BackgroundColor

Sets the background color of the UIView.

(Inherited from UIView)
BackgroundView

A UIView that lies behind all other content and is automatically sized to fill the entire bounds.

BottomAnchor

The NSLayoutYAxisAnchor that defines the bottom of this UIView.

(Inherited from UIView)
Bounces

If set to true, then the scroll view will bounce at a content boundary.

(Inherited from UIScrollView)
BouncesZoom

If set to true and Bounces is true, then the scroll view will bounce around a zoom limit once zooming has exceeded that limit.

(Inherited from UIScrollView)
Bounds

The usable frame of the view, specified using the view's own coordinate system.

(Inherited from UIView)
CanBecomeFirstResponder

Determines whether this UIREsponder is willing to become the first responder.

(Inherited from UIResponder)
CanBecomeFocused

Whether this UIView can become the focused view.

(Inherited from UIView)
CanCancelContentTouches

If set to false, then the scroll view will not scroll as a result of finger movement once the tracking has started in the content view.

(Inherited from UIScrollView)
CanResignFirstResponder

Determines whether this UIResponder is willing to give up its first responder status.

(Inherited from UIResponder)
Center

The center of the view, in the container coordinate space.

(Inherited from UIView)
CenterXAnchor

The NSLayoutXAxisAnchor that defines the X-axis center of this UIView.

(Inherited from UIView)
CenterYAnchor

The NSLayoutYAxisAnchor that defines the Y-axis center of this UIView.

(Inherited from UIView)
Class (Inherited from NSObject)
ClassHandle

The handle for this class.

ClearsContextBeforeDrawing

Specifies that the drawing buffer be erased prior to calling DrawRect(CGRect, UIViewPrintFormatter)

(Inherited from UIView)
ClipsToBounds

Specifies whether the Subviews are confined to the Bounds of the receiver.

(Inherited from UIView)
CollectionViewLayout

The UICollectionViewLayout that will lay out this UICollectionView's elements.

CollisionBoundingPath

Gets the UIBezierPath to be used for collision detection.

(Inherited from UIView)
CollisionBoundsType

Gets the UIDynamicItemCollisionBoundsType describing the type of bounds used for collision detected.

(Inherited from UIView)
Constraints

The constraints used by Auto Layout on this UIView.

(Inherited from UIView)
ContentInset

The distance, in points, that the content of the scroll view is inset inside of the scroll view.

(Inherited from UIScrollView)
ContentInsetAdjustmentBehavior

Gets or sets a value that controls when safe area insets are added to content insets.

(Inherited from UIScrollView)
ContentLayoutGuide

Gets the scroll view's content layout guide.

(Inherited from UIScrollView)
ContentMode

Controls how the cached bitmap of a view must be rendered when the view's bounds change.

(Inherited from UIView)
ContentOffset

The offset for the origin of the content inside of a scroll view, relative to the origin of the scroll view itself.

(Inherited from UIScrollView)
ContentScaleFactor

The number of device pixels per logical coordinate point.

(Inherited from UIView)
ContentSize

The size of the content view, as measured in points.

(Inherited from UIScrollView)
ContentStretch

Developers should not use this deprecated property. Developers should use 'CreateResizableImage' instead.

(Inherited from UIView)
CoordinateSpace

Returns the coordinate space implemenation for the scrollview.

(Inherited from UIScrollView)
DataSource

The UICollectionViewDataSource responsible for populating this UICollectionView.

DebugDescription

A developer-meaningful description of this object.

(Inherited from NSObject)
Decelerating

If this property returns true, then scrolling is still occuring in the scroll view but the user is not dragging their finger.

(Inherited from UIScrollView)
DecelerationRate

This property returns a value that represents the deceleration rate once the user lifts their finger. There are two values, DecelerationRateFast and DecelerationRateNormal, that can serve as reference points for deceleration rates.

(Inherited from UIScrollView)
DelaysContentTouches

Specifies whether the UIScrollView can delay input to attempt to determine if a scrolling gesture has been made

(Inherited from UIScrollView)
Delegate

An instance of the UIKit.IUICollectionViewDelegate model class which acts as the class delegate.

Description

Description of the object, the Objective-C version of ToString.

(Inherited from NSObject)
DirectionalLayoutMargins

Gets or sets the layout margins for laying out content that respects the current language direction.

(Inherited from UIView)
DirectionalLockEnabled

If true, and the user begins scrolling in one axis (i.e. horizontally) then the scroll view disables scrolling in the other axis (i.e. vertically).

(Inherited from UIScrollView)
DirectionalPressGestureRecognizer

Developers should not use this deprecated property. Configuring the 'PanGestureRecognizer' for indirect scrolling automatically supports directional presses now, so this property is no longer useful.

(Inherited from UIScrollView)
DragDelegate

Gets or sets the delegate for responding to the user dragging items from the collection view.

Dragging

Returns true if the content has begun scrolling. Read-only.

(Inherited from UIScrollView)
DragInteractionEnabled

Gets or sets a Boolean value that tells whether drag and drop is enabled.

DropDelegate

Gets or sets the delegate for responding to the user dropping items to the collection view.

EffectiveUserInterfaceLayoutDirection

Gets the layout direction for arranging the view's contents.

(Inherited from UIView)
ExclusiveTouch

Restricts the event delivery to this view.

(Inherited from UIView)
FirstBaselineAnchor

A NSLayoutYAxisAnchor that defines a constraint based on the baseline of the first line of text in this UIView.

(Inherited from UIView)
Focused

Whether the UIView is the focused view.

(Inherited from UIView)
FocusItemContainer

Gets the focus container that provides spatial information to child focus items.

(Inherited from UIView)
Frame

Coordinates of the view relative to its container.

(Inherited from UIView)
FrameLayoutGuide

Gets the scroll view's content layout guide.

(Inherited from UIScrollView)
GestureRecognizers

The array of UIGestureRecognizers for this UIView.

(Inherited from UIView)
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
HasActiveDrag

Gets a Boolean value that tells whether there is an active drag operation for the collection view.

HasActiveDrop

Gets a Boolean value that tells whether there is an active drop operation for the collection view.

HasAmbiguousLayout

Returns true if the Auto Layout for this UIView is ambiguous.

(Inherited from UIView)
HasUncommittedUpdates

Gets a Boolean value that tells whether the collection view is reordering items for a drop or has a placeholder view.

HeightAnchor

The NSLayoutDimension that defines the height of this UIView.

(Inherited from UIView)
Hidden

Specifies whether the UIView displays or not.

(Inherited from UIView)
IndexDisplayMode

Gets or sets a value that controls whether the index is automatically displayed or always hidden while the user scrolls.

(Inherited from UIScrollView)
IndexPathsForVisibleItems

Returns the NSIndexPaths of all visible items.

IndicatorStyle

The style of the scroll indicators.

(Inherited from UIScrollView)
InputAccessoryView

Custom view that can be attached when the object becomes the first responder.

(Inherited from UIResponder)
InputAccessoryViewController

Gets the custom accessory UIInputViewController to display when this UIResponder becomes the first responder.

(Inherited from UIResponder)
InputAssistantItem

Gets the assistant that will be used to configure the shortcut bar.

(Inherited from UIResponder)
InputView

Custom view to display when the object becomes the first responder. Read-only.

(Inherited from UIResponder)
InputViewController

Gets the custom UIInputViewController to display when this UIResponder becomes the first responder.

(Inherited from UIResponder)
InsetsLayoutMarginsFromSafeArea

Gets or sets a Boolean value that controls whether margins are adjusted to always fall within the safe area. Default is true.

(Inherited from UIView)
Interactions

Gets or sets the current set of interactions.

(Inherited from UIView)
IntrinsicContentSize

The size of the intrinsic content of the UIView.

(Inherited from UIView)
IsAccessibilityElement

Whether this is an accessibility element.

(Inherited from UIView)
IsDirectBinding (Inherited from NSObject)
IsFirstResponder

Returns whether this UIResponder is the First Responder.

(Inherited from UIResponder)
IsProxy (Inherited from NSObject)
KeyboardDismissMode

The manner in which the keyboard is dismissed at the start of dragging.

(Inherited from UIScrollView)
KeyCommands

The key commands that should trigger action on this UIResponder. Read-only.

(Inherited from UIResponder)
LastBaselineAnchor

A NSLayoutYAxisAnchor that defines a constraint based on the baseline of the first line of text in this UIView.

(Inherited from UIView)
Layer

The Core Animation layer used for rendering.

(Inherited from UIView)
LayoutGuides

The UILayoutGuide objects defined for this UIView.

(Inherited from UIView)
LayoutMargins

Lays out margins.

(Inherited from UIView)
LayoutMarginsGuide

Defines the margin attributes.

(Inherited from UIView)
LeadingAnchor

The NSLayoutXAxisAnchor that defines the leading edge of this UIView.

(Inherited from UIView)
LeftAnchor

The NSLayoutXAxisAnchor that defines the left edge of this UIView.

(Inherited from UIView)
MaskView

Returns mask view.

(Inherited from UIView)
MaximumZoomScale

The value of the maximum scale factor that can be applied to the content view.

(Inherited from UIScrollView)
MinimumZoomScale

The value of the minimum scale factor that can be applied to the content view.

(Inherited from UIScrollView)
MotionEffects

Current set of motion effects on this view.

(Inherited from UIView)
MultipleTouchEnabled

Controls whether the UIView can handle multitouch events.

(Inherited from UIView)
NextResponder

The next responder on the response chain

(Inherited from UIResponder)
Opaque

Determines whether the view is opaque or not.

(Inherited from UIView)
PagingEnabled

If true then scrolling will stop on paging boundaries of the content view; scrolling occurs a page at a time.

(Inherited from UIScrollView)
PanGestureRecognizer

The gesture recognizer for pan gestures. Read-only.

(Inherited from UIScrollView)
ParentFocusEnvironment

Gets the parent focus environment.

(Inherited from UIView)
PasteConfiguration

The UIPasteConfiguration supported by this object.

(Inherited from UIResponder)
PinchGestureRecognizer

The gesture recognizer for pinch gestures. Read-only.

(Inherited from UIScrollView)
PreferredFocusedView

Returns the UIView that should actually be focused.

(Inherited from UIView)
PreferredFocusEnvironments

An array of IUIFocusEnvironments that are recursively searched by the system to find the default focused view.

(Inherited from UIView)
PrefetchDataSource

Gets or sets the prefetch-capable source for this collection view.

PrefetchingEnabled

Gets or sets whether prefecting is enabled. If true, PrefetchDataSource must be set.

PreservesSuperviewLayoutMargins

Preserves layout margins for superview.

(Inherited from UIView)
ReadableContentGuide

An area that can be read by the user with minimal head moving.

(Inherited from UIView)
RefreshControl

If not null, the UIRefreshControl used to update the view contents.

(Inherited from UIScrollView)
RemembersLastFocusedIndexPath

Whether focus should return to the last-focused index path after it leaves and then re-enters the UICollectionView.

ReorderingCadence

Gets or sets the speed at which items are reordered to show drop locations.

RestorationIdentifier

If not null, indicates that the UIView supports state preservation and restoration.

(Inherited from UIView)
RetainCount

Returns the current Objective-C retain count for the object.

(Inherited from NSObject)
RightAnchor

The NSLayoutXAxisAnchor that defines the right edge of this UIView.

(Inherited from UIView)
SafeAreaInsets

Gets the insets that place the content so that navigation and tab bars, toolbars, and other content does not obscure the view of the content.

(Inherited from UIView)
SafeAreaLayoutGuide

Gets the layout guide for placing the content so that navigation and tab bars, toolbars, and other content does not obscure the view of the content.

(Inherited from UIView)
ScrollEnabled

If set to true then scrolling is enabled.

(Inherited from UIScrollView)
ScrollIndicatorInsets

How far inset the scroll indicators are from the scroll view's edges.

(Inherited from UIScrollView)
ScrollsToTop

If true, then the scroll view will jump to the top of the content when the user taps on the status bar.

(Inherited from UIScrollView)
Self (Inherited from NSObject)
SemanticContentAttribute

Specifies whether the UIView should maintain its layout or flip when used with a right-to-left layout.

(Inherited from UIView)
ShouldGroupAccessibilityChildren

Whether the UIView's children should be grouped for the purposes of voice-over, regardless of their position on the screen.

(Inherited from UIView)
ShouldScrollToTop

Delegate invoked by the object to get a value.

(Inherited from UIScrollView)
ShowsHorizontalScrollIndicator

If true, then the horizontal scroll bar will be visible when tracking.

(Inherited from UIScrollView)
ShowsVerticalScrollIndicator

If true, then the vertical scroll bar will be visible when tracking.

(Inherited from UIScrollView)
Source

An optional property that can substitute for the DataSource and Delegate properties

SpringLoaded

Gets or sets a Boolean value that controls whether the object participates in spring-loaded interactions.

Subviews

An array of UIViews that are contained within this UIView.

(Inherited from UIView)
Superclass (Inherited from NSObject)
SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
Superview

The UIView, if any, that contains this UIView in its Subviews.

(Inherited from UIView)
Tag

An integer that can be used to identify a specific UIView instance.

(Inherited from UIView)
TextInputContextIdentifier

An identifier indicating that this UIResponder should preserve its text input mode information. Read-only.

(Inherited from UIResponder)
TextInputMode

The text input mode for this UIResponder. Read-only.

(Inherited from UIResponder)
TintAdjustmentMode

The tint adjustment applied to this UIView or one of its parent views.

(Inherited from UIView)
TintColor

A highlight color which should be used to indicate interactive controls.

(Inherited from UIView)
TopAnchor

The NSLayoutYAxisAnchor that defines the top of this UIView.

(Inherited from UIView)
Tracking

Returns true if the user has touched the content and scrolling is about to begin.

(Inherited from UIScrollView)
TrailingAnchor

The NSLayoutXAxisAnchor that defines the leading edge of this UIView.

(Inherited from UIView)
TraitCollection

Returns a trait collection.

(Inherited from UIView)
Transform

The transform of the UIView, relative to the center of its bounds.

(Inherited from UIView)
TranslatesAutoresizingMaskIntoConstraints

Specifies whether the autoresizing mask should be translated into constraints for Auto Layout.

(Inherited from UIView)
UndoManager

The nearest shared NSUndoManager in the responder chain. Read-only.

(Inherited from UIResponder)
UserActivity

Action that encapsulates a user activity that is supported by this responder.

(Inherited from UIResponder)
UserInteractionEnabled

Determines whether input events are processed by this view.

(Inherited from UIView)
ViewForBaselineLayout

Returns the UIView upon which baseline constraints should be applied.

(Inherited from UIView)
ViewForFirstBaselineLayout

When overridden, allows the app dev to return a subview as the basis for baseline constraints.

(Inherited from UIView)
ViewForLastBaselineLayout

When overridden, allows the app dev to return a subview as the basis for baseline constraints.

(Inherited from UIView)
ViewForZoomingInScrollView

Delegate invoked by the object to get a value.

(Inherited from UIScrollView)
ViewPrintFormatter

Returns a UIViewPrintFormatter appropriate for the UIView.

(Inherited from UIView)
VisibleCells

An array of the currently-visible UICollectionViewCell.

VisibleSize

Gets the visible size of the scrollview container.

(Inherited from UIScrollView)
WeakDataSource

The data source that provides data for this UICollectionView.

WeakDelegate

An object that can respond to the delegate protocol for this type

WidthAnchor

The NSLayoutDimension that defines the horizontal extent of this UIView.

(Inherited from UIView)
Window

The UIWindow of the UIView.

(Inherited from UIView)
Zone (Inherited from NSObject)
ZoomBouncing

Returns true if the scroll view is bouncing back to the zoom scaling limits specified byP:UIKit.UIScrollView.MinimumScrollView and P:UIKit.UIScrollView.MaximumScrollView. Read-only.

(Inherited from UIScrollView)
Zooming

Returns true if the content view is zooming in or out. Read-only.

(Inherited from UIScrollView)
ZoomScale

The scale factor that is being applied to the content of a scroll view.

(Inherited from UIScrollView)

Methods

AccessibilityActivate()

Activates accessibility for this UIView, returning true on success.

(Inherited from UIView)
AccessibilityDecrement()

Tells the accessibility element to decrement the value of its content.

(Inherited from UIResponder)
AccessibilityElementDidBecomeFocused()

Indicates that an assistive technology has set its focus to this UIResponder.

(Inherited from UIResponder)
AccessibilityElementDidLoseFocus()

Indicates that an assistive technology has changed its focus from this UIResponder.

(Inherited from UIResponder)
AccessibilityElementIsFocused()

Indicates whether an assistive technology is focused on this UIResponder.

(Inherited from UIResponder)
AccessibilityIncrement()

Tells the accessibility element to increment the value of its content.

(Inherited from UIResponder)
AccessibilityPerformEscape()

Tells the accessibility system to dismiss a modal popover or hierarchically-displayed element.

(Inherited from UIResponder)
AccessibilityPerformMagicTap()

Toggles the application-defined "most important state" of the app.

(Inherited from UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection)

When overridden, allows the accessibility system to perform scrolling.

(Inherited from UIResponder)
ActionForLayer(CALayer, String)

Retrieves the default CAAction identified by that targets .

(Inherited from UIView)
Add(UIView)

This is an alias for AddSubview(UIView), but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.

(Inherited from UIView)
AddConstraint(NSLayoutConstraint)

Adds a constraint to the layout of the receiving view or its subviews.

(Inherited from UIView)
AddConstraints(NSLayoutConstraint[])

Adds multiple constraints to the layout of the receiving view or its subviews.

(Inherited from UIView)
AddGestureRecognizer(UIGestureRecognizer)

Adds a gesture recognizer to this view.

(Inherited from UIView)
AddInteraction(IUIInteraction)

Adds the interaction to the view.

(Inherited from UIView)
AddLayoutGuide(UILayoutGuide)

Adds the specified guide, allowing for Autolayout control without creating dummy views.

(Inherited from UIView)
AddMotionEffect(UIMotionEffect)

Adds the specified motion effect to the view.

(Inherited from UIView)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using NSString keyPath).   Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using string keyPath).   Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddSubview(UIView)

Adds the specified view as a subview of this view.

(Inherited from UIView)
AddSubviews(UIView[])

Convenience routine to add various views to a UIView.

(Inherited from UIView)
AdjustedContentInsetDidChange()

Method that is called when AdjustedContentInset changes.

(Inherited from UIScrollView)
AlignmentRectForFrame(CGRect)

Returns a customized alignment rectangle for Auto Layout.

(Inherited from UIView)
AppearanceWhenContainedIn(Type[])

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

AwakeFromNib()

Called after the object has been loaded from the nib file. Overriders must call base.AwakeFromNib().

(Inherited from NSObject)
BecomeFirstResponder()

Request the object to become the first responder.

(Inherited from UIResponder)
BeginInteractiveMovementForItem(NSIndexPath)

Developers call this method to have the cell at indexPath begin interactive movement.

BeginInvokeOnMainThread(Action) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
Bind(NSString, NSObject, String, NSDictionary) (Inherited from NSObject)
Bind(String, NSObject, String, NSDictionary)
Obsolete.
(Inherited from NSObject)
BindingInfo(String)
Obsolete.
(Inherited from NSObject)
BindingOptionDescriptions(String)
Obsolete.
(Inherited from NSObject)
BindingValueClass(String)
Obsolete.
(Inherited from NSObject)
BringSubviewToFront(UIView)

Moves the specified subview so that it appears in front of other Subviews.

(Inherited from UIView)
CancelInteractiveMovement()

Developers call this method to cancel interactive movement and have the cell return to its previous position.

CancelInteractiveTransition()

Cancels an interactive transition and returns to its original layout object.

CanPaste(NSItemProvider[])

Gets whether this can accept a paste operation by the .

(Inherited from UIResponder)
CanPerform(Selector, NSObject)

Determines if this UIResponder can perform the specified action. Typically used to probe for editing commands.

(Inherited from UIResponder)
Capture(Boolean)

Performs a screen-capture of the UIView.

(Inherited from UIView)
CellForItem(NSIndexPath)

Returns the UICollectionViewCell at the specified NSIndexPath.

CommitEditing() (Inherited from NSObject)
CommitEditing(NSObject, Selector, IntPtr) (Inherited from NSObject)
ConformsToProtocol(IntPtr)

Invoked to determine if this object implements the specified protocol.

(Inherited from NSObject)
ContentCompressionResistancePriority(UILayoutConstraintAxis)

Returns the resistance of an axis to compression below its intrinsic size.

(Inherited from UIView)
ContentHuggingPriority(UILayoutConstraintAxis)

Returns the resistance of an axis to expansion larger than its intrinsic size.

(Inherited from UIView)
ConvertPointFromCoordinateSpace(CGPoint, IUICoordinateSpace)

Converts from the coordinate system to thisUIView object's coordinate system.

(Inherited from UIView)
ConvertPointFromView(CGPoint, UIView)

Converts from the coordinate system of to this object's coordinate system.

(Inherited from UIView)
ConvertPointToCoordinateSpace(CGPoint, IUICoordinateSpace)

Converts from this object's coordinate system to that of .

(Inherited from UIView)
ConvertPointToView(CGPoint, UIView)

Converts from this object's coordinate system to that of .

(Inherited from UIView)
ConvertRectFromCoordinateSpace(CGRect, IUICoordinateSpace)

Converts from the coordinate system of to that of this object.

(Inherited from UIView)
ConvertRectFromView(CGRect, UIView)

Converts from the coordinate system used in to that of this object.

(Inherited from UIView)
ConvertRectToCoordinateSpace(CGRect, IUICoordinateSpace)

Converts from this object's coordinate system to that described by .

(Inherited from UIView)
ConvertRectToView(CGRect, UIView)

Converts from this object's coordinate system to that of .

(Inherited from UIView)
Copy()

Performs a copy of the underlying Objective-C object.

(Inherited from NSObject)
Copy(NSObject)

Indicates a "Copy" editing operation.

(Inherited from UIResponder)
Cut(NSObject)

Indicates a "Cut" editing operation.

(Inherited from UIResponder)
DangerousAutorelease() (Inherited from NSObject)
DangerousRelease() (Inherited from NSObject)
DangerousRetain() (Inherited from NSObject)
DecodeRestorableState(NSCoder)

Application developers can override this method to support state restoration.

(Inherited from UIView)
Delete(NSObject)

Indicates a "Delete" editing operation.

(Inherited from UIResponder)
DeleteItems(NSIndexPath[])

Deletes one or more items from the UICollectionView.

DeleteSections(NSIndexSet)

Deletes one or more sections from the UICollectionView.

DequeueReusableCell(NSString, NSIndexPath)

Returns a new or reused UICollectionReusableView.

DequeueReusableCell(String, NSIndexPath)

Returns a new or reused UICollectionReusableView.

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

DequeueReusableSupplementaryView(NSString, String, NSIndexPath)

Returns a UICollectionReusableView.

DequeueReusableSupplementaryView(UICollectionElementKindSection, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

DequeueReusableSupplementaryView(UICollectionElementKindSection, String, NSIndexPath)

Returns a UICollectionReusableView.

DeselectItem(NSIndexPath, Boolean)

Deselects the UICollectionViewCell at the specified NSIndexPath.

DidChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates a change occurred to the indexes for a to-many relationship.

(Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
DidChangeValue(String)

Indicates that a change occurred on the specified key.

(Inherited from NSObject)
DidHintFocusMovement(UIFocusMovementHint)

Called to tell the focused item in the UIView that the focus may change.

(Inherited from UIView)
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

Called after the UIView has either lost or received focus. (See also ShouldUpdateFocus(UIFocusUpdateContext).)

(Inherited from UIView)
DisplayLayer(CALayer) (Inherited from UIView)
Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean)

Releases the resources used by the UICollectionView object.

DoesNotRecognizeSelector(Selector)

Indicates that this object does not recognize the specified selector.

(Inherited from NSObject)
Draw(CGRect)

Draws the view within the passed-in rectangle.

(Inherited from UIView)
DrawLayer(CALayer, CGContext) (Inherited from UIView)
DrawRect(CGRect, UIViewPrintFormatter)

Developers should override this method if their appr draws the UIView contents.

(Inherited from UIView)
DrawViewHierarchy(CGRect, Boolean)

Renders the complete view hierarchy visible on screen.

(Inherited from UIView)
EncodeRestorableState(NSCoder)

Application developers can override this method to store state associated with the view.

(Inherited from UIView)
EncodeTo(NSCoder)

Encodes the state of the object on the provided encoder

EndInteractiveMovement()

Developers call this method to finish interactive movement.

Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
ExchangeSubview(nint, nint)

This method exchanges the indices of two UIViews within the Subviews array.

(Inherited from UIView)
ExerciseAmbiguityInLayout()

Randomly changes the Frame within an ambiguous set of Auto Layout constraints.

(Inherited from UIView)
ExposedBindings() (Inherited from NSObject)
FinishInteractiveTransition()

Finishes an interactive transition and installs the intended target layout.

FlashScrollIndicators()

This method will flash the scroll indicators for a short time.

(Inherited from UIScrollView)
FrameForAlignmentRect(CGRect)

Returns the frame resulting from applying the alignmentRect to the current Auto Layout constraints.

(Inherited from UIView)
GestureRecognizerShouldBegin(UIGestureRecognizer)

Determines if the specified gesture recognizers should be allowed to track touch events.

(Inherited from UIView)
GetAppearance(UITraitCollection)

Obtains the appearance proxy UICollectionView.UICollectionViewAppearance for the subclass of UICollectionView.

GetAppearance(UITraitCollection, Type[])

Obtains the appearance proxy UICollectionView.UICollectionViewAppearance for the subclass of UICollectionView.

GetAppearance<T>()

Obtains the appearance proxy UICollectionView.UICollectionViewAppearance for the subclass of UICollectionView.

GetAppearance<T>(UITraitCollection)

Obtains the appearance proxy UICollectionView.UICollectionViewAppearance for the subclass of UICollectionView.

GetAppearance<T>(UITraitCollection, Type[])

Obtains the appearance proxy UICollectionView.UICollectionViewAppearance for the subclass of UICollectionView that has the specified trait collection when the view is hosted in the specified hierarchy.

GetBindingInfo(NSString) (Inherited from NSObject)
GetBindingOptionDescriptions(NSString) (Inherited from NSObject)
GetBindingValueClass(NSString) (Inherited from NSObject)
GetConstraintsAffectingLayout(UILayoutConstraintAxis)

Returns the array of NSLayoutConstraint that are affecting the layout of the UIView along the specified axis.

(Inherited from UIView)
GetDataSourceIndexPath(NSIndexPath)
GetDataSourceSectionIndex(nint)
GetDictionaryOfValuesFromKeys(NSString[])

Retrieves the values of the specified keys.

(Inherited from NSObject)
GetEnumerator()

Returns an enumerator that lists all of the subviews in this view

(Inherited from UIView)
GetFocusItems(CGRect)

Returns a list of all the child focus items within the specified rectangle.

(Inherited from UIScrollView)
GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetIndexPathsForSelectedItems()

Returns an array of NSIndexPaths indicating which cells are currently selected.

GetIndexPathsForVisibleSupplementaryElements(NSString)

Returns the index path(s) of visible supplementary views of the specified elementKind.

GetLayoutAttributesForItem(NSIndexPath)

Returns the layout information for the specified UICollectionViewCell.

GetLayoutAttributesForSupplementaryElement(NSString, NSIndexPath)

Returns the layout information for the specified supplementary view.

GetMethodForSelector(Selector) (Inherited from NSObject)
GetNativeField(String)
Obsolete.
(Inherited from NSObject)
GetNativeHash() (Inherited from NSObject)
GetPresentationIndexPath(NSIndexPath)
GetPresentationSectionIndex(nint)
GetSupplementaryView(NSString, NSIndexPath)

Rerieves the supplementary view at the specified indexPath.

GetTargetForAction(Selector, NSObject)

Returns the object that responds to an action.

(Inherited from UIResponder)
GetVisibleSupplementaryViews(NSString)

Retrieves the array of visible header or footer supplementary views.

HitTest(CGPoint, UIEvent)

The frontmost visible, interaction-enabled UIView containing .

(Inherited from UIView)
IndexPathForCell(UICollectionViewCell)

Returns the NSIndexPath for the cell.

IndexPathForItemAtPoint(CGPoint)

Returns the NSIndexPath for the point.

Init() (Inherited from NSObject)
InitializeHandle(IntPtr) (Inherited from NSObject)
InitializeHandle(IntPtr, String) (Inherited from NSObject)
InsertItems(NSIndexPath[])

Creates new cells in the UICollectionView, animating as necessary.

InsertSections(NSIndexSet)

Creates new sections in the UICollectionView, animating as necessary.

InsertSubview(UIView, nint)

Inserts the specified subview at the specified location as a subview of this view.

(Inherited from UIView)
InsertSubviewAbove(UIView, UIView)

Inserts the specified view above the siblingSubvie in the view hierarchy

(Inherited from UIView)
InsertSubviewBelow(UIView, UIView)

Inserts the specified view below the siblingSubview in the view hierarchy.

(Inherited from UIView)
InvalidateIntrinsicContentSize()

Alerts the Auto Layout system that the intrinsic value of the UIView has changed.

(Inherited from UIView)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsDescendantOfView(UIView)

Returns true if this UIView is in the view's view hierarchy.

(Inherited from UIView)
IsEqual(NSObject) (Inherited from NSObject)
IsKindOfClass(Class) (Inherited from NSObject)
IsMemberOfClass(Class) (Inherited from NSObject)
LayoutIfNeeded()

Lays out the subviews if needed.

(Inherited from UIView)
LayoutMarginsDidChange()

Lays out changed subviews

(Inherited from UIView)
LayoutSublayersOfLayer(CALayer)

Called to indicate that the object's Bounds has changed.

(Inherited from UIView)
LayoutSubviews()

Lays out subviews.

(Inherited from UIView)
MakeTextWritingDirectionLeftToRight(NSObject)

Sets the direction in which text is written to be left-to-right.

(Inherited from UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject)

Sets the direction in which text is written to be right-to-left.

(Inherited from UIResponder)
MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MotionBegan(UIEventSubtype, UIEvent)

Method invoked when a motion (a shake) has started.

(Inherited from UIResponder)
MotionCancelled(UIEventSubtype, UIEvent)

Method invoked if the operating system cancels a motion (shake) event.

(Inherited from UIResponder)
MotionEnded(UIEventSubtype, UIEvent)

Method invoked when a motion (shake) has finished.

(Inherited from UIResponder)
MovedToSuperview()

Indicates the UIView has had its Superview property changed.

(Inherited from UIView)
MovedToWindow()

Indicates the UIView has had its Window property changed.

(Inherited from UIView)
MoveItem(NSIndexPath, NSIndexPath)

Moves an element from one location to another within the UICollectionView, animating as necssary.

MoveSection(nint, nint)

Moves a section from one location to another within the UICollectionView, animating as necessary.

MutableCopy()

Creates a mutable copy of the specified NSObject.

(Inherited from NSObject)
NeedsUpdateConstraints()

Indicates that the Auto Layout constraints of the UIView need updating.

(Inherited from UIView)
NumberOfItemsInSection(nint)

Returns the number of items in the specified section.

NumberOfSections()

Returns the number of sections in the UICollectionView.

ObjectDidEndEditing(NSObject) (Inherited from NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr)

Indicates that the value at the specified keyPath relative to this object has changed.

(Inherited from NSObject)
Paste(NSItemProvider[])

Called to perform a paste operation from .

(Inherited from UIResponder)
Paste(NSObject)

Indicates a "Paste" editing operation.

(Inherited from UIResponder)
PerformBatchUpdates(Action, UICompletionHandler)

Applies and simultaneously animates multiple manipulations of the UICollectionView.

PerformBatchUpdatesAsync(Action)

Applies and simultaneously animates multiple manipulations of the UICollectionView.

PerformSelector(Selector) (Inherited from NSObject)
PerformSelector(Selector, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSObject, Double)

Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.

(Inherited from NSObject)
PerformSelector(Selector, NSObject, Double, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSObject, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (Inherited from NSObject)
PerformUsingPresentationValues(Action)
PointInside(CGPoint, UIEvent)

Whether is inside thisUIView object's Bounds.

(Inherited from UIView)
PrepareForInterfaceBuilder() (Inherited from NSObject)
PressesBegan(NSSet<UIPress>, UIPressesEvent)

Indicates that a physical button has been pressed on a remote or game controller.

(Inherited from UIResponder)
PressesCancelled(NSSet<UIPress>, UIPressesEvent)

Indicates a physical button-press event has been cancelled due to a system event.

(Inherited from UIResponder)
PressesChanged(NSSet<UIPress>, UIPressesEvent)

Indicates that the Force value of the evt has changed.

(Inherited from UIResponder)
PressesEnded(NSSet<UIPress>, UIPressesEvent)

Indicates the ending of a press of a physical button on a remote or game controller.

(Inherited from UIResponder)
RegisterClassForCell(Type, NSString)

Specifies the type to be used to populate cells.

RegisterClassForCell(Type, String)

Specifies the type to be used to populate cells.

RegisterClassForSupplementaryView(IntPtr, NSString, NSString)

Specifies the type to be used to populate supplementary views.

RegisterClassForSupplementaryView(Type, NSString, NSString)

Specifies the type to be used to populate supplementary views.

RegisterClassForSupplementaryView(Type, NSString, String)

Specifies the type to be used to populate supplementary views.

RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, NSString)

Specifies the type to be used to populate supplementary views.

RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, String)

Specifies the type to be used to populate supplementary views.

RegisterNibForCell(UINib, NSString)

Specifies the type to be used to populate cells.

RegisterNibForCell(UINib, String)

Registers the Nib file that will be used for cell UI.

RegisterNibForSupplementaryView(UINib, NSString, NSString)

Specifies the type to be used to populate supplementary views.

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, NSString)

Specifies the nib to be used for populating the supplementary view.

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String)

Registers the Nib file that will be used for UI in supplementary views.

ReloadData()

Reloads all of the data for the UICollectionView.

ReloadInputViews()

Updates custom input and accessory views when this object is the first responder.

(Inherited from UIResponder)
ReloadItems(NSIndexPath[])

Reloads the data for the specified elements.

ReloadSections(NSIndexSet)

Reloads the data in the specified sections of the UICollectionView.

RemoteControlReceived(UIEvent)

Indicates that a remote-control event was received.

(Inherited from UIResponder)
RemoveConstraint(NSLayoutConstraint)

Removes an Auto Layout constraint from the UIView's Constraints.

(Inherited from UIView)
RemoveConstraints(NSLayoutConstraint[])

Removes multiple Auto Layout constraints from the UIView's Constraints.

(Inherited from UIView)
RemoveFromSuperview()

Detaches the UIView from its Superview.

(Inherited from UIView)
RemoveGestureRecognizer(UIGestureRecognizer)

Removes a gesture recognizer from the UIView's GestureRecognizers.

(Inherited from UIView)
RemoveInteraction(IUIInteraction)

Removes the interaction from the view.

(Inherited from UIView)
RemoveLayoutGuide(UILayoutGuide)

Removes guide from the LayoutGuides array.

(Inherited from UIView)
RemoveMotionEffect(UIMotionEffect)

Removes the specified motion effect to the view.

(Inherited from UIView)
RemoveObserver(NSObject, NSString)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, NSString, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
RemoveObserver(NSObject, String)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
ResignFirstResponder()

Called when this UIResponder has been asked to resign its first responder status.

(Inherited from UIResponder)
ResizableSnapshotView(CGRect, Boolean, UIEdgeInsets)

Efficiently creates a rendering of this object's current appearance within .

(Inherited from UIView)
RespondsToSelector(Selector)

Whether this object recognizes the specified selector.

(Inherited from NSObject)
RestoreUserActivityState(NSUserActivity)

Restores the state that is necessary for continuance of the specified user activity.

(Inherited from UIResponder)
SafeAreaInsetsDidChange()

Method that is called when the safe area changes.

(Inherited from UIView)
ScrollRectToVisible(CGRect, Boolean)

Scrolls so that is visible, optionally animating the scroll.

(Inherited from UIScrollView)
ScrollToItem(NSIndexPath, UICollectionViewScrollPosition, Boolean)

Scrollls the UICollectionView so that the desired element is visible.

Select(NSObject)

Indicates a "Select" editing operation.|b

(Inherited from UIResponder)
SelectAll(NSObject)

Indicates a "Select All" editing operation.

(Inherited from UIResponder)
SelectItem(NSIndexPath, Boolean, UICollectionViewScrollPosition)

Selects a UICollectionViewCell and optionally scrolls to make it visible.

SendSubviewToBack(UIView)

Moves a UIView so that it appears behind all its siblings.

(Inherited from UIView)
SetCollectionViewLayout(UICollectionViewLayout, Boolean)

Changes the UICollectionViewLayout used by the UICollectionView.

SetCollectionViewLayout(UICollectionViewLayout, Boolean, UICompletionHandler)

Sets the layout used by this UICollectionView.

SetCollectionViewLayoutAsync(UICollectionViewLayout, Boolean)

Sets the layout used by this UICollectionView.

SetContentCompressionResistancePriority(Single, UILayoutConstraintAxis)

Sets the resistance to compression below the UIView's IntrinsicContentSize.

(Inherited from UIView)
SetContentHuggingPriority(Single, UILayoutConstraintAxis)

Sets the resistance to expansion beyond the UIView's IntrinsicContentSize.

(Inherited from UIView)
SetContentOffset(CGPoint, Boolean)

Sets the distance between the content and the UIScrollView object.

(Inherited from UIScrollView)
SetNativeField(String, NSObject)
Obsolete.
(Inherited from NSObject)
SetNeedsDisplay()

Marks the view dirty and queues a redraw operation on it.

(Inherited from UIView)
SetNeedsDisplayInRect(CGRect)

Marks a region of the view as dirty and queues a redraw operation on that region.

(Inherited from UIView)
SetNeedsFocusUpdate()

When this is the active focus environment, requests a focus update, which can potentially change the PreferredFocusedView. (See also UpdateFocusIfNeeded().)

(Inherited from UIView)
SetNeedsLayout()

Sets whether subviews need to be rearranged before displaying.

(Inherited from UIView)
SetNeedsUpdateConstraints()

Indicates to the Auto Layout system that it must call UpdateConstraints().

(Inherited from UIView)
SetNilValueForKey(NSString)

Sets the value of the specified key to null.

(Inherited from NSObject)
SetValueForKey(NSObject, NSString)

Sets the value of the property specified by the key to the specified value.

(Inherited from NSObject)
SetValueForKeyPath(IntPtr, NSString)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

(Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString)

Sets the value of a property that can be reached using a keypath.

(Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString)

Indicates an attempt to write a value to an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary)

Sets the values of this NSObject to those in the specified dictionary.

(Inherited from NSObject)
SetZoomScale(nfloat, Boolean)

Sets the scale of the UIScrollView object's contents. (See ZoomScale)

(Inherited from UIScrollView)
ShouldUpdateFocus(UIFocusUpdateContext)

Called prior to the UIView either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

(Inherited from UIView)
SizeThatFits(CGSize)

Returns the SizeF that best fits this UIView.

(Inherited from UIView)
SizeToFit()

Moves and resizes the UIView so that it tightly encloses its Subviews

(Inherited from UIView)
SnapshotView(Boolean)

Creates a UIView that contains a snapshot image of the current view's contents.

(Inherited from UIView)
StartInteractiveTransition(UICollectionViewLayout, UICollectionViewLayoutInteractiveTransitionCompletion)

Changes the UICollectionView's layout using an interactive transition.

StartInteractiveTransitionAsync(UICollectionViewLayout)

Changes the UICollectionView's layout using an interactive transition.

StartInteractiveTransitionAsync(UICollectionViewLayout, UICollectionViewTransitionLayout)

Asynchronously starts an interactive transition to the new layout, with a reference to the result.

SubviewAdded(UIView)

Tells the view when subviews are added.

(Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize)

Calculates the smallest or largest size that this UIView can have that satisfies its Auto Layout constraints.

(Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize, Single, Single)

Returns the optimal size for this, based on constraints, and the fitting priority arguments.

(Inherited from UIView)
TintColorDidChange()

Called when the TintColor changes, such as when a UIActionSheet is displayed.

(Inherited from UIView)
ToggleBoldface(NSObject)

Toggles the use of a bold font.

(Inherited from UIResponder)
ToggleItalics(NSObject)

Toggles the use of an italic font.

(Inherited from UIResponder)
ToggleUnderline(NSObject)

Toggles the use of underlining.

(Inherited from UIResponder)
ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TouchesBegan(NSSet, UIEvent)

Sent when one or more fingers touches the screen.

(Inherited from UIResponder)
TouchesCancelled(NSSet, UIEvent)

Sent when the touch processing has been cancelled.

(Inherited from UIResponder)
TouchesEnded(NSSet, UIEvent)

Sent when one or more fingers are lifted from the screen.

(Inherited from UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet)

Called when the estimated properties of touches have been updated.

(Inherited from UIResponder)
TouchesMoved(NSSet, UIEvent)

Sent when one or more fingers move on the screen.

(Inherited from UIResponder)
TouchesShouldBegin(NSSet, UIEvent, UIView)

This method is provided so that the behaviour of a touch in the content view may be customized by a subclass.

(Inherited from UIScrollView)
TouchesShouldCancelInContentView(UIView)

This method controls if the touches of a content subview should be cancelled, which would allow dragging to start.

(Inherited from UIScrollView)
TraitCollectionDidChange(UITraitCollection)

Defines previous trait collection.

(Inherited from UIView)
Unbind(NSString) (Inherited from NSObject)
Unbind(String)
Obsolete.
(Inherited from NSObject)
UpdateConstraints()

Updates the Auto Layout constraints for the UIView.

(Inherited from UIView)
UpdateConstraintsIfNeeded()

Updates the constraints of the UIView and its Subviews.

(Inherited from UIView)
UpdateFocusIfNeeded()

If any focus environment has a pending update, this method forces an immediate focus update. Unlike SetNeedsFocusUpdate(), this method may be called by any UIView, whether it currently contains focus or not.

(Inherited from UIView)
UpdateInteractiveMovement(CGPoint)

Developers periodically call this method to set the position of the moving cell.

UpdateUserActivityState(NSUserActivity)

Updates a given user activity state.

(Inherited from UIResponder)
ValueForKey(NSString)

Returns the value of the property associated with the specified key.

(Inherited from NSObject)
ValueForKeyPath(NSString)

Returns the value of a property that can be reached using a keypath.

(Inherited from NSObject)
ValueForUndefinedKey(NSString)

Indicates an attempt to read a value of an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
ViewWithTag(nint)

Returns the UIView identified by the tag. May return null.

(Inherited from UIView)
WillChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates that the values of the specified indices in the specified key are about to change.

(Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
WillChangeValue(String)

Indicates that the value of the specified key is about to change.

(Inherited from NSObject)
WillDrawLayer(CALayer)

Called shortly before the is drawn.

(Inherited from UIView)
WillMoveToSuperview(UIView)

Called before the Superview changes.

(Inherited from UIView)
WillMoveToWindow(UIWindow)

This method is called by the runtime when assigning a new UIWindow to the UIView's view hierarcy. This method will be called on all UIViews in the hierarchy, not just the top-level UIView.

(Inherited from UIView)
WillRemoveSubview(UIView)

Called prior to the removal of a subview.

(Inherited from UIView)
ZoomToRect(CGRect, Boolean)

Zooms so that is visible.

(Inherited from UIScrollView)

Events

DecelerationEnded

Event raised by the object.

(Inherited from UIScrollView)
DecelerationStarted

Event raised by the object.

(Inherited from UIScrollView)
DidChangeAdjustedContentInset

Event raised by the object.

(Inherited from UIScrollView)
DidZoom

Event raised by the object.

(Inherited from UIScrollView)
DraggingEnded

Event raised by the object.

(Inherited from UIScrollView)
DraggingStarted

Event raised by the object.

(Inherited from UIScrollView)
ScrollAnimationEnded

Event raised by the object.

(Inherited from UIScrollView)
Scrolled

Event raised by the object.

(Inherited from UIScrollView)
ScrolledToTop

Event raised by the object.

(Inherited from UIScrollView)
WillEndDragging

Event raised by the object.

(Inherited from UIScrollView)
ZoomingEnded

Event raised by the object.

(Inherited from UIScrollView)
ZoomingStarted

Event raised by the object.

(Inherited from UIScrollView)

Extension Methods

ActionForLayer(ICALayerDelegate, CALayer, String)
DisplayLayer(ICALayerDelegate, CALayer)
DrawLayer(ICALayerDelegate, CALayer, CGContext)
LayoutSublayersOfLayer(ICALayerDelegate, CALayer)
WillDrawLayer(ICALayerDelegate, CALayer)

Method that is called when layer is about to be drawn.

GetDebugDescription(INSObjectProtocol)
GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

GetCollisionBoundingPath(IUIDynamicItem)

Returns the closed path that is used for collision detection.

GetCollisionBoundsType(IUIDynamicItem)

Returns a value that tells how collision bounds are specified.

GetFocusItemContainer(IUIFocusEnvironment)

Gets the focus container for the environment.

GetParentFocusEnvironment(IUIFocusEnvironment)

Gets the parent focus environment.

GetPreferredFocusEnvironments(IUIFocusEnvironment)

Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus.

DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

Called when a focus change may soon happen.

GetFrame(IUIFocusItem)

Returns the frame in the reference coordinate space of the containing IUIFocusItemContainer.

CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

Performs the paste.

DecreaseSize(UIResponder, NSObject)

A hardware keyboard request (Command-minus) to decrease the size of the UIResponder.

IncreaseSize(UIResponder, NSObject)

A hardware keyboard request (Command-plus) to increase the size of the UIResponder.

EndEditing(UIView, Boolean)

Applies to

See also