Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 1.49 KB

README.md

File metadata and controls

51 lines (26 loc) · 1.49 KB

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.