Git Product home page Git Product logo

sdrefreshview's Introduction

SDRefreshView

简单易用的上拉和下拉刷新(多版本细节适配)

1.导入主头文件

#import "SDRefresh.h"

2.创建并设置 (只需3步)

(1)SDRefreshHeaderView *refreshHeader = [SDRefreshHeaderView refreshView];

(2)[refreshHeader addToScrollView:目标tableview];  //加入到目标tableview,默认是在navigationController环境下,如果不是在此环境下,请设置 refreshHeader.isEffectedByNavigationController = NO;

(3)[refreshHeader addTarget: refreshAction:加载内容的方法] 或者 refreshHeader.beginRefreshingOperation = ^{} 任选其中一种即可

PS:

  1. 加载数据完成后调用 [refreshHeader endRefreshing];
  2. 如果需要一进入就自动加载一次数据,请调用[refreshHeader beginRefreshing];
  3. 默认是在navigationController环境下,如果不是在此环境下,请设置 refreshHeader.isEffectedByNavigationController = NO;

sdrefreshview's People

Contributors

gsdios avatar

Watchers

heliang 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.