滚动行时无法冻结表标题? [英] Cannot freeze the table header while scrolling the rows?
本文介绍了滚动行时无法冻结表标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Xcode。
I am using Xcode.
self.mytable.tableheaderview=label;
通过这个代码我可以得到的头,但我不能冻结它... plz help
By this code I can get the header but I can not freeze it...plz help
推荐答案
最好的做法是创建一个 UIViewController
c $ c> UITableViewDelegate 和 UITableViewDataSource
,并在顶部有一个 UILabel
UIViewController
的 nib 以及下方的
。这将有 UITableView
UILabel
保持其位置的效果, UITableView
仍然能够像正常滚动。希望有帮助!
The best thing to do is create a UIViewController
which is a UITableViewDelegate
and UITableViewDataSource
, and have a UILabel
at the top of the UIViewController
's nib, and a UITableView
underneath the UILabel
. This will have the effect of having the UILabel
staying put in its position, with the UITableView
still able to scroll like normal. Hope that Helps!
这篇关于滚动行时无法冻结表标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文