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
{{ message }}
This repository was archived by the owner on Sep 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Library/UIKit/UITableView+ReuseIdentifierProtocol.swift
+45-4
Original file line number
Diff line number
Diff line change
@@ -10,27 +10,68 @@ import Foundation
10
10
import UIKit
11
11
12
12
publicextensionUITableView{
13
+
/**
14
+
Returns a typed reusable table-view cell object for the specified reuse identifier and adds it to the table.
15
+
16
+
- parameter identifier: A R.reuseIdentifier.* value identifying the cell object to be reused.
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 table view.
18
+
19
+
- returns: The UITableViewCell subclass with the associated reuse identifier or nil if it couldn't be casted correctly.
20
+
21
+
- precondition: You must register a class or nib file using the registerNib: or registerClass:forCellReuseIdentifier: method before calling this method.
Returns a typed reusable table-view cell object for the specified reuse identifier and adds it to the table.
29
+
30
+
- parameter identifier: A R.reuseIdentifier.* value identifying the cell object to be reused.
31
+
32
+
- returns: The UITableViewCell subclass with the associated reuse identifier or nil if it couldn't be casted correctly.
33
+
34
+
- precondition: You must register a class or nib file using the registerNib: or registerClass:forCellReuseIdentifier: method before calling this method.
Returns a typed reusable header or footer view located by its identifier.
42
+
43
+
- parameter identifier: A R.reuseIdentifier.* value identifying the header or footer view to be reused.
44
+
45
+
- returns: A UITableViewHeaderFooterView object with the associated identifier or nil if no such object exists in the reusable view queue or if it couldn't be cast correctly.
0 commit comments