Instance Method

deletePlaceholder()

Removes an unneeded placeholder cell altogether from the collection view.

Required.

Declaration

func deletePlaceholder() -> Bool

Return Value

true if the placeholder cell was removed, or false if the cell was no longer in the collection view.

Discussion

Use this method to remove a placeholder cell without swapping in a new cell. You might call this method if the user chooses to undo the insertion of a cell or if the contents of the collection view changed.