UIRefreshControl

class UIRefreshControl : UIControl
  • SwifterSwift: Programatically begin refresh control inside of UITableView.

    Declaration

    Swift

    func beginRefreshing(in tableView: UITableView, animated: Bool, sendAction: Bool = false)

    Parameters

    tableView

    UITableView instance, inside which the refresh control is contained.

    animated

    Boolean, indicates that is the content offset changing should be animated or not.

    sendAction

    Boolean, indicates that should it fire sendActions method for valueChanged UIControlEvents