Why UIRefreshControl jumping?

前端 未结 4 1991
花落未央
花落未央 2020-12-18 01:35

I try to use the UIRefreshControl with swift 1.2 and works fine except the UI. It is jumping and I dont know why. Here is what I am doing:

class ViewControll         


        
4条回答
  •  余生分开走
    2020-12-18 01:40

    Try this One will working good

    var tableViewController = UITableViewController(style: UITableViewStyle.Plain)
    tableViewController.tableView = self.myTableView
    
    self.refreshControl = UIRefreshControl()
    self.refreshControl.addTarget(self, action: #selector(self.getConnections),forControlEvents: .ValueChanged)
    tableViewController.refreshControl = self.refreshControl
    

提交回复
热议问题