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
NSIndexPath
iOS 9 中scrollToRowAtIndexPath 定位不准确,无法滚动到指定位置
解决:使用dispatch_async(dispatch_get_main_queue(),方法解决大部分情况如下:
NSIndexPath
*indexPath=[NSIndexPathindexPathForRow
橙_知足常乐
·
2023-08-21 01:48
UICollectionView的单选
//点击选定-(void)collectionView:(UICollectionView*)collectionViewdidSelectItemAtIndexPath:(
NSIndexPath
*)indexPath
lfl18326162160
·
2023-08-16 20:56
ios
单选
ios tableview 单选
1声明一个标示selectindex包含selection和row@property(nonatomic,assign)
NSIndexPath
*selectIndex;2设置默认选中第一个self.selectIndex
Skysama
·
2023-08-04 02:18
tableview的section添加圆角和阴影
的方法-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(
NSIndexPath
guoguojianshu
·
2023-07-30 19:51
2018-07-10 解决TableView页面刷新跳动问题
//解决页面刷新跳动问题[UIViewsetAnimationsEnabled:NO];
NSIndexPath
*indexPath=[NSIndexPathindexPathForRow:model.indexPath.rowinSection
绿茵奔腾者
·
2023-07-25 03:28
tableView多选 & collectionView多选
method1self.tableView.allowsMultipleSelection=YES;//允许多选选中-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(
NSIndexPath
zmjchuan
·
2023-07-18 20:46
一个信息输入tableView
给输入列表加边框-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(
NSIndexPath
碧玉小瑕
·
2023-06-21 19:33
reloadRowsAtIndexPaths 崩溃
attempttodeleterow44fromsection0whichonlycontains0rowsbeforetheupdate导致的崩溃(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
握青春
·
2023-06-12 19:24
两个CollectionView 公用一个collectionViewLayout结果
两个collectionView的cell不显示,也不调用collectionView:(UICollectionView*)collectionViewcellForItemAtIndexPath:(
NSIndexPath
小家子店铺
·
2023-04-21 15:56
(原创)iOS 左滑删除,左滑时修改tableview中的样式
tableview设置各种代理事件//设置可删除-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(
NSIndexPath
*)indexPath
khan.zhang
·
2023-04-21 13:58
iOS
iOS 滑动删除 自定义图片
UISwipeActionsConfiguration*)tableView:(UITableView*)tableViewtrailingSwipeActionsConfigurationForRowAtIndexPath:(
NSIndexPath
ONE2
·
2023-04-17 13:59
仿微信UITableViewCell 左滑删除、确认删除
添加基本方法-(UITableViewCellEditingStyle)tableView:(UITableView*)tableVieweditingStyleForRowAtIndexPath:(
NSIndexPath
Mr_墨
·
2023-04-17 03:47
2019-12-12 OC cell自适应高度
-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(
NSIndexPath
*)indexPath{NSDictionary
浪高达
·
2023-04-13 23:43
iOS 滑动UITableView,UITextField文字消失的解决办法
cellForRowAtIndexPath里面给为:-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
布谷布谷7788
·
2023-04-12 09:48
iOS中的循环引用种类
所以cell中tableView应该用weak关键字-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
KevinChein
·
2023-04-10 21:15
编辑tableview, editActionsForRowAtIndexPath
//可编辑-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(
NSIndexPath
*)indexPath{if(self.currentIndex
Yancy007
·
2023-04-02 02:53
左滑删除
nullableUISwipeActionsConfiguration*)tableView:(UITableView*)tableViewtrailingSwipeActionsConfigurationForRowAtIndexPath:(
NSIndexPath
dy吾爱
·
2023-03-27 04:04
TableView调整系统分割线样式
调整分割线样式-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(
NSIndexPath
Operation
·
2023-03-24 19:51
tableView 左滑 修改文字颜色和背景色
加上去就可以跑了(NSArray*)tableView:(UITableView*)tableVieweditActionsForRowAtIndexPath:(
NSIndexPath
*)indexPath
William8
·
2023-03-24 08:48
ios UITableView 侧滑删除按钮定制
UITableViewDelegate,UITableViewDataSource-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(
NSIndexPath
骆子_626d
·
2023-03-23 15:16
Cell背景色,子控件颜色问题
2.方法,但是点击时会有自带的灰色背景tableView选中时背景颜色-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(
NSIndexPath
三思的简书
·
2023-03-20 15:29
tableView 刷新 抖动解决办法
tableView刷新抖动解决办法-(CGFloat)tableView:(UITableView*)tableViewestimatedHeightForRowAtIndexPath:(
NSIndexPath
小李小李一路有你
·
2023-03-20 03:36
iOS 小知识
UITableView*)tableViewcommitEditingStyle:(UITableViewCellEditingStyle)editingStyleforRowAtIndexPath:(
NSIndexPath
Mossion
·
2023-03-18 22:57
iOS11 TableView左滑删除无线拉伸
-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(
NSIndexPath
*)indexPath{returnYES;}-(UITableViewCellEditingStyle
114105lijia
·
2023-03-18 13:11
iOS开发小功能汇总
idleTimerDisabled=YES;2、隐藏某行cell-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(
NSIndexPath
隔墙送来秋千影
·
2023-03-18 01:05
collectionView的间距设置
UICollectionView*)collectionViewlayout:(UICollectionViewLayout*)collectionViewLayoutsizeForItemAtIndexPath:(
NSIndexPath
Kakarot001
·
2023-03-16 00:42
动画展示tableViewCell
加动画-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(
NSIndexPath
Else丶
·
2023-03-15 18:57
collectionView reloadData方法不走cellForItemAtIndexPath代理
复现场景:先在一个方法中调用
NSIndexPath
*indexPath=[NSIndexPathindexPathForRow:3inSection:0];[Self.collectionViewreloadItemsAtIndexPaths
th先生
·
2023-03-12 15:59
ViewController的瘦身
可以把view的datasource放到一个单独的类,比如UITableViewDataSource@implementationArrayDataSource-(id)itemAtIndexPath:(
NSIndexPath
骑蜗牛兜风
·
2023-03-12 09:40
一句话找到TableView对应的cell
NSIndexPath
*indexPath=[NSIndexPathindexPathForRow:0inSection:0];//找到对应的cellXHUserTableViewCell*nextCell
lalala1112389
·
2023-03-11 23:41
tableView默认显示最底下
默认滑到最底下-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(
NSIndexPath
今年27
·
2023-02-17 05:55
ZFPlayer 抖音样式(Douyin style) 播放闪烁 #970
的初始化注视掉然后在ZFDouyinCollectionViewController的viewDidLoad里面加入self.player.zf_playerShouldPlayInScrollView=^(
NSIndexPath
ai_yo
·
2023-02-06 14:36
UITableView性能优化篇
1、cell复用-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
*)indexPath
教父_572e
·
2023-02-06 09:30
iOS 14.2系统下shouldSelectItemAtIndexPath自动触发
UICollectionview会自动触发下面的方法:-(BOOL)collectionView:(UICollectionView*)collectionViewshouldSelectItemAtIndexPath:(
NSIndexPath
BoASir
·
2023-02-05 22:30
UITableView
return@[@"haha",@"lala"]}当选中某一行时弹出输入弹框-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(
NSIndexPath
xiaocaoera
·
2023-02-05 10:38
获取collection的高度
UICollectionView*)collectionViewlayout:(UICollectionViewLayout*)collectionViewLayoutsizeForItemAtIndexPath:(
NSIndexPath
韩喵
·
2023-02-04 09:17
TableView 点击cell,改变选中cell的高度
定义NSMutableDictionary*selectedIndexes;(BOOL)cellIsSelected:(
NSIndexPath
*)indexPath;-(void)viewDidLoad
Flutter求学者
·
2023-02-01 15:25
根据网络图片布局cell的大小
主要利用SDImageCache的缓存的机制,在-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(
NSIndexPath
888zq
·
2023-01-28 18:42
iOS开发 tableview左滑删除(两种),浅记一下~
方法一、iOS8-iOS10#pragmamark左滑删除iOS8-iOS10-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(
NSIndexPath
小y想吃糖
·
2023-01-27 16:01
按位与或取反(|&~)在项目中的运用
(KKUserInfoShowMask)getUserInfoShowMaskWithIndexpath:(
NSIndexPath
*)indexPathandSwitchOn:(BOOL)isOn{NSString
MisYing
·
2023-01-26 13:12
2018-12-20
////表格数据源方法//-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
*)
小美788
·
2023-01-26 03:39
becomeFirstResponder可能失效的一种情况
UITableViewCell上有UITextField,在-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(
NSIndexPath
Mage
·
2022-09-23 17:39
iOS 左右列表联动sectionheader悬停偏移量问题
-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(
NSIndexPath
*)indexPath{if(tableView=
0o简单o0
·
2022-08-26 15:28
iOS常用笔记
1.
NSIndexPath
初始化
NSIndexPath
*indexPath=[NSIndexPathindexPathForRow:0inSection:1];2.监听textField输入字符串长度[
龙子陵
·
2022-07-28 10:03
iOS tableviewcell自适应高度的笔记
UITableViewDelegate中,任何返回cell高度的代理方法:-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(
NSIndexPath
突刺刺
·
2022-05-12 16:04
UITableView的常用代理方法
//设置行高-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(
NSIndexPath
*)indexPath{return80
Roger_单
·
2022-02-20 21:22
indexpath获取cell
UITableViewCell*cell=(UITableViewCell*)[btnsuperview];
NSIndexPath
*indexPath=[_myTableViewindexPathForCell
楠Y
·
2022-02-20 01:42
UICollectionView详解:3-代理协议:点击Cell
集合视图代理协议:点击Cell点击单元格-(void)collectionView:(UICollectionView*)collectionViewdidSelectItemAtIndexPath:(
NSIndexPath
赵亦晨
·
2022-02-17 15:03
iOS禁用UITableView的复用机制
consttwoID=@"TwoDetailCell";-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(
NSIndexPath
CoderZb
·
2022-02-17 14:20
HS1.6版本所得[未完待续]
比如QQ微信,数据的加载方式和显示方式和通常的tableView的是不一样的,一般最新的数据是索引都是靠在最前的,最新的数据显示到最后,这里有两个点tableView滚动到底部letindexPath=
NSIndexPath
小白猿
·
2022-02-15 21:47
上一页
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
其他