Link to home
Start Free TrialLog in
Avatar of Bhuvaneswari Lakshminarayanan
Bhuvaneswari Lakshminarayanan

asked on

i need to add a refresher to the application

i need to refresh my table view and i m using this code .
 refresher = UIRefreshControl()
        refresher.attributedTitle = NSAttributedString(string: "pull to refresh")
        refresher.addTarget(self, action: #selector(UITableViewController.populate), for: UIControlEvents.valueChanged)
        tableview.addSubview(refresher)

In this it is not taking the UITableviewcontoller .its saying error like
 "Type 'UITableViewController' has no member 'populate'"
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.