卡片式布局(探探附近/QQ配对),可以设置卡片堆叠效果,可以设置循环效果。 有建议可以联系QQ交流群:1101980843,喜欢就给个star哦,谢谢关注!
pod 'GXCardView'
- 其它版本 Swift版本
pod 'GXCardView-Swift'
- (NSInteger)numberOfCountInCardView:(GXCardView *)cardView;
- (GXCardViewCell *)cardView:(GXCardView *)cardView cellForRowAtIndex:(NSInteger)index;
- (void)cardView:(GXCardView *)cardView didRemoveCell:(GXCardViewCell *)cell forRowAtIndex:(NSInteger)index direction:(GXCardCellSwipeDirection)direction;
- (void)cardView:(GXCardView *)cardView didRemoveLastCell:(GXCardViewCell *)cell forRowAtIndex:(NSInteger)index;
- (void)cardView:(GXCardView *)cardView didDisplayCell:(GXCardViewCell *)cell forRowAtIndex:(NSInteger)index;
- (void)cardView:(GXCardView *)cardView didMoveCell:(GXCardViewCell *)cell forMovePoint:(CGPoint)point direction:(GXCardCellSwipeDirection)direction;
- (void)reloadData;
- (void)reloadDataAnimated:(BOOL)animated;
- (void)reloadMoreData;
- (void)reloadMoreDataAnimated:(BOOL)animated;
- (void)reloadDataFormIndex:(NSInteger)index;
- (void)reloadDataFormIndex:(NSInteger)index animated:(BOOL)animated;
/** 卡片可见数量(默认3) */
@property (nonatomic, assign) NSInteger visibleCount;
/** 行间距(默认10.0,可自行计算scale比例来做间距) */
@property (nonatomic, assign) CGFloat lineSpacing;
/** 列间距(默认10.0,可自行计算scale比例来做间距) */
@property (nonatomic, assign) CGFloat interitemSpacing;
/** 侧滑最大角度(默认15°) */
@property (nonatomic, assign) CGFloat maxAngle;
/** 最大移除距离(默认屏幕的1/4) */
@property (nonatomic, assign) CGFloat maxRemoveDistance;
/** 是否重复(默认NO) */
@property (nonatomic, assign) BOOL isRepeat;
MIT