UITableView
class UITableView : UIScrollView, NSCoding, UIDataSourceTranslating
-
Initiates a layout pass of UITableView and its items. Necessary for calculating new cell heights and animations when the internal state of a cell changes and needs to reflect them immediately.
Declaration
Swift
public func render()
-
Deselects the previously selected row, with an option to animate the deselection.
Declaration
Swift
public func deselectLastSelectedRow(animated: Bool)
Parameters
animated
true
to animate the deselection, orfalse
if the change should be immediate. -
Find the
IndexPath
for a particular view. Returnsnil
if the view is not an instance of, or a subview ofUITableViewCell
, or if that cell is not a child ofself
Declaration
Swift
public func indexPath(for view: UIView) -> IndexPath?
Parameters
view
The view to find the
IndexPath
.Return Value
The
IndexPath
of the view in theUITableView
ornil
if it could not be found.