腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
TableView
-
未
调用
heightForRowAtIndexPath
ios
、
swift
、
uitableview
、
heightforrowatindexpath
在浏览完所有其他Stack Overflow表单之后,我已经为我的一个单元格实现了动态高度,如下所示: override func
tableView
(_
tableView
: UITableViewfont = UIFont(name: "Helvetica", size: 28) } func
tableView
(
tableView
: UITableView,
heightForRowAtIndexPath
indexPath: NSIndexPat
浏览 63
提问于2017-02-02
得票数 5
回答已采纳
1
回答
用setRowHeight函数设置UITableView单元格高度和
tableView
:
heightForRowAtIndexPath
: function有什么不同?
ios
我发现如果我用
tableView
:
heightForRowAtIndexPath
:设置它的高度,然后我想得到height的值,我会得到一个正确的值:但是一个错误的值,结果是44:但是如果我以另一种方式设置它-- setRowHeight:,我可以在这两种方式中都获得正确的值
浏览 1
提问于2013-10-16
得票数 3
1
回答
iOS8 UITableViewCell rowheight第一次不正确
uitableview
、
ios8
cellForRowAtIndex代码第2节中的weird.The单元格在其他情况下显示非常well.But,第二次(滚动
tableView
浏览 2
提问于2015-01-07
得票数 0
4
回答
(ExpandableTableView *)
tableView
heightForRowAtIndexPath
:(NSIndexPath *)
未
调用
ios
、
objective-c
、
uitableview
我正在使用库来制作可扩展的表视图--这是库 - (CGFloat)
tableView
:(ExpandableTableView *)
tableView
heightForSection:(NSUInteger)section; - (CGFloat)
tableView
:(ExpandableTableView *)
tableView
heightForRowAtIndexPath
:(
浏览 4
提问于2014-03-10
得票数 0
回答已采纳
1
回答
如何在单击时更改单个单元格的高度?
ios
、
uitableview
、
swift
、
ios8
、
xcode6
单击时,我必须调整
tableView
的一行大小。我怎么能做到这一点?有人能帮我吗?(
tableView
: UITableView!,
heightForRowAtIndexPath
indexPath:NSIndexPath) -> CGFloat { } } fu
浏览 0
提问于2014-07-24
得票数 10
回答已采纳
3
回答
在设备3GIOS4.0中不
调用
UITableView数据源方法
iphone
、
ios
、
user-interface
当我
调用
此代码时
HeightForRowAtIndexPath
调用
,但在第3节第0行的CellForRowAtIndexPath中
未
调用
。
浏览 1
提问于2011-07-04
得票数 1
回答已采纳
2
回答
` `
tableView
heightForRowAtIndexPath
`方法get
调用
的场景是什么?
ios
、
objective-c
、
uitableview
有人能解释一下
tableView
:
heightForRowAtIndexPath
方法的生命周期吗?在什么时候
调用
这个方法。除此之外,这个方法什么时候被
调用
?当我
调用
reloadData方法时,
tableView
:
heightForRowAtIndexPath
方法没有被
调用
。如何确保每当我
调用
reloadData方法时都会
调用
tableView
:
heightFor
浏览 0
提问于2014-10-01
得票数 1
1
回答
尝试动态调整UITableView在iOS中的大小时获得运行时异常
ios
、
objective-c
、
uitableview
代码允许用户成功地向
tableView
添加行,但是,当我尝试用它来调整表的高度时,我会得到一个运行时异常。%@", path); runningHeight += [self
tableView
:self.myTable
heightForRowAtIndexPath
:[NSIndexPath:
heightForRowAtIndexPath
::
未
识别的选择器发送到实例0x7f9d306adb0 2015-10-12 01:02:09.300 munch27412:5036
浏览 3
提问于2015-10-12
得票数 0
回答已采纳
3
回答
IOS:带有自定义uitableviewcell的动态高度
iphone
、
objective-c
、
ios
、
uitableview
、
ios4
我可以通过委托"
heightForRowAtIndexPath
“动态计算自定义单元格的高度。因此,在第一次加载时,所有内容都显示得非常好。所以我被困在这里一段时间了。我想知道你们谁能帮我个忙。提前谢谢你。############################################## // in my view c
浏览 1
提问于2011-08-20
得票数 10
回答已采纳
2
回答
如何从函数
调用
heightForRowAtIndexPath
objective-c
、
xcode
、
uitableview
]; if(indexPath != nil) { *Call
heightForRowAtIndexPath
here?* }还有我的
heightForRowAtIndexPath<
浏览 5
提问于2014-02-12
得票数 1
2
回答
如果我有一个自定义的单元格,我可以在
heightForRowAtIndexPath
中
调用
tableView
cellForRowAtIndexPathtableView来查找单元格的大小吗?
uitableview
、
height
、
cell
、
xib
我可以在
heightForRowAtIndexPath
中
调用
tableViewcellForRowAtIndexPathtableView来查找单元格的大小吗?
浏览 1
提问于2012-04-04
得票数 0
回答已采纳
2
回答
viewDidLayoutSubviews被
调用
后如何触发
tableView
的
heightForRowAtIndexPath
?
ios
、
uitableview
、
layoutsubviews
tableViewCell包含在
tableView
完成视图布局后计算的高度的viewController。所以我需要通过
调用
heightForRowAtIndexPath
方法来触发
tableView
再次请求行的高度。我试过setNeedsLayout,它不工作,系统不会
调用
heightForRowAtIndexPath
方法。viewDidLayoutSubviews时,reloadData将再次被
调用
,因此这是一个无限循环。我正在测试
tableView
浏览 3
提问于2014-10-15
得票数 1
3
回答
以数组为数据的NSRangeException在cellForRowAtIndexPath中的应用
ios
、
objective-c
、
arrays
、
uitableview
在一些罕见的情况下,我在
heightForRowAtIndexPath
中得到了一个
heightForRowAtIndexPath
,尽管numberOfRowsInSection使用的是相同的数组,例如:-(NSInteger)
tableView
:(UITableView *)
tableView
numberOfRowsInSection:(NSInteger)section return_listSearchResults.count; -(CGFloat)
tableView
:(UITa
浏览 5
提问于2015-11-20
得票数 0
4
回答
如何动态更改UITableView中单元格的高度?
ios
、
swift
、
uitableview
我将我的手机注册为桌面视图:我有我的
tableView
方法来填充我的表: var cell =
tableView
浏览 2
提问于2015-08-21
得票数 0
回答已采纳
3
回答
如何从nib文件加载UITableViewCell height?
ios
、
iphone
、
uitableview
我正在阅读苹果公司的,我正在尝试使用“静态行内容的技术”技术,用一个NIB文件中的单元格填充一个
TableView
。实现
tableView
:
heightForRowAtIndexPath
浏览 3
提问于2010-08-23
得票数 2
回答已采纳
3
回答
删除用于
heightForRowAtIndexPath
的“iOS8”
ios
、
ios7
、
ios8
、
deprecated
、
heightforrowatindexpath
======实际上,我使用委托方法tableViewCell管理iOS7中的
heightForRowAtIndexPath
的高度: 现在,在iOS8中,我使用了带有autolayout的属性
tableView
.rowHeight = UITableViewAutomaticDimension,它比以前工作得更好更好。问题是,我需要从代码中删除
heightForRowAtIndexPath
:方法,否则属性就不能工作(高度设置在内部,并控制属性)。
浏览 11
提问于2015-06-18
得票数 1
回答已采纳
1
回答
如何在Swift中扩展表视图单元格的高度?
ios
、
swift
、
tableview
、
swift2
、
tableviewcell
@IBAction func btnClick(sender: UIButton) {}override func
tableView
(
tableView
: UITableView,
heightForRowAtIndexPath
indexPath: NSIndexPath) -> CGFloat {} 但是,当我按下我的
浏览 2
提问于2015-10-04
得票数 2
回答已采纳
3
回答
在cellForRowAtIndexPath中更改UITableViewCell高度
iphone
、
objective-c
、
ios
我在
heightForRowAtIndexPath
方法中读到了很多关于它的内容,但是这个方法是在cellForRowAtIndexPath之前
调用
的,所以当
调用
heightForRowAtIndexPath
浏览 0
提问于2012-02-10
得票数 0
回答已采纳
1
回答
表格单元扩展滞后
ios
、
objective-c
、
tableview
、
tablecell
**[_
tableView
beginUpdates];** reviewCell1.bottomRatingView.top = reviewCell1.review.bottom; [_isExpandList replaceObjectAtIndex:index
浏览 2
提问于2014-04-29
得票数 0
1
回答
iOS触发器单元格
tableView
:
heightForRowAtIndexPath
:
ios
、
uitableview
我使用下面的代码来触发
tableView
:
heightForRowAtIndexPath
:[
tableView
endUpdates]; 但这会触发对所有行
调用
tableView
:
heightForRowAtIndexPath
:。是否可以仅为单行触发
调用
tableView
:
heightForRowAtIndexPath
:,或者是否有任何其他方法可以动态调整表格单元
浏览 3
提问于2013-10-09
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python基础教程 调用未关联的超类构造函数
区块链安全课堂:Soildity安全之未检查低级调用的返回值
如何给TableView、CollectionView添加动效
Chisel-xcode 下的调试神器
RxSwift和RxCocoa入门
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券