1 Star 1 Fork 0

yanjinlin / CCDraggableCard-Master

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

CCDraggableCard :sparkles:

image

CCDraggableCard是左滑无感|右滑喜欢的卡牌视图。作者会不间断更新,如CCDraggableCard有幸被您搜到,请Star予以支持(^__^) …… 目前仅支持代码创建自定义CardView, Xib创建正在完善

使用

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通过代码创建

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

联系作者

1040981145@qq.com

链接

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

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

The MIT License (MIT) Copyright (c) 2016 LiuZeChen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

类似陌陌探探中可滑动的卡牌视图 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/yanjlToSelice/CCDraggableCard-Master.git
git@gitee.com:yanjlToSelice/CCDraggableCard-Master.git
yanjlToSelice
CCDraggableCard-Master
CCDraggableCard-Master
master

搜索帮助