Pull to Refresh (ios)

前端 未结 8 1085
清酒与你
清酒与你 2020-12-07 22:08

I recently implemented pull to refresh here: https://github.com/leah/PullToRefresh. It kind of works however it gets stuck with a spinning activity indicator. Their is also

8条回答
  •  孤街浪徒
    2020-12-07 22:43

    You can use : https://github.com/ngocbinh02/httablekit

    Support iOS 5.0 or later

    Pull to refresh tableview

        import 
    
    ....
    
    //like UIRefreshControll
    
    [tableview setPullToRefreshControlType:UITableViewRefreshControlTypeSystem]; 
    
    [tableview  setPullToRefreshModeEnable:YES beginHandler:^{
    
          // to do here when pulling to refresh
    }];
    

    Dismiss pull to refresh tableview

        import 
    
    ....
    
    [tableview  dismissPullToRefreshEndHandler:^{
    
          // to do here when dismissing     
    }];
    

提交回复
热议问题