UIRefreshControl *refresh = [[UIRefreshControl alloc] init];

    //这里控制器集成UITableViewController所以是self.tableView

    [self.tableView addSubview:refresh];

    /**

     *  给下拉添加监控

     *  UIControlEventValueChanged

     */

    [refresh addTarget:self action:@selector(loadNewstatuses:) forControlEvents:UIControlEventValueChanged];

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-11-13
  • 2022-02-24
  • 2022-12-23
  • 2021-11-22
  • 2021-11-22
  • 2021-06-03
猜你喜欢
  • 2022-01-07
  • 2021-11-09
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-05-13
相关资源
相似解决方案