Search code examples
iphoneuitableviewios4multiple-columns

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


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?


Solution

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