仿支付宝应用编辑

项目新的需求。然后查到有类似的Demo类似于支付宝首页对应用进行编辑,排序添加删除的功能

根据需求稍微丰富了了一下,详情看Demo

1.HeaderView只允许注册,
2.HeaderView错乱, 因为未区分头尾部

This method must always return a valid view object. If you do not want a supplementary view in a particular case, your layout object should not create the attributes for that view. Alternatively, you can hide views by setting the hidden property of the corresponding attributes to YES or set the alpha property of the attributes to 0. To hide header and footer views in a flow layout, you can also set the width and height of those views to 0.
3.将cell添加到collectionView上 会被header遮住。 最后没解决就选择放在View上。坐标做一下调整就可以了。
4.cell位置错乱,因为改写了YDCollectionViewFlowLayout。。之前为了解决间距问题重写了FlowLayout 但是判断条件不够严谨。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,452评论 0 10
  • 冰棍在夏日的骄阳下呼着白气,舔完不断哒拉的黏甜汁水, 我迫不及待地跳上向往已久的单车,想要画出一道完美的直线 车轮...
    阿黛儿阅读 269评论 1 0
  • 分手 牵手的两个人, 为了房子, 为了车子, 为了儿子, 为了票子, 不得不 选择分手。 一箭穿过, 撕心裂肺。 ...
    金赛月阅读 220评论 4 8
  • 关于友情和兄弟| 我们为了梦想、生活各自为战,有事联系,没事各忙各的,越简单,越熨帖。正如君子之交淡如水一般。 时...
    许自忘阅读 260评论 0 0
  • 在装翅膀的猪阅读 150评论 0 0