通过控件获取cell
2024-08-25 20:29:21
#pragma mark - 通过控件获取cell
-(UITableViewCell*)GetCellFromTableView:(UITableView*)tableView Sender:(id)sender {
CGPoint pos = [sender convertPoint:CGPointZero toView:tableView];
NSIndexPath *indexPath = [tableView indexPathForRowAtPoint:pos];
return [tableView cellForRowAtIndexPath:indexPath];
}
最新文章
- Transaction (Process ID xxx) was deadlocked on lock
- 在 .NET 4.0 中使用 .NET 4.5 中新增的特性(CallerMemberNameAttribute/CallerFilePathAttribute/CallerLineNumberAttribute)
- Bzoj 2038---[2009国家集训队]小Z的袜子(hose) 莫队算法
- 阿里云 SWAP
- cppcheck
- ZOJ 3261 Connections in Galaxy War(逆向并查集)
- debian非正常关机进不了图形界面的解决方法
- bzoj3721 [PA2014 Final] Bazarek
- CF 338 D GCD Table(CRT)
- Sql Server 2008 卸载重新安装失败的解决办法!(多次偿试,方法均有效!)
- C++指针数组和指向指针的指针
- python基础之数据类型/字符串/元组/列表/字典
- 电脑突然使用不了复制粘贴快捷键,Ctrl+C和Ctrl+V没用
- preventDefault()、stopPropagation()、return false 的区别
- 51Nod1367 完美森林 贪心
- 超级牛皮的oracle的分析函数over(Partition by...) 及开窗函数 (转)
- Windows 7下载安装 Visual C++ 6.0(VC6) 全程图解
- 集合List
- 第六节 事务XML方式[声明方式]
- 『PyTorch』第五弹_深入理解Tensor对象_中上:索引