代码库> 列表> MCollection
MCollection
关注
上传者:iOS_ming 分类:列表(Tableview Collection)
查看次数:1760 下载次数:228
上传时间:2017-03-01 大小:602 B
myCollection = [MCollectionView mcDefaultNSBundle];
myCollection.frame = CGRectMake(120,-5,WIDTH_K - 165, 50);
[self.view addSubview:myCollection];
myCollection.mcSections(1).mcScrollDirection(UICollectionViewScrollDirectionHorizontal).mcScrollShowHidden(UICollectionShowsHiddenScrollHorizontal).mcIdentifierCells(@[@{@"InfoImg":@"cellID"}]);
[myCollection mcLayoutReturnItmeIndexPath:^(NSIndexPath *indexPath, MCLyoutDataSource *mcLayout) {
mcLayout.mcRows(20).mcItmeName(@"cellID").mcSizeItem(CGSizeMake(30, 30));
} setReturnCell:^(NSIndexPath *indexPath, MCLayoutCell *itme) {
itme.Simg.image = [UIImage imageNamed:@"weixin"];
}];
[myCollection mcReturnSelendItmeIndexPath:^(NSIndexPath *indexPath, NSInteger tag, id data) {
NSLog(@"%ld",(long)indexPath.row);
}];
//注:可以布局各种cell
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部