iOS UICollectionView与UITableView
来源:互联网 发布:手机淘宝图片很模糊 编辑:程序博客网 时间:2024/04/28 17:52
// 初始化瀑布流
UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
[flowLayout setItemSize:CGSizeMake(150,120)]; //设置每个cell显示数据的宽和高必须
flowLayout.sectionInset = UIEdgeInsetsMake(5, 5, 5, 5);
flowLayout.minimumInteritemSpacing = 0;
flowLayout.minimumLineSpacing = 0;
[flowLayout setScrollDirection:UICollectionViewScrollDirectionHorizontal]; //水平滑动
[flowLayout setScrollDirection:UICollectionViewScrollDirectionVertical]; //控制滑动分页用
self.collectionView = [[UICollectionView alloc]initWithFrame:self.view.bounds collectionViewLayout:flowLayout];
[self.view addSubview:self.collectionView];
self.collectionView.backgroundColor = [UIColor whiteColor];
[self.collectionView registerClass:[MyCell class] forCellWithReuseIdentifier:@"COllectioncell"];
[self.collectionView setDataSource:self];
[self.collectionView setDelegate:self];
[self.view addSubview:self.collectionView];
- iOS UICollectionView与UITableView
- iOS UITableView、UICollectionView、UIWebView
- IOS-使用UiTableview模仿UICollectionView的效果
- iOS截屏( UIView,UITableView,UICollectionView,UIWebView)
- iOS UICollectionView 和 UITableView cell更新 详解
- IOS UItableview UIcollectionview cell高度自适应
- UICollectionView 与 UITableView 的一点差别
- UICollectionView使用以及与UITableView的区别
- iOS使用UIScrollView实现左右滑动UITableView和UICollectionView
- iOS 8自动调整UITableView和UICollectionView布局
- iOS使用EGO实现UITableView或UICollectionView横向分页刷新
- iOS 8自动调整UITableView和UICollectionView布局
- iOS 8自动调整UITableView和UICollectionView布局
- iOS UITableView 和 UICollectionView 设置默认选中状态
- iOS使用XZMRefresh实现UITableView或UICollectionView横向刷新
- iOS常见错误9-UITableView,UIScrollView,UICollectionView偏移20像素
- iOS使用UIScrollView实现左右滑动UITableView和UICollectionView
- iOS开发Swift UITableView和UICollectionView的使用
- Unity基础开发----播放序列帧图片
- JAVASE 我的学习日记 20141022
- Find Minimum in Rotated Sorted Array
- new/delete 和malloc/free 的区别一般汇总
- wke svn源码地址
- iOS UICollectionView与UITableView
- Cts框架解析(10)-TestDeviceOptions
- 固定尺寸内存块的缓冲队列类及C++实现源码
- FreeMarker的应用
- 危险!在HashMap中将可变对象用作Key
- 浮点数的存储方式
- Android Fragment应用实战,使用碎片向ActivityGroup说再见(使用Fragment实现底部标签页效果)
- m序列,Gold序列,Walsh函数的区别
- Android -- 小功能 Intent的作用