Possible Duplicate:
Some Gap remains between Table Top and Table Header only when table loads and scrolled down to the last row?
I am using Xcode.
self.mytable.tableheaderview=label;
By this code I can get the header but I can not freeze it…plz help
The best thing to do is create a
UIViewControllerwhich is aUITableViewDelegateandUITableViewDataSource, and have aUILabelat the top of theUIViewController‘s nib, and aUITableViewunderneath theUILabel. This will have the effect of having theUILabelstaying put in its position, with theUITableViewstill able to scroll like normal. Hope that Helps!