仿支付宝应用编辑

仿支付宝应用编辑,第1张

项目新的需求。然后查到有类似的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 但是判断条件不够严谨。

1、首先打开支付宝APP。

2、接下来在首页中点击箭头所指处的“更多”。

3、在页面中选择箭头所指处的“小程序收藏”。

4、接下来在页面中选择如下图箭头所指处的“添加”。

5、接下来在列表中选择需要添加的的应用,点击箭头所指处的“收藏”即可。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/8029408.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-12
下一篇 2023-04-12

发表评论

登录后才能评论

评论列表(0条)

保存