文章分类 -  ios之oc中UIcollectionViewCell 和UICollecitonView

摘要:https://www.jianshu.com/p/ac3edf92c5fd 2016.06.14 16:22* 字数 273 阅读 14983评论 74喜欢 69 最近在开发软件的时候被产品经理要求,要让UICollectionView上面的cell之间的距离要被固定,但是cell得宽度不一定,所 阅读全文
posted @ 2019-03-28 20:53 sundaysios 阅读(1934) 评论(0) 推荐(0) 编辑
摘要:2016.08.10 19:18* 字数 2948 阅读 12289评论 9喜欢 68 前言 演示内容: 1.自适应Cell 2.瀑布流 3.微信UI设计 ...... 1、2演示内容完成,后续再更新 参考资料 UITableView UICollectionView UICollectionVie 阅读全文
posted @ 2019-01-14 12:23 sundaysios 阅读(811) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/9fafd89c97ad https://github.com/wsl2ls/WSLWaterFlowLayout 2018.01.04 16:45* 字数 409 阅读 3925评论 28喜欢 35 瀑布流 功能描述:WSLWaterFlowLa 阅读全文
posted @ 2019-01-14 11:39 sundaysios 阅读(295) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/995c0f35e7fb 想看UICollectionView基础使用的可以先看我的另一篇文章。这篇主写关于UIollectionViewLayout自定义布局的一些常用方法,瀑布流布局的自定义,包括头尾试图的添加,插入删除动画,还有9.0后移动动 阅读全文
posted @ 2019-01-14 10:26 sundaysios 阅读(501) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/Devhwl/p/8464920.html 很多时候我们需要列表和宫格视图的来回切换,就像苹果的天气应用一样,我之前见过一个用tableview和collectionview来实现这种效果的,我本人不太喜欢这个,那么有没有更好的方法呢?答案是:有 初识 阅读全文
posted @ 2019-01-14 10:12 sundaysios 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/fe7821fb6293 2016.03.21 13:29* 字数 625 阅读 1874评论 0喜欢 10 2016.03.21 13:29* 字数 625 阅读 1874评论 0喜欢 10 2016.03.21 13:29* 字数 625 阅读 阅读全文
posted @ 2018-07-05 12:06 sundaysios 阅读(1184) 评论(0) 推荐(0) 编辑
摘要:http://www.hangge.com/blog/cache/detail_1605.html 本文通过自定义 UICollectionView 布局,实现一个用于图片层叠展示(Stack)效果。 1,效果图 (1)图片从下往上层层堆叠,第一张在最顶层,最后一张在最底部。 (2)每张图片会有一定 阅读全文
posted @ 2018-07-05 12:03 sundaysios 阅读(1021) 评论(0) 推荐(0) 编辑
摘要:UICollectionViewCell的四种创建方式 UICollectionViewCell的四种创建方式 2016年07月23日 08:47:53 阅读数:15459 2016年07月23日 08:47:53 阅读数:15459 阅读数:15459 方式一:纯代码创建 #import "Vie 阅读全文
posted @ 2018-06-24 11:54 sundaysios 阅读(1677) 评论(0) 推荐(0) 编辑
摘要:'UICollectionView must be initialized with a non-nil layout parameter' 报错原因及解决 2016年03月09日 22:29:05 阅读数:2419 'UICollectionView must be initialized wit 阅读全文
posted @ 2018-06-24 11:50 sundaysios 阅读(385) 评论(0) 推荐(0) 编辑
摘要:首先我们需要继承一下UITableView并且遵守<UITableViewDelegate,UITableViewDataSource,UICollectionViewDataSource,UICollectionViewDelegate,UIScrollViewDelegate>的代理实现响应的代 阅读全文
posted @ 2018-06-07 20:55 sundaysios 阅读(307) 评论(0) 推荐(0) 编辑
摘要:UIScrollview,UITableview,UICollectionView 完全禁止弹簧效果,只需要设置bounces = false即可。 如果需要单独禁止上拉,或者下拉。 func scrollViewDidScroll(scrollView: UIScrollView) { // 禁止 阅读全文
posted @ 2018-06-07 18:19 sundaysios 阅读(172) 评论(0) 推荐(0) 编辑
摘要:一、UIcollectionView介绍 1.1、简介 首先看苹果官方文档 UICollectionView Class Reference 的介绍: The UICollectionView class manages an ordered collection of data items and 阅读全文
posted @ 2018-06-05 19:53 sundaysios 阅读(241) 评论(0) 推荐(0) 编辑
摘要:2017年06月23日 11:28:14 阅读数:664 2017年06月23日 11:28:14 阅读数:664 阅读数:664 UICollectionView控件的使用一般会在特殊的界面处理上,但是也有比较规矩的应用软件会用UICollectionView。例如效果如下的界面; 下面开始讲述我 阅读全文
posted @ 2018-06-05 19:42 sundaysios 阅读(333) 评论(0) 推荐(0) 编辑
摘要:UITableView 我们都知道UITableView从iOS 8开始实现行高的自适应相对比较简单,首先必须设置estimatedRowHeight给出预估高度,设置rowHeight为UITableViewAutomaticDimension(注意:如果不修改rowHeight默认就是UITab 阅读全文
posted @ 2018-06-05 19:37 sundaysios 阅读(602) 评论(0) 推荐(0) 编辑
摘要:2016.08.10 19:18* 字数 2948 阅读 9688评论 9喜欢 59 2016.08.10 19:18* 字数 2948 阅读 9688评论 9喜欢 59 2016.08.10 19:18* 字数 2948 阅读 9688评论 9喜欢 59 前言 演示内容: 1.自适应Cell 2. 阅读全文
posted @ 2018-06-05 19:34 sundaysios 阅读(720) 评论(0) 推荐(0) 编辑
摘要:estimatedItemSize是iOS 8中苹果最新推出的黑魔法,可以让CollectionView中也能让 cell 自适应内容大小,达到自动适应高度的预期效果! UICollectionView的高度自适应的原理: 1.CollectionView根据 layout 的 estimatedI 阅读全文
posted @ 2018-06-05 19:31 sundaysios 阅读(2823) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示