You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Library/UIKit/UICollectionView+ReuseIdentifierProtocol.swift
+44-7
Original file line number
Diff line number
Diff line change
@@ -10,27 +10,64 @@ import Foundation
10
10
import UIKit
11
11
12
12
publicextensionUICollectionView{
13
+
/**
14
+
Returns a typed reusable cell object located by its identifier
15
+
16
+
- parameter identifier: The R.reuseIdentifier.* value for the specified cell.
17
+
- parameter indexPath: The index path specifying the location of the cell. The data source receives this information when it is asked for the cell and should just pass it along. This method uses the index path to perform additional configuration based on the cell’s position in the collection view.
18
+
19
+
- returns: A subclass of UICollectionReusableView or nil if the cast fails.
Returns a typed reusable supplementary view located by its identifier and kind.
27
+
28
+
- parameter elementKind: The kind of supplementary view to retrieve. This value is defined by the layout object.
29
+
- parameter identifier: The R.reuseIdentifier.* value for the specified view.
30
+
- parameter indexPath: The index path specifying the location of the cell. The data source receives this information when it is asked for the cell and should just pass it along. This method uses the index path to perform additional configuration based on the cell’s position in the collection view.
31
+
32
+
- returns: A subclass of UICollectionReusableView or nil if the cast fails.
0 commit comments