美文网首页
swift UIRefreshControl 使用

swift UIRefreshControl 使用

作者: 小赛_刘 | 来源:发表于2021-02-19 08:14 被阅读0次

    private var refreshControl= UIRefreshControl()

    //添加刷新

     refreshControl.addTarget(self, action:#selector(refreshData), for: .valueChanged)

     refreshControl.attributedTitle = NSAttributedString(string:"松手刷新")

     casesTableView.addSubview(refreshControl)

    @objc func refreshData() {}

    相关文章

      网友评论

          本文标题:swift UIRefreshControl 使用

          本文链接:https://www.haomeiwen.com/subject/hzvoxltx.html