Is there a more useful explanation for UITableViewStylePlain?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-04-09T09:31:04Z
Indexed on
2010/04/09
9:33 UTC
Read the original article
Hit count: 484
iphone
|uitableview
From the docs:
In the plain style, section headers and footers float above the content if the part of a complete section is visible. A table view can have an index that appears as a bar on the right hand side of the table (for example, "a" through "z"). You can touch a particular label to jump to the target section.
I find that very hard to grasp. First, this one:
if the part of a complete section is visible
What do they mean by this? This is paradox. Which one is it?
A) Table must be exactly the height of that section. If I have 5 Rows, and each row is 50px high, I must make it 5*50 high. The full section must be visible on the screen. Otherwise, if I have 100 rows but my table view is only 400 high, this will not apply. Nothing will float above my content. Sounds wrong.
B) It doesn't matter how high my table view actually is. Header and Footer is floating above the content and I can scroll the section. Makes more sense. But is completely against this nonsense making sentence: 'if the part of a complete section is visible'
Can anyone explain it better than they did?
© Stack Overflow or respective owner