Skip to content

HavenWWH/CDDraggableCard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDDraggableCard

CI Status Version License Platform

Example

[self.view addSubview: self.draggableContainer];

[self.draggableContainer reloadData];

// 选中item方法

(void)draggableContainer:(CDDraggableContainer *)draggableContainer cardView:(CDDraggableCardView *)cardView didSelectIndex:(NSInteger)didSelectIndex {

}

// 每次切换都会执行此方法

(void)draggableContainer:(CDDraggableContainer *)draggableContainer draggableDirection:(CDDraggableDirection)draggableDirection widthRatio:(CGFloat)widthRatio heightRatio:(CGFloat)heightRatio {

}

// 卡片画完后加载, 一般用于加载分页

(void)draggableContainer:(CDDraggableContainer *)draggableContainer finishedDraggableLastCard:(BOOL)finishedDraggableLastCard {

}

Requirements

Installation

CDDraggableCard is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CDDraggableCard'

License

CDDraggableCard is available under the MIT license. See the LICENSE file for more info.

About

类似探探卡片滑动效果

Resources

License

Stars

Watchers

Forks

Packages

No packages published