I have created a UIRefreshcontrol in my tableviewcontroller as follows in the viewdidload method :
refresh = [UIRefreshControl.alloc init]; refresh.a
SWIFT 4:
In ViewdidLoad()
someCollectionView or someTableView
someCollectionView.refreshControl?.addSubview(refreshControl) someCollectionView.refreshControl?.sendSubview(toBack: refreshControl)
Worked perfectly for me.