UIRefresh object provides a standard control that can be used to initiate the refreshing of a table view’s contents. You link a refresh control to a table through an associated table view controller object. The table view controller handles the work of adding the control to the table’s visual appearance and managing the display of that control in response to appropriate user gestures.
- iOS 6.0+
In addition to assigning a refresh control to a table view controller’s
refresh property, you must configure the target and action of the control itself. The control does not initiate the refresh operation directly. Instead, it sends the
value event when a refresh operation should occur. You must assign an action method to this event and use it to perform whatever actions are needed.
UITable object that owns a refresh control is also responsible for setting that control’s frame rectangle. Thus, you do not need to manage the size or position of a refresh control directly in your view hierarchy.
For information about basic view behaviors, see View Programming Guide for iOS.