UITableView
public extension UITableView
-
Reloads visibile cells
Declaration
Swift
@objc func reloadVisibleCells() -
Reload visible cells at indexPaths
Declaration
Swift
@objc func reloadVisibleCells(at indexPaths: [IndexPath])Parameters
indexPathsAn array of indexPaths objects identifying the rows to reload.
-
Scrolls to first tableView row
Declaration
Swift
@objc func scrollToFirstItem(animated: Bool = true)Parameters
animatedtrue if you want to animate the change in position; false if it should be immediate.
-
Removes header if tableView style is grouped
Declaration
Swift
@objc func removeHeaderWhenGrouped()
-
Registers cell to tableView
Declaration
Swift
func registerCell(with cellIdentifier: String)Parameters
cellIdentifierThe reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.
-
Hides empty cells at the bottom
Declaration
Swift
@objc func hideEmptyCells()
View on GitHub
UITableView Extension Reference