Latest 1.0.1
Homepage https://github.com/yuyedaidao/YQCardView
License MIT
Platforms ios 6.0
Authors

个人项目中用于展示当前头像 当然也可做他用

展示

图片

获取

pod ‘YQCardView’

使用

YQCardView *cardView = [[YQCardView alloc] initWithVisibleCount:3 registerInfo:@{@"A":[UICollectionViewCell class]}];
[self.view addSubview:cardView];
cardView.frame = CGRectMake(0, 0, self.view.bounds.size.width, 140);
//    cardView.frame = self.view.bounds;
cardView.center = self.view.center;

[cardView setItemNumberBlock:^NSInteger{
    return 11;
}];
__weak typeof(cardView) weakCardView = cardView;
[cardView setCellForItemBlock:^UICollectionViewCell *(NSIndexPath *indexPath) {
    UICollectionViewCell *cell = [weakCardView dequeueReusableCellWithReuseIdentifier:@"A" forIndexPath:indexPath];
    cell.backgroundColor = [UIColor colorWithRed:arc4random()%255/255.0 green:arc4random()%255/255.0 blue:arc4random()%255/255.0 alpha:1];
    return cell;
}];

Latest podspec

{
    "name": "YQCardView",
    "version": "1.0.1",
    "summary": "u4e2au4ebau9879u76eeu4e2du7528u4e8eu5c55u793au5f53u524du7528u6237u5934u50cfu7684u6846u67b6",
    "description": "A longer description of YQCardView in Markdown format.nn* Think: Why did you write this? What is the focus? What does it do?n* CocoaPods will be using this to generate tags, and improve search results.n* Try to keep it short, snappy and to the point.n* Finally, don't worry about the indent, CocoaPods strips it!",
    "homepage": "https://github.com/yuyedaidao/YQCardView",
    "license": "MIT",
    "authors": {
        "yuyedaidao": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/yuyedaidao/YQCardView.git",
        "tag": "1.0.1"
    },
    "source_files": "Classes/*.{h,m}"
}

Pin It on Pinterest

Share This