Small gaps in section headers with custom headers - iPhone / Objective-C
Posted
by
zhar
on Stack Overflow
See other posts from Stack Overflow
or by zhar
Published on 2010-12-29T09:51:28Z
Indexed on
2010/12/29
9:54 UTC
Read the original article
Hit count: 288
Hi there! Since I wanted to use the standard section header with a different font size, I just made custom section headers by using an UIImageView with the standard section header as an image. It looks fine at first, but when I scroll the table, there are small gaps below and above the section headers:
Since I am not allowed to post images or more than one hyperlink yet, I will have to provide you with one link to those images: Click me!
- Picture: How it looks like without touching anything
- Picture: Dragging the table down
- Picture: Dragging/Scrolling the table up
So as you can hopefully see, there is a small empty gap under (2nd pic) and above (3rd pic) the section header. Another thing to mention is, that the standard behaviour of non-custom section headers is, that they don't become transparent when I drag the table down (making the table offset < 0.0). Is there a way to make custom section headers mimic the same behaviour without those annoying gaps?
Greetings, Zhar
© Stack Overflow or respective owner