Pull-To-Refresh UIRefreshControl providing the refreshing control on ScrollView, TableView and CollectionView. this tutorial we are study how to use UIRefreshControl over the tableview. UIRefreshControl is use over tableView whenever the webservice data display and reload on tableview. Full Code of UIRefreshControl + UITableView: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 import UIKit class ViewController : UIViewController , UITableViewDelegate , UITableViewDataSource { @IBOutlet var refreshtable : UITableView ! var refreshControl = UIRefreshControl () let data : [ String ] = [ "Apple" , "HP" , "Accer" ] override func viewDidLoad () { super . viewDidLoad () // Refresh control add in tableview. refreshControl . attributedTitle = NSAttributedString ( string : "Pull to refresh"...
Programming Tutorials For IOS and React Native