iOS Developer Library

Developer

UIKit Framework Reference UICollectionViewUpdateItem Class Reference

Options
Deployment Target:

On This Page
Language:

UICollectionViewUpdateItem

The UICollectionViewUpdateItem class describes a single change to make to an item in a collection view. You do not create instances of this class directly. When updating its content, the collection view object creates them and passes them to the layout object’s prepareForCollectionViewUpdates: method, which can use them to prepare the layout object for the upcoming changes.

Inheritance


Conforms To


Import Statement


import UIKit @import UIKit;

Availability


Available in iOS 6.0 and later.
  • Constants indicating the type of action being performed on an item.

    Declaration

    Swift

    enum UICollectionUpdateAction : Int { case Insert case Delete case Reload case Move case None }

    Objective-C

    enum { UICollectionUpdateActionNone, UICollectionUpdateActionInsert, UICollectionUpdateActionDelete, UICollectionUpdateActionReload, UICollectionUpdateActionMove }; typedef NSUInteger UICollectionUpdateAction;

    Constants

    • None

      UICollectionUpdateActionNone

      Take no action on the item.

      Available in iOS 6.0 and later.

    • Insert

      UICollectionUpdateActionInsert

      Insert the item into the collection view.

      Available in iOS 6.0 and later.

    • Delete

      UICollectionUpdateActionDelete

      Remove the item from the collection view.

      Available in iOS 6.0 and later.

    • Reload

      UICollectionUpdateActionReload

      Reload the item, which consists of deleting and then inserting the item.

      Available in iOS 6.0 and later.

    • Move

      UICollectionUpdateActionMove

      Move the item from its current location to a new location.

      Available in iOS 6.0 and later.

    Import Statement

    import UIKit

    Availability

    Available in iOS 6.0 and later.