Giter Site home page Giter Site logo

ycrefreshcontrol's Introduction

YCRefreshControl

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

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

##YCRefreshControl使用方法?

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

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

      [scrollView setRefreshAction:^{
      
          dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
              
              
          });
      }];
    
  • UIWebView不是UIScrollView的子类,但是UIWebView有一个scrollView属性, UIWebView的使用方法如下。

      UIScrollView *scrollView = webView.scrollView;  
      
      [scrollView setRefreshAction:^{
         
      }];
    

##手动触发

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

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

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

##项目贡献者

项目贡献者 联系QQ
黎跃春[笑傲人生] 939442932
王广威 524968369

##TODO

  • 上拉[快刷][半个月后推出]
  • 提供多种刷新样式
  • 提供刷新自定义接口
  • 支持CocoaPods

ycrefreshcontrol's People

Contributors

liyuechun avatar

Watchers

Harimoto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.