Giter Site home page Giter Site logo

wishzhouhe / animations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kittenyang/animations

0.0 2.0 0.0 1.49 MB

一些动画的飞机稿,都是一些单独分离出来的用于测试的子动画,现在统一归类一下。

License: MIT License

Objective-C 100.00%

animations's Introduction

Animations

一些动画的飞机稿,都是一些单独分离出来的用于测试的子动画,现在统一归类一下。

##1.AnimatedCurveDemo

弯曲弧线的下拉刷新,使用只需要两行代码

###Usage:

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];

    KYPullToCurveVeiw *headerView = [[KYPullToCurveVeiw alloc]initWithAssociatedScrollView:self.tableView withNavigationBar:YES];
    
    
    __weak KYPullToCurveVeiw *weakHeaderView = headerView;
    
    [headerView triggerPulling];
    
    [headerView addRefreshingBlock:^{
        
        //具体的操作
        //...
        
        double delayInSeconds = 2.0;
        dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
        dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
            
            [weakHeaderView stopRefreshing];
            
        });
        
    }];
    
}


animations's People

Contributors

kittenyang avatar

Watchers

James Cloos avatar miler 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.