Pergunta

In iOS, what do you call that element that attaches to the top of the screen when you scroll past it in a list (think the single letters in the Contact List). This is driving me nuts.

Foi útil?

Solução

i'm not sure this is even a full question, but the answer is 'section'. If you're table style is plain, the section title will behave like the A-Z in the iPhone contacts screen
http://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewController_Class/Reference/Reference.html

Outras dicas

It is the section header of a UITableView. Its appearance depends on the tableview style. Like in the contacts app, like header stay at the top of the section unless the top of the section is off the screen and there are rows in the section which are still visible.

Like in the settings app the header just appears as text on the striped background and scrolls with the table view no matter what. It doesn't ever get attached to the top.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top