腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(7058)
视频
沙龙
0
回答
UICollectionView
inside
UITableViewCell
,
UITableView
动态
高度
、
、
、
、
我有一个UITableViewController,每个
UITableViewCell
都包含一个
UICollectionView
,其中
UICollectionView
的内容应该是完全可见的。我的问题是,当返回
UITableViewCell
的height时,我不能返回正确的
高度
,因为我不知道如何计算
UICollectionView
内容的contentSize。
浏览 2
提问于2016-12-27
得票数 0
1
回答
UITableView
contentSize不更新
、
、
、
我有
UITableView
with
UITableViewCell
,它包含
UICollectionView
,如: 在
UICollectionView
中,数据是
动态
添加的。我已经订阅了
UICollectionView
contentSize,并且正在相应地将
UIColl
浏览 0
提问于2018-10-05
得票数 0
回答已采纳
1
回答
UICollectionView
在
UITableViewCell
中不能
动态
地调整大小
、
、
我在
UICollectionView
里面有一个
UITableViewCell
。我将
UITableViewCell
行
高度
设置为
动态
的: return items.count下面是让我头疼的一系列事件:
UITableView
调用委托cellForRowAt,并将具有
动态
高度<
浏览 1
提问于2016-12-04
得票数 1
2
回答
动态
CollectionViewCell在TableViewCell中的应用
、
、
、
、
问题:视图层次结构:
UITableView
UICollectionView
标签2 UICollectionViewCell3 这里Label1,Label2,label 3都有
动态</e
浏览 1
提问于2017-10-13
得票数 1
回答已采纳
1
回答
iOS/Swift:嵌入
UITableViewCell
的
动态
UITableView
行高不工作
、
、
、
、
我有一个
UITableViewCell
,它在顶部包含一个
UICollectionView
,在底部包含一个
UITableView
。这样做的想法是在内部
UITableView
中创建一个
动态
数量的单元格,而包含这两个子视图的父
UITableViewCell
将按比例增加其
高度
。我正在尝试利用estimatedRowHeight +UITableViewAutomaticDimention的
UITableViewCell
特性,这将允许单元格
高度
浏览 1
提问于2017-06-30
得票数 0
回答已采纳
1
回答
CollectionView中的TableView是否在滚动后设置边框?
、
、
我在UICollectionViewCell中使用
UITableView
。我试图展示的是tableView的
动态
高度
,这取决于
UITableView
.But中的单元格,它的框架是在滚动后设置的,
UICollectionView
.Here是我尝试的代码。#Pragma mark-CollectionView Methods -(NSInteger)collectionView:(
UICollectionView
*)collectionView numberOfItemsInSectio
浏览 1
提问于2014-08-12
得票数 0
2
回答
为iOS创建一个视图,如图片所示
、
、
现在,这是在一个
UITableView
中,比方说它是一个
UITableViewCell
。1.Lets create a
UICollectionView
inside
the
UITableViewCell
, this will have
UITableView
->
UITableViewCell
->
UICollectionView
-> UICollectionViewCel
浏览 2
提问于2018-07-31
得票数 1
回答已采纳
1
回答
更改基于
UITableViewCell
高度
的
UICollectionView
内容大小
高度
、
、
、
我正在编写一个用
UICollectionView
创建的日历。
UICollectionView
位于
UITableViewCell
-- heightForRowAt方法return
UITableView
.automaticDimension中的
UITableViewCell
中
UICollectionView
用于根据显示的天数创建日历更新其
高度
,例如,11月份有其第一天,该日位于星期日,因此,要将这一天置于“星期日”的标签下,collectionView必须添加整条线。
浏览 5
提问于2020-11-10
得票数 0
回答已采纳
2
回答
禁用
UICollectionView
中的滚动并调整其大小以包装所有单元格
、
、
我有一个
UICollectionView
在一个
UITableViewCell
。所以层次结构是这样的: 我想在这里实现的是禁用
UICollectionView
中的滚动,并使它看起来像一个大列表的项目。所有内容都是
动态
创建的。那么,如何根据
UICollectionView
的单元格来调
浏览 2
提问于2016-01-15
得票数 17
3
回答
用
UITableViewCell
的
高度
设置
UICollectionView
的
高度
、
、
、
我有一个问题:我有
UITableView
和
UITableViewCell
,在单元格我有一个不同数字UICollectionViewCell的
UICollectionView
。我想要
UITableViewCell
高度
对应于
UICollectionView
的
高度
。我在这里看到了真实的
高度
UICollectionView
:
浏览 0
提问于2017-01-16
得票数 0
回答已采纳
1
回答
最初无法使用JSON数据
动态
显示集合视图
高度
、
、
、
、
0,那么集合视图最初不会更改为
动态
高度
。如果我下到桌面上来然后
动态
显示..。为什么?class HomeVC: UIViewController{ func tableView(_ tableView:
UITableView
, cellForRowAt indexPath: Ind
浏览 3
提问于2021-07-23
得票数 0
1
回答
如何在Swift中
动态
更改包含
UITableView
单元格的
UICollectionView
单元格的
高度
?
、
、
、
目前,我已经将一个UICollectionViewCell嵌入到
UITableViewCell
中,它位于我的
UITableView
的一部分中。我知道如何在
UITableView
的另一部分
动态
更改单元格的
高度
,因为我在另一个
UITableViewCell
中有一个UITextView,它根据UITextView中文本的数量
动态
地改变单元格的
高度
。目前,正如我所看到的,当生成第五张图片时,
UITableViewCell
的
高度</em
浏览 0
提问于2017-07-18
得票数 0
2
回答
UITableViewCell
无法根据它包含的
动态
CollectionView来调整
高度
、
、
、
我使用的是普通的
UITableView
,在
UITableViewCell
中有一个collectionView,它的
高度
是
动态
的。如何在
UICollectionView
的willDisplay单元格上设置数据源和委托: if indexPath.s
浏览 0
提问于2018-02-26
得票数 0
1
回答
我在自定义TableViewCell中有一个
UICollectionView
,但是我不能自动调整CollectionView的大小
、
、
、
、
我在自定义的
UITableViewCell
中有一个
UICollectionView
,在
UICollectionView
中只有UIImageView。我使用SDWebImage来加载我想要的image.What是在加载图像之后,
UICollectionView
和它的contentView(
UITableViewCell
)都会更新自己的
高度
以显示所有图像例如,如果我在
UICollectionView
中有三个图像,我希望collectionview's
高度<
浏览 0
提问于2016-05-18
得票数 0
1
回答
UICollectionViewCell在
UITableView
单元内与自动布局
、
、
、
、
我有一个
UICollectionView
在一个
UITableViewCell
和我有一些有关自动布局的问题。 -------ContentView -------MyView我的UICollectionViewCell的
高度
是
动态
的,基于我使用UICollectionViewLayout绘制的itens数。因此,它有一个
高度
约束,即>= 100。在
浏览 3
提问于2015-05-19
得票数 1
1
回答
UICollectionView
委托方法"didSelectItemAtIndexPath“在
UITableviewCell
中使用UICollection视图时未被调用
、
、
、
、
我在我的
UICollectionView
中使用了
UITableviewCell
,一切正常工作,仍然加载集合视图并显示其单元格,但是在加载集合视图之后,当点击集合视图单元格时,我无法获得集合视图的"didSelectItemAtIndexPath下面是我的代码,数据源方法被调用,但是委托没有被调用 - (NSInteger)collectionView:(
UICollectionView
to -dequeueReusableCellWithReu
浏览 0
提问于2016-10-13
得票数 2
回答已采纳
1
回答
嵌入在
UICollectionView
中的
动态
定制布局
UITableViewCell
、
、
、
、
这应该是可行的,但我试图避免这个解决方案
UICollectionView
嵌入到
UITableViewCell
中。将
UICollectionView
滚动设置为false,调整
UITableViewCell
的
高度
以适应整个
UICollectionView
的contentSize.height。也许我们可以增加容器(
UITableViewCell
)的
高度
在滚动的
UICollectionView
内嵌入。与2相同,但我们有固定大小的容器<
浏览 1
提问于2018-04-19
得票数 1
1
回答
无法在dequeueReusableCellWithReuseIdentifier中调用collectionView(collectionView: collectionViewLayout: sizeForItemAtIndexPath)
、
、
、
、
当在dequeueReusableCellWithReuseIdentifier中调用collectionView(collectionView:
UICollectionView
, layout collectionViewLayout注意:这个问题不是重复的,因为dequeueReusableCellWithReuseIdentifier 在
UICollectionView
的其他地方工作,只是不属于特定的函数。目标是使单元格
高度
动态
化,而宽度与
UICollectionView
的宽度相匹配,就像
浏览 2
提问于2016-04-04
得票数 2
回答已采纳
1
回答
非滚动
UICollectionView
内的
UITableViewCell
动态
高度
、
、
、
、
我在
UITableViewCell
中添加了
UITableViewCell
,为此我创建了XIB文件。检查下列图像:您可以在上面的图像中看到所有视图的层次结构和约束。注意:我禁用了集合视图的垂直滚动和水平滚动,因为我想
动态
地增加
UITableViewCell
高度
。因此,我取了集合视图的
高度
约束的出口,并根据集合视图中可用的项进行编程更改。集合视图的项目大小如果固定,宽度与集合视图成正比,
高度
为30 我已经使用以下代码在我的表视图中注册了这个xib。@IBOutl
浏览 0
提问于2019-03-08
得票数 4
回答已采纳
1
回答
子类UIView是处理这些自定义对象数量未知的正确方法吗?
、
、
最初,我快速地将由其中20个对象组成的静态屏幕组装在一起,但发现我经常会超过数组中的项目数,需要转换为
动态
解决方案。 我还没有使用子类,并且希望在深入研究实现之前确保这是正确的解决方案。
浏览 0
提问于2015-08-10
得票数 0
回答已采纳
点击加载更多
相关
资讯
iOS TableView性能优化
iOS小技巧总结,绝对有你想要的
原生APP开发框架及性能优化
原生APP开发流程
Rax 系列教程
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券