E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
indexPath
IOS 自定义代理协议Delegate
QuestionViewCell.h文件代码,定义代理协议@protocolQuestionViewCellDelegate-(void)cellIsOpenDidChangeAtIndexPath:(NSIndexPath*)
indexPath
OKXLIN
·
2025-01-25 08:28
ios
cocoa
macos
Swift Cell重用池机制以及UINib
functableView(_tableView:UITableView,cellForRowAtindexPath:
IndexPath
)->UITableViewCell{letreuseID="taskCell5555555
司南_01b7
·
2024-09-06 12:14
collectionViewCell防止复用的两种方法
UICollectionViewCell*cell=[collectionViewdequeueReusableCellWithReuseIdentifier:@“cell"forIndexPath:
indexPath
suiyuechenglao
·
2024-08-22 18:44
collectionView
iOS
collectionView
复用
swift - 私有访问权限
如图:屏幕快照2018-09-26下午2.29.47.png代码:privatetypealiasDidSelectedItemBlock=(_atIndexPath:
IndexPath
,_modelGroup
AZander
·
2024-02-10 05:18
tableview
tableview自适应高度functableView(_tableView:UITableView,heightForRowAtindexPath:
IndexPath
)->CGFloat{switchindexPath.section
花开半夏又一年
·
2024-02-07 20:27
分类upviewcell的collectionviewmodel的值
storeupViewCell*upviewCell=(storeupViewCell*)[self.tableViewcellForRowAtIndexPath:
indexPath
];//[upviewCellpassstring
summerTa
·
2024-02-07 07:37
OC TableView 根据内容获取高度 2
不用实现-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)
indexPath
方法cell.m
简书花花
·
2024-01-30 21:24
iOS开发中音频工具类的封装以及音乐播放器的细节控制
代码基于传统的Objective-C,需要的朋友可以参考下一、控制器间数据传递两个控制器之间数据的传递第一种方法:代码如下:self.parentViewController.music=self.music[
indexPath
.row
iOS鑫
·
2024-01-26 11:16
UICollectionViewCell的点击效果
-(BOOL)collectionView:(UICollectionView*)collectionViewshouldHighlightItemAtIndexPath:(NSIndexPath*)
indexPath
流沙3333
·
2024-01-24 13:37
UICollectionView使用中踩过的坑
UICollectionView的代理方法-(void)collectionView:(UICollectionView*)collectionViewdidSelectItemAtIndexPath:(NSIndexPath*)
indexPath
studyever
·
2024-01-19 02:40
(IOS)获取collectionViewCell在屏幕中的frame
UICollectionViewLayoutAttributes*attributes=[collectionViewlayoutAttributesForItemAtIndexPath:
indexPath
rightmost
·
2024-01-18 11:39
iOS 用editActionsForRowAtIndexPath:删除cell时候回出现崩溃
先上代码//删除cell操作-(NSArray*)tableView:(UITableView*)tableVieweditActionsForRowAtIndexPath:(NSIndexPath*)
indexPath
管乐_VICTOR
·
2024-01-18 06:26
UITableView-FDTemplateLayoutCell + 自动布局让 Cell 高度自适应
问题描述通常情况下,我们都是通过functableView(_tableView:UITableView,heightForRowAtindexPath:
IndexPath
)->CGFloat{return50
黑羽肃霜
·
2024-01-15 20:32
2023-05-06
tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)
indexPath
花开半夏又一年
·
2024-01-14 15:35
iOS UITableView 左滑删除
//侧滑允许编辑cell-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)
indexPath
{returnYES
龍飝
·
2024-01-09 14:12
iOS代码优化<一>避免庞大的if...else...
怎么避免冗余的if...else举个例子,在iOS开发中,经常会遇到在设置tableViewCell时需要根据
indexPath
来设置不同cell,一般代码可能会是下面这个样子:方法一:封装(表驱动法)
_苏丽君_
·
2024-01-07 22:23
iOS 关于点击cell时的一些状态设置
点击和非点击的代理回掉方法)选中状态的代理方法-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)
indexPath
iOS开发小学生
·
2023-12-28 08:40
UITableViewCell打钩
selectPath;//存放被点击的哪一行的标志-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)
indexPath
我一不小心就
·
2023-12-24 12:34
iOS UITableView Cell高度自适应方案
self.tableView.estimatedRowHeight=0;-(CGFloat)tableView:(UITableView*)tableViewestimatedHeightForRowAtIndexPath:(NSIndexPath*)
indexPath
芮淼一线
·
2023-12-22 03:31
iOS swift UITableview嵌套UICollectionView点击CollectionCell点击无效
视图解决方案:1、cellsubview配置//cell添加背景viewcell.backView.tag=
indexPath
.row//热门城市tag=-1cell.titleLabel.tag=-12
不二狗
·
2023-12-20 12:23
swift
ios
swift
ios
tableview设置setEditing时候,点击cell无效
tableViewsetEditing:YES];上面的方法造成-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)
indexPath
guoguojianshu
·
2023-12-06 13:07
UITableView高度优化
self.tableView.rowHeight=44;方式二-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)
indexPath
conowen
·
2023-12-03 07:06
2018-05-08 [OC] UITableViewCellReorderControl 改变默认图片
tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)
indexPath
搞技术的小星星
·
2023-12-02 11:56
iOS UITableViewCell 第一行和最后一行圆角设置
tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)
indexPath
文子飞_
·
2023-11-23 00:19
ios 开发问题小集 [持续更新]
文章目录一、如何给列表上的UITableViewCell添加手势二、获取NSIndexPath的方式2.1根据row,section来创建2.2根据point的位置来找到
indexPath
三、tableView
ReyZhang
·
2023-11-10 10:14
iOS开发小记
ios
tableview 刷新某一行,cell出现闪的现象
采用自适应高度,利用stackview动态改变每一行cell的高度,cell中自定义button,点击可将cell展开和折叠,这时调用了[tableViewreloadRowsAtIndexPaths:@[
indexPath
豆豆阳光啊
·
2023-11-05 18:36
iOS开发中判断UITableView滑动到哪个分区(section)
self.l_rightTab]){CGPointd=CGPointMake(scrollView.contentOffset.x,scrollView.contentOffset.y);//;NSIndexPath*
indexPath
yscGr
·
2023-11-03 16:35
关于cell复用的问题
tableViewdequeueReusableCellWithIdentifier:cellID];正确的方式应该是:UITableViewCell*cell=[tableViewcellForRowAtIndexPath:
indexPath
玉门山海关
·
2023-11-01 01:04
iOS-解决使用ReactiveCocoa时,点击Cell上Button了连续触发事件和发送通知、通知多次执行的问题
cell.rac_prepareForReuseSignal-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)
indexPath
Simple_Code
·
2023-10-31 09:52
flutter实现ListView头部悬浮,item多种高度
需要封装好的Widget可以看这篇:flutter实现ListView分组头部悬浮,支持混搭多种header、item、separator,支持
indexPath
跳转思路:借住Stack,底层是ScrollView
barnett_y
·
2023-10-31 01:57
【Flutter点滴知识
】
iOS 自定义UITabView左滑样式及滑动背景UISwipeActionPullView
UITableViewRowAction的背景色:-(NSArray*)tableView:(UITableView*)tableVieweditActionsForRowAtIndexPath:(NSIndexPath*)
indexPath
稻草人12138
·
2023-10-28 05:10
日常Ios开发常用的技巧
idleTimerDisabled=YES;2、隐藏某行cell-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)
indexPath
行走的神
·
2023-10-27 17:43
使用Reusable优化 UITableviewCell, UICollectionViewcell 的重用
在通常情况下我们tableview的datasource的写法是tableView.dequeueReusableCellWithIdentifier("Iden",forIndexPath:
indexPath
ScaryMonsterLyn
·
2023-10-25 07:31
UITableview 刷新某一个cell 或 Section, 获取cell
tableviewreloadSections:indexSetwithRowAnimation:UITableViewRowAnimationAutomatic];//一个cell刷新NSIndexPath*
indexPath
冉俊
·
2023-10-24 18:11
部署项目登陆后首页404解决方案
场景:本地跑项目正常,可访问首页;待部署后,登陆后跳转首页的路由,跳向了404页面;经检查,首页的路由写的是/home/
indexpath
:"/home",component:Layout,//name
RAY_CHEN.
·
2023-10-20 22:51
vue.js
elementui
javascript
iOS UITableView滚到最底部的坑
//获取到最后一个cell的indexletindexPath=
IndexPath
(row:row-1,section:self.messageList.count-1)tableView.scrollToRow
神秘嘉宾yzj
·
2023-10-17 09:57
关于TableViewIndexPath的注意点
效果图实现代码如下:-(UITableViewCell*)lh_tableView:(LHBaseTableView*)baseViewcellForRowAtIndexPath:(NSIndexPath*)
indexPath
高浩浩浩浩浩浩
·
2023-10-17 04:02
tableView 对section整体切圆角和加阴影
tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)
indexPath
神一样的队友
·
2023-10-16 23:06
ios CollectionView 的手势拖动cell交换
-(BOOL)beginInteractiveMovementForItemAtIndexPath:(NSIndexPath*)
indexPath
;-(void)updateInteractiveMovementTargetPosition
492b9b7cf804
·
2023-10-15 20:08
OC 开发最近碰到的小问题汇总(持续更新)
测试了很多次,并且发现本来tableView刷新的是带按钮cell的
indexPath
,但是itemView所在的cell也会自动刷新。后来调试发现,每次弹框出来消失的itemVi
不忘初心的初
·
2023-10-11 12:37
iOS 开发经验 - 转载
idleTimerDisabled=YES;2、隐藏某行cell-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)
indexPath
hyb1234hi
·
2023-10-11 01:21
跳转页面选择与逻辑
cell中界面的数据,就必须在-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)
indexPath
I烟雨云渊T
·
2023-10-10 02:24
ios开发
长按获取
indexPath
UILongPressGestureRecognizer*)gesture{CGPointpoint=[gesturelocationInView:self.tableView];NSIndexPath*
indexPath
seventhboy
·
2023-10-06 19:13
Swift-UITableView编辑模式自定义右侧拖拽标签
//改系统cell拖动图标functableView(_tableView:UITableView,willDisplaycell:UITableViewCell,forRowAtindexPath:
IndexPath
打雷要下雨_雷欧
·
2023-10-04 17:57
关于tableView:cellForRowAtIndexPath:中的if else
时经常会出现的经典的ifelse:-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)
indexPath
二丁目90
·
2023-10-02 09:03
UITableViewCell的一些动画
tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)
indexPath
我还只是个孩子啊
·
2023-10-01 23:02
优雅的实现TableViewCell单选
分享一个cell做单选的思路可行的思路在tableview的控制器中设立一个变量记录选择的
indexPath
,点击cell之后刷新表格来和现有
indexPath
对比和第一种大同小异,做一个和dataArr
上冬十二
·
2023-09-30 05:41
TableView重用问题
2.Tableview重用时
indexpath
.row可能会超过原有的数量,在didselect方法和cellForRowAtIndexPath中需要做判断,以免造成数组越界
ForzaJuven
·
2023-09-29 19:42
Vue CLI webpack配置属性——filenameHashing
/assets',
indexPath
:'index.html',filenameHashi
xingchen678
·
2023-09-29 12:06
webpack
vue
Swift泛型高阶使用-自定义dataSource 几行代码完成tableView/collectionView配置
UITableView()self.view=tableViewdataSource=TableViewNormalDataSource.init(configureCell:{(table,model,
indexPath
J扣歪
·
2023-09-29 04:57
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他