SkillAgentSearch skills...

YCRefreshControl

One based on UIScrollView lightweight, easy to use on the drop-down refresh.

Install / Use

/learn @liyuechun/YCRefreshControl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

YCRefreshControl

           ___                   __
          / (_)_ ____ _____ ____/ /  __ _____
         / / / // / // / -_) __/ _ \/ // / _ \
        /_/_/\_, /\_,_/\__/\__/_//_/\_,_/_//_/
            /___/

##YCRefreshControl是什么? 这是一款基于UIScrollView的轻量级,简易的的零配置的上下拉刷新控件。

##YCRefreshControl效果展示

<img src="gif/YCRefresh.gif"/>

##YCRefreshControl使用方法?

  • 下载demo,直接将YCRefreshControl文件夹拖拽到工程中,在您要使用刷新的控制器里面直接导入YCRefreshControl.h头文件即可。

  • 因为UICollectionView,UITableView都是UIScrollView的子类,所以UIScrollView,UICollectionView,UITableView的使用方法一样

      [scrollView setRefreshAction:^{
            //拖动触发或者手动触发
      }];
     
    
  • UIWebView不是UIScrollView的子类,但是UIWebView有一个scrollView属性, UIWebView的使用方法如下。

      UIScrollView *scrollView = webView.scrollView;  
      
      [scrollView setRefreshAction:^{
            //拖动触发或者手动触发
      }];
     
    

##手动触发

  • 开始刷新 [scrollView beginRefresh];
  • 停止刷新 [scrollView endRefresh];

##有问题反馈 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流

##您的鼓励是我前进的动力 在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。有钱的捧个钱场,没钱的回家拿钱捧个钱场,star一下。

##项目贡献者

<table> <tr align = 'center' height = '50'> <td width = '150' height = '50'>项目贡献者</td> <td width = '150' height = '50'>联系QQ</td> </tr> <tr align = 'center' height = '50'> <td width = '150' height = '50'>黎跃春[笑傲人生]</td> <td width = '150' height = '50'>939442932</td> </tr> <tr align = 'center' height = '50'> <td width = '150' height = '50'>王广威</td> <td width = '150' height = '50'>524968369</td> </tr> </table>

##TODO

  • 上拉[快刷][半个月后推出]
  • 提供多种刷新样式
  • 提供刷新自定义接口
  • 支持CocoaPods
View on GitHub
GitHub Stars183
CategoryDevelopment
Updated10mo ago
Forks25

Languages

Objective-C

Security Score

72/100

Audited on May 6, 2025

No findings