Instance Property


The refresh control used to update the table contents.


var refreshControl: UIRefreshControl? { get set }


The default value of this property is nil.

Assigning a refresh control to this property adds the control to the view controller’s associated interface. You do not need to set the frame of the refresh control before associating it with the view controller. The view controller updates the control’s height and width and sets its position appropriately.

The table view controller does not automatically update table’s contents in response to user interactions with the refresh control. When the user initiates a refresh operation, the control generates a valueChanged event. You must associate a target and action method with this event and use them to refresh your table’s contents.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software