Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
子类化 UICollectionViewCell 导致永远不会被选择
我尝试对 UICollectionViewCell 进行子类化并从 nib 文件加载 id initWithFrame CGRect frame self super initWithFrame frame if self NSArray
ios
Objectivec
UICollectionViewCell
UICollectionView:不同大小的项目不会在重复使用的项目上计算
我有一个包含不同项目大小的集合视图 我在其中声明 CGSize collectionView UICollectionView collectionView layout UICollectionViewLayout collectionV
ios
UICollectionView
UICollectionViewCell
点击时展开 UICollectionView 及其单元格
我正在尝试制作一个过渡动画 如链接中的演示here https dribbble com shots 2733571 Citadela countries 因此 当我单击该单元格时 它会展开并覆盖整个屏幕 这是我的代码 我不得不承认我对 C
ios
swift
UICollectionView
UICollectionViewCell
uicollectionviewlayout
垂直滚动时在未调用的 collectionView 上向左/向右滑动
我有一个collectionView垂直滚动 覆盖设备上的整个屏幕 即全屏 我已经注册了Swipe Left and Right为我的手势collectionView right swipe gestures in collectionVi
ios
swift
UICollectionView
UICollectionViewCell
使用 Interface Builder 在 nib 中设计 UICollectionView 单元格(无故事板)
我正在尝试设计一个定制的UICollectionViewCell原型 在 Xcode 5 0 2 中 但是 Interface Builder 不允许我向我的UICollectionView在设计笔尖时 如果我使用故事板 我可以设置项目 单
xcode
interfacebuilder
UICollectionView
nib
UICollectionViewCell
在布局更改的同时重新加载/动画 UICollectionView
这个问题 https stackoverflow com questions 40680588 uicollectionviewcell contents do not animate alongside cells contentview
ios
swift
UICollectionView
UICollectionViewCell
uicollectionviewlayout
iOS:UICollectionViewCell根据屏幕尺寸自动调整大小
我试图在集合视图中创建 10 个单元格 与屏幕大小相同 当我在 iphone5s 模拟器中运行我的应用程序时 视图恰好包含 5 个单元格 但是当我切换到 iphone6p 模拟器时 视图包含超过 5 个单元格 我应该如何调整单元格大小 以使
ios
Objectivec
swift
UICollectionView
UICollectionViewCell
UICollectionViewCell 中的 UICollectionView
我有兴趣将集合视图作为集合视图单元的一部分 但由于某种原因无法弄清楚这是如何完成的 我将在哪里实现单元格集合视图的必要方法 There s Ash Furrow 写的一篇文章 http ashfurrow com blog putting
ios
UICollectionView
UICollectionViewCell
CollectionView 嵌套在 CollectionView 中
我见过将集合视图嵌套在表视图中的解决方案 但对于我的应用程序 我需要有 2 个集合视图 因为这样可以更轻松地执行其他操作 所以我们调用根集合视图垂直集合视图仅垂直滚动和嵌套集合视图水平集合视图仅水平滚动 我使用故事板创建了它们 下面你会看到
ios
swift
UICollectionView
UICollectionViewCell
uicollectionviewdelegate
UICollectionView 单元格阴影
我正在尝试为我的自定义添加阴影UICollectionViewCell 这是我在自定义集合视图单元格类中使用的代码 self layer shadowOffset CGSizeMake 1 0 self layer shadowColor
ios
Objectivec
UICollectionView
UICollectionViewCell
CALayer
如何使用 Xcode 6.3 Beta2 覆盖 Swift 中超类的 setter?
我的 SuerClass 是UICollectionViewCell它有一个属性 var selected Bool 我的班级是 MyClass UICollectionViewCell func setSelected selected
ios
swift
inheritance
overriding
UICollectionViewCell
collectionViewContentSize() 与 contentSize
有什么区别 collectionViewController collectionViewLayout collectionViewContentSize and collectionViewController collectionVie
ios
swift
UICollectionView
UICollectionViewCell
uicollectionviewlayout
UICollectionView 上的 register(_:forCellWithReuseIdentifier:) 有什么问题?
我正在与一个UICollectionView As dequeueReusableCell withReuseIdentifier for 期望您必须使用以下方法注册类或 nib 文件register forCellWithReuseIde
ios
swift
UITableView
UICollectionView
UICollectionViewCell
无法转换“UICollectionViewCell”类型的值
我在 Storyboard 中使用自定义 CollectionViewCell 当我启动应用程序时 我收到以下消息 无法将 UICollectionViewCell 类型的值转换为 TestProject CollectionViewCel
xcode
swift
UICollectionView
UICollectionViewCell
根据 UICollectionView 中的图像动态更改单元格大小
我正在水平集合视图中显示从服务器接收的动态图像 当我设置集合视图时 我设置了 void setupCollectionView self setupPageControlView self screensCollectionView del
Swift:如何在写入时不断调整 UICollectionViewCell 高度以适应 UITextView?
下午好 我已经在我的 iOS 应用程序的这个 功能 上苦苦挣扎了几个小时 我需要一些帮助 问题 我应该如何实现 以便当用户输入UITextView尺寸增加 仅底部边距 并且单元格增加其高度以适应UITextView同时动态 我不知道如何解决
ios
swift
UICollectionView
UITextView
UICollectionViewCell
UITableViewAutomaticDimension 不适用于 iOS 8
我正在关注这个tutorial http www appcoda com self sizing cells 制作自我调整大小的细胞 我将自定义单元格注册到表视图中 并在单元格 xib 中手动给出每个子视图约束 请参阅GitHub 中的源代
swift
iOS8
iOS9
UICollectionViewCell
uitableviewautomaticdimension
UICollectionView 动画(插入/删除项目)
我想在插入和 或删除 UICollectionViewCell 时自定义动画样式 我需要这个的原因是 默认情况下 我看到插入单元格的动画具有平滑的淡入淡出效果 但是删除单元格具有向左移动 淡出动画的组合 如果不是因为一个问题 我会对此感到非
iphone
ios
Objectivec
UICollectionView
UICollectionViewCell
使用情节提要在 CollectionView 中仅显示两列和多行
I want to display only two cells in a row no matter what the iPhone screen size is Like 我的故事板包含一个UICollectionView 通过约束连接
ios
StoryBoard
UICollectionView
UICollectionViewCell
UICollectionView 的单元格消失
发生了什么 目前我有一个应用程序使用两个UICollectionViews里面一个UITableView 通过这种方式 我创建了一个看起来像 Pulse News 的应用程序 我的问题是 有时第 6 行和第 11 行完全消失 在本应是单元格
ios
xcode
UICollectionView
UICollectionViewCell
1
2
3
4
5
6
»