A concrete layout object that organizes items into a grid with optional header and footer views for each section.

The items in the collection view flow from one row or column (depending on the scrolling direction) to the next, with each row comprising as many cells as will fit. Cells can be the same sizes or different sizes.

A flow layout works with the collection view’s delegate object to determine the size of items, headers, and footers in each section and grid. That delegate object must conform to the UICollectionViewDelegateFlowLayoutprotocol. Use of the delegate allows you to adjust layout information dynamically. For example, you would need to use a delegate object to specify different sizes for items in the grid. If you do not provide a delegate, the flow layout uses the default values you set using the properties of this class.

动态定制视图尺寸的方案有两个:

1、delegate;

2、子类化;

最新文章

  1. 关于成为Java高级工程师之路
  2. openoffice
  3. HDU3333 Turing Tree 树状数组+离线处理
  4. Linux Shell 脚本入门
  5. POJ 1077 && HDU 1043 Eight A*算法,bfs,康托展开,hash 难度:3
  6. Working with Other Node Types II
  7. 【Delphi】最小化事件捕捉
  8. JAVA JDK1.5-1.9新特性
  9. phpstorm配置取消掉63342
  10. 将HTML表格导出到EXCEL,兼容Firefox,支持中文
  11. 在hyper安装openwrt
  12. Android: 在WebView中获取网页源码
  13. android,在fragment中使用listview,不使用listfragment
  14. 自学JS
  15. group()与groups()的区别
  16. MysqL 磁盘写入策略之innodb_flush_log_at_trx_commit
  17. linux使用npm成功安装命令后,执行时却报找不到命令的问题
  18. c# 坑人的发邮件组件
  19. 2018牛客网暑假ACM多校训练赛(第四场)E Skyline 线段树 扫描线
  20. 总结:JDK1.5-JDK1.8各个新特性

热门文章

  1. MyBatis3教程
  2. mybatis mapper文件sql语句传入hashmap参数
  3. golang中channels的本质详解,经典!
  4. [Mini Programe] Upload Images
  5. HDU 1973
  6. iOS中的成员变量,实例变量,属性变量
  7. 总是有人想在android上直连mysql,是猴子请来的逗比吗?
  8. 已知目标qps跟并发用户数20,压测平均响应时间实例
  9. 从头认识Spring-1.9 内部类注入Bean
  10. java dom4j 读写XML