How to dynamically add column headers to a tableView which has large number of columns in iPhone?

StackOverflow https://stackoverflow.com/questions/4817568

Pergunta

In my iPhone app, I have a horizontally scrolling tableView. It has 30 columns. The tableView is similar to gridView in ASP.Net.

How can I add the column headers in TableView header's section?

Foi útil?

Solução

Use tableView:viewForHeaderInSection: and tableView:heightForHeaderInSection: of in the table view delegate.

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