Giter Site home page Giter Site logo

ccdraggablecard-master's Introduction

CCDraggableCard ✨

image

CCDraggableCard是左滑无感|右滑喜欢的卡牌视图。作者会不间断更新,如CCDraggableCard有幸被您搜到,请Star予以支持(^__^) ……

使用

CCDraggableCard中主视图CCDraggableContainer的使用类似UITableView, 拥有CCDraggableContainerDelegateCCDraggableContainerDataSource对CardView进行操作。

#####1.CCDraggableContainer初始化

@property (nonatomic, strong) CCDraggableContainer *container;

self.container = [[CCDraggableContainer alloc] initWithFrame:... style:CCDraggableStyleUpOverlay];
self.container.delegate = self;
self.container.dataSource = self;
[self.view addSubview:self.container];

#####2.刷新数据

[self.container reloadData];

#####3.协议

CCDraggableContainerDataSource

- (CCDraggableCardView *)draggableContainer:(CCDraggableContainer *)draggableContainer viewForIndex:(NSInteger)index;
- (NSInteger)numberOfIndexs;

CCDraggableContainer Delegate

- (void)draggableContainer:(CCDraggableContainer *)draggableContainer draggableDirection:(CCDraggableDirection)draggableDirection widthRatio:(CGFloat)widthRatio heightRatio:(CGFloat)heightRatio;
- (void)draggableContainer:(CCDraggableContainer *)draggableContainer cardView:(CCDraggableCardView *)cardView didSelectIndex:(NSInteger)didSelectIndex;
- (void)draggableContainer:(CCDraggableContainer *)draggableContainer finishedDraggableLastCard:(BOOL)finishedDraggableLastCard;

版本及功能

v.1.0

CCDraggableContainer通过代码创建

卡牌(滑动距离、左右方向、点击)

作者

刘泽琛, [email protected]

链接

1.🌟星光闪烁特效:https://github.com/liuzechen/CC_Twinkle

2.仿网易下拉刷新:https://github.com/liuzechen/CCEaseRefresh

ccdraggablecard-master's People

Contributors

liuzechen avatar

Watchers

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