ios - CollectionView 单元格移出框架
问题描述
我有一个UICollectionView
移出集合视图框架的单元格。
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAt indexPath: IndexPath) -> CGSize {
self.configureCell(cell: self.sizingCell!, forIndexPath: indexPath as NSIndexPath, tag: collectionView.tag)
return self.sizingCell!.systemLayoutSizeFitting(UILayoutFittingCompressedSize)
}
我使用下面的示例代码。 https://github.com/moonlsd/TagFlowExample
解决方案
推荐阅读
- authentication - 使用 PWA 进行 ADFS 身份验证
- javascript - javascript:如何检查是否在上下文菜单新选项卡上单击了链接
- php - 连接两个与用户相关的模型 - Laravel
- javascript - 使用 SnapSVG 在拖动时旋转对象
- python - 棉花糖模式的动态类变量?
- unity3d - Unity:来自多个相机的组合图片
- wpf - WPF 控件应脱离父级的剪切框
- html - 元素“link”上属性“href”的错误值“”:必须为非空
- java - react-native run-android FAILURE:构建失败并出现异常
- javascript - Unite Gallery 如何在调整大小时从右到下更改网格位置?