UITableView: section view doesn't scroll

Snapples
Snapples used Ask the Experts™
on
Hi all,

I got a little problem with a TableView. I have to use the Plain style but I need the header views to behave as if it were Grouped style. Now the header view will always remain on top of the screen, but I need it to scroll up along with the other rows.

Anyone have any ideas?
Thanks in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The function you are seeing is by design.  Have a look at contacts on your iPhone/iPad the title will stay at the top as you scroll.

One workaround which looks ok is to have a cell of zero height and add your header text to the footer of this cell. Which will look like it is the header to cell no 2.

Author

Commented:
Hi, thanks for the reply.
While that does fix my problem for the top of the page, now the footer at the bottom of the page tries to stay in place all the time, rather than move with it.
Yep you are right. As I said this function is by design. As you have it now is not as distracting, but I agree it is untidy.

Author

Commented:
Alright, since there's no other way to completely fix it, your footer solution is still much better than using the headers, so thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial