腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(9999+)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
tableView:
IndexPath
*总是返回零
IndexPath
= [self.tableView indexPathForRowAtPoint:point]; return; }
浏览 2
修改于2013-11-03
得票数 2
回答已采纳
1
回答
IndexPath
混淆
当我使用单元格
indexPath
向特定单元格添加子视图时,该子视图也会被添加到表格视图其他部分的其他单元格中。"checked")任何建议都将不胜感激。
浏览 0
提问于2015-03-09
得票数 0
4
回答
collectionView: UICollectionView,didSelectItemAt
indexPath
:
IndexPath
未执行
这是我的collectionViewCell图片。 ? 我在tableViewCell中有collectionView,在collectionViewCell中有一个按钮,它可以完美地按照我的愿望工作。但是让我困扰的是函数didSelectItemAt没有被调用。 我试着用 mycollectionview.isUserInteractionEnabled = true mycollectionview.allowsSelection = true 但还是不起作用。正如我在某处读到的那样,collectionViewCell中的按钮是它背后的原因。如果是这样,我如何解决这个问题。
浏览 55
修改于2019-01-31
得票数 0
2
回答
错误:“inout
IndexPath
”不能转换为“
IndexPath
”
但是,由于“inout
IndexPath
”不能转换为“
IndexPath
”,所以我收到了错误。如何解决这个错误?
浏览 5
修改于2016-12-28
得票数 2
回答已采纳
1
回答
didSelectRowAt
indexPath
:
IndexPath
-总是返回前面的选择
:
IndexPath
) {public func tableView(_ tableView: UITableView, cellForRowAt
indexPath
:
IndexPath
) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier
浏览 0
修改于2018-09-10
得票数 0
回答已采纳
1
回答
为什么
indexPath
和
IndexPath
都不被接受?
我创建了这两个函数: let indexPathForFirstRow =
indexPath
} let cell = self.selectedCell(at:
IndexPath
) cell.backgroundcolor = sender.currentTitleCol
浏览 0
提问于2018-10-02
得票数 0
1
回答
indexPath
和
indexPath
.row的区别(iphone)
我搞混了
indexPath
和
indexPath
.row,tableView的每个单元都对应一个
indexPath
吗?那么为什么我们要寻找这个
indexPath
的“行”呢?NSArray *visiblePaths = [self.tableView indexPathsForVisibleRows]; { AppRecord *appRecord = [self.
浏览 3
提问于2011-08-20
得票数 2
回答已采纳
2
回答
iOS
indexpath
.row和
indexpath
.section
在我的didSelectRowAtIndexPath方法中,当我使用
indexPath
.section或
indexPath
.row时,我总是得到错误的结果。
浏览 0
修改于2014-09-01
得票数 0
1
回答
获取URL - UITextView应与
IndexPath
处的
indexPath
交互
当用户点击链接时,我想不出一种方法来获取
IndexPath
。它将发送到链接并触发函数,但我无法获取
indexPath
。我到处都找过了,但没有相关的文档。永远欠你一点人情,因为我一直在为这件事而挣扎。
浏览 7
提问于2019-04-05
得票数 0
回答已采纳
3
回答
如何将
indexPath
数组拆分为独立的
indexPath
数组,每个数组的
indexPath
具有相同的
indexPath
.section
最近我想根据indexPaths删除单元格,所以函数的输入参数是[
IndexPath
]类型,我需要根据
indexPath
.section将
IndexPath
拆分成几个数组,有什么简单的方法吗?例如[
IndexPath
(row: 0, section: 1),
IndexPath
(row: 2,section: 1),
IndexPath
(row: 2, section:
浏览 0
修改于2019-06-16
得票数 1
回答已采纳
2
回答
@[
indexPath
]做什么?
tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)
indexPath
editingStyle == UITableViewCellEditingStyleDelete) Message *message = [messageList objectAtIndex:
indexPath
.rowmessage.peer]; [messageList removeObj
浏览 4
修改于2013-09-04
得票数 5
回答已采纳
2
回答
indexPath
值UICollectionView
在使用UICollectionView时,我对获取didSelectItemAtIndexPath方法的
indexPath
值感到困惑。= [NSString stringWithFormat:@"%@",[FileList objectAtIndex:
indexPath
.item]];
浏览 3
修改于2012-10-06
得票数 5
1
回答
UICollectionView sizeForItemAt
IndexPath
collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt
indexPath
:
IndexPath
) -> CGSize { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "timeline", for:
indexPath
) as?
浏览 7
修改于2017-05-13
得票数 1
5
回答
tableViewCell的
indexPath
我有一个自定义的方法来检测对细胞图像的点击。我还希望找到图像的相关单元格的索引路径,并在函数中使用它。下面是我正在使用的:UITapGestureRecognizer *tapped = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cellImageTapped:)];[cell.imageView addGestureRecognizer:tapped]; 方法im尝试在以下位置获取索
浏览 0
提问于2013-10-18
得票数 2
1
回答
UITableViewCell委托
indexPath
当我点击这个单元格的
indexPath
按钮时,它通过委托传递给viewController,然后用另一种方法下载一些数据并显示它在progressBar中的进展情况。下面是viewController中的委托方法: songs[
indexPath
.row].isTapped= true
浏览 3
修改于2017-09-14
得票数 3
回答已采纳
2
回答
indexPath
为零
= self.table.indexPathForRow(at: position) UITableViewCell print (currentAnimalArray[(
indexPath
?.name) func tableView(_ tableView: UITableView, cellForRowAt
indexPath
:
IndexPath
) -> U
浏览 1
提问于2018-08-27
得票数 0
回答已采纳
1
回答
如何获取
IndexPath
我正在尝试让
indexPath
.row值在以编程方式创建的tableview中选择的行的基础上执行一些操作。NSUInteger nRows = [myTableView numberOfRowsInSection:nSections];NSLog(@"No of rows i
浏览 1
修改于2012-01-20
得票数 2
3
回答
indexPath
调整iPhone
所以我需要修改每次调用- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)
indexPath
方法时获取这些数组对象的
indexPath
。如果我尝试创建一个本地变量并更新
indexPath
.row的本地版本,它会告诉我它是只读的。 实现这一点的最佳方式是什么?
浏览 0
提问于2011-09-13
得票数 0
回答已采纳
1
回答
HeightForRowAt
indexPath
问题
= 60 let cellIdentifier = self.tableCells[
indexPath
.row] height = self.addBtnCellHei
浏览 1
提问于2018-02-07
得票数 0
回答已采纳
1
回答
检测
indexPath
FocusUpdate
如何用这段代码获得和检测集中在collectionView中的项的collectionView?{}
浏览 1
提问于2015-11-25
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券