Latest 0.0.1
Homepage https://github.com/yuyedaidao/YQSweepCardView
License MIT
Platforms ios 6.0
Authors

仿淘宝‘猜你喜欢’展示卡片

效果图

以后优化动画效果

使用

视图可以通过xib拖的方式

然后

[self.cardView registerNib:[UINib nibWithNibName:@"MyCard" bundle:nil] forItemReuseIdentifier:@"B"];
self.cardView.dataSource = self;
self.cardView.itemCount = 5;
[self.cardView reloadData];

最后

实现代理方法

- (YQSweepCardItem *)sweepCardView:(YQSweepCardView *)sweepCardView itemForIndex:(NSInteger)index{
    YQSweepCardItem *item =  [sweepCardView dequeueReusableItemWithIdentifier:@"B"];
    // do something
    return item;
}

Latest podspec

{
    "name": "YQSweepCardView",
    "version": "0.0.1",
    "summary": "u5361u7247u5207u6362u6548u679c.",
    "description": "u5361u7247u5207u6362uff0cu4f1au4f7fu7528UITableViewu5c31u4f1au7528YQSweepCardView",
    "homepage": "https://github.com/yuyedaidao/YQSweepCardView",
    "license": "MIT",
    "authors": {
        "yuyedaidao": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/yuyedaidao/YQSweepCardView.git",
        "tag": "0.0.1"
    },
    "source_files": "Classes/*.{h,m}"
}

Pin It on Pinterest

Share This