What I need is something like that (which iOS already does natively):
When you have a scrollable list with item-dividers, after the item-divider goes out of the screen upwards, it sticks to the header until the next item-divider changes place with it.
I don’t know if I made it clear. But you can check it out on iOS’s Contacts app: The item-dividers are the letters, and when they leave screen, they are attached to the header and keep being visible while you scroll the items in its category.