腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
集合视图中的表视图委托
结构是下一个:class MainViewController: UIViewController { let cell = tableView.dequeueReusableCell(withIdentifier:"CustomTableCell", for:
indexPath
) as!class Custo
浏览 0
提问于2019-06-06
得票数 0
回答已采纳
2
回答
Swift
UICollectionView
in
UITableViewCell
indexPath
错误
、
、
、
:
IndexPath
) ->
UITableViewCell
{ }class WishListsCell:
UITableViewCell
{ var collectionView:
UICollectionView
!UICollectionViewDelegateFlowLayout, U
浏览 11
提问于2017-01-13
得票数 1
4
回答
在tableview中单击收集器单元格导航
、
、
、
代码:class ViewController: UIViewController { let cell = tableView.dequeueReusableCell(withIdentifier: "cellCategoryRow } Cate
浏览 0
提问于2017-07-11
得票数 2
回答已采纳
2
回答
无法在表格视图单元格内滚动集合视图(在童话板中创建)
、
、
有一个非常类似的问题,但是解决方案没有为我解决任何问题,主要是因为我的嵌入式集合视图已经在表视图单元格的内容视图中(我是在故事板中创建的)。
浏览 16
提问于2022-06-15
得票数 0
1
回答
点击按钮时创建collectionView
、
、
嗨,我如何使用集合视图来实现这一点呢?或者当我点击一个按钮时,它会在我的视图控制器中创建一个collectionView。实际上,我想添加一个集合视图,但我希望它的数量是动态的,因为我从服务器获取它的计数。请帮帮我。
浏览 5
提问于2018-09-06
得票数 0
回答已采纳
1
回答
如何在iOS中显示自定义嵌套列表
、
、
、
、
我想在iOS中显示一个本身包含一个列表的列表。例如,我想要创建一个日期智能任务列表,其中的日期和任务是dynamic.So,外部列表是日期列表,内部列表是任务,LIST.Also想要处理对任务的单击。如何在iOS中实现这一点,尝试使用表视图,但无法实现,因为我想显示嵌套的list.In短-我想在iOS中显示一个列表。
浏览 3
提问于2017-09-13
得票数 0
回答已采纳
1
回答
将数据从ViewController传递到表单元格中的集合单元格
、
下面的委托函数是配置表单元格的地方:class OtherUserAccountViewController: UIViewControllerfunc tableView(_ tableView: UITableView, cellForRowAt
indexPath
:
IndexPath
) ->
UITableViewCell
{func collectionView(_ collectionView:
UICollectionV
浏览 0
提问于2017-01-14
得票数 2
回答已采纳
2
回答
ios App
Swift
、
、
、
我想通过从firebase下载数据来在UITableView中添加一个
UICollectionView
,以显示我现在已经完成了接口部分,但我陷入了这个问题,无法从firebase中带来数据来显示在
UICollectionView
我不能运行collectionView.reloadData(),因为
UICollectionView
在类中是不同的,我应该如何修复它?
浏览 2
提问于2019-04-30
得票数 0
1
回答
在CollectionviewCell中重新加载TableViewCell
、
、
、
我有一个
UITableViewCell
,我在其中添加了
UITableViewCell
(用于水平滚动)。ViewController.
swift
: var categories = ["Action", ":
IndexPath
) ->
UITableViewCell
{ let cell = tableView.d
浏览 10
提问于2017-08-03
得票数 0
1
回答
我正在尝试创建一个具有UICollection视图的子元素的可扩展表视图
、
、
、
、
我正在尝试创建一个表视图,它是 import UIKit func print(){ }
Swift
浏览 3
提问于2019-05-13
得票数 0
2
回答
在tableview单元格中将目标添加到集合视图单元格的按钮中
、
、
、
OViewController.
swift
: var categories = ["Action",:
IndexPath
) ->
UITableViewCell
{ return cellCategoryR
浏览 3
提问于2017-07-14
得票数 0
回答已采纳
2
回答
在UITableView选择上选择
UICollectionView
、
、
、
我有一个
UICollectionView
在
UITableViewCell
里面。当我选择一个tableView行时,我不希望调用
UICollectionView
的didSelectItemAtIndexPath:方法。
浏览 6
提问于2016-02-17
得票数 2
回答已采纳
1
回答
UITableviewcell
不显示
UICollectionView
、
、
、
我使用的是一个与表视图相连接的ViewController,并使用ExpandableCell库扩展
UITableviewcell
。我在故事板中使用
UICollectionview
创建了一个扩展单元,但是当我使用dequeueReusableCell时,他不会加载
UICollectionview
我正在使用
Swift
4:
IndexPath
) -> [
UITableViewCell
]?, cellForItemAt
indexPath
:
Ind
浏览 0
提问于2018-04-13
得票数 0
回答已采纳
1
回答
如何调用嵌入了
UICollectionView
的
UITableViewCell
的
indexPath
.row
、
、
、
、
目前,我有一个嵌入了
UICollectionView
的UITableView。我有3个信息数组,我希望每个数组对应一个
UICollectionView
,因此也对应一个
UITableViewCell
。func collectionView(_ collectionView:
UICollectionView
, numberOfItemsInSection section: Int) -> Int {return 5 func collectionView(_ collectionView: <em
浏览 6
提问于2020-03-02
得票数 2
2
回答
如何使用UITableview在集合视图中填充不同的数组值?
、
、
、
、
我是在
UICollectionView
的UITableView中创建的,在UItableview中填充数组值工作得很好,当试图将数组值填充到collectionView中时,在tableView的所有行的:
IndexPath
) ->
UITableViewCell
{ let cell : TableViewCell = tableView.dequeueReusableCell:
UICollectionView
, numberOfItemsInSection section: Int)
浏览 0
提问于2018-10-11
得票数 3
回答已采纳
1
回答
为每个区段返回相同值的嵌套
UICollectionView
-
Swift
、
、
、
、
我有一个嵌套在
UITableViewCell
中的
UICollectionView
。每个tableviewcell区段内的集合视图应根据区段返回不同的数据。:
IndexPath
) ->
UITableViewCell
{ return 300 } SectionTableViewCell.
swift
class SectionTable
浏览 17
提问于2020-04-13
得票数 0
回答已采纳
1
回答
如何在TableViewCell环境下通过CollectionViewCell来使用NavigationController
Swift
5 import UIKit let cell = self.myTableView.dequeueReusableCell(withIdentifierMyTableViewCell } import
浏览 32
提问于2019-05-26
得票数 1
2
回答
如何基于
indexPath
获取单元格文本?
、
、
、
、
设置一个自定义视图属性,然后推送视图控制器: - (void)tableView:(UITableView *)tblView didSelectRowAtIndexPath:(NSIndexPath *)
indexPath
浏览 8
提问于2010-05-24
得票数 19
回答已采纳
2
回答
Swift
-如何在
UITableViewCell
中使用CollectionViewCell打开另一个视图控制器
、
、
、
我是iOS/
Swift
的新手,我正在做一个小项目。在这个项目中,我在ViewController中有一个UITableView。我在side
UITableViewCell
中有另一个自定义的CollectionViewCell文件。这是我的uitableview
swift
文件: return cell fu
浏览 2
提问于2016-04-08
得票数 1
2
回答
CollectionView中的
Swift
2.3
IndexPath
错误
、
你好,我对iOS和
swift
有些陌生。我最近切换到了
swift
2.3,现在我得到了这个
错误
对于此方法,有什么想法吗?
浏览 0
提问于2016-10-17
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
如何给TableView、CollectionView添加动效
Ripple被指控对Swift错误率做出虚假声明
iOS TableView性能优化
局域网远程管理软件的错误处理与异常捕获(Swift编写)
从 0 到 1 搭建技术中台之 iOS 可视化埋点实践
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券