Pergunta

I have a section where I would like to customize the left area of a section a TableView - a bit like viewForHeaderInSection.

I have thought at using a cell for the section instead, but it would be a lot of nitty-gritty.

Foi útil?

Solução

If I understand your question correctly, you want to customise the left-hand-side of some, or every cell in a UITableView? Then you need to make create your own custom table view cells. I normally make these cells in Interface Builder; this post helped me out. See also the Customizing Cells section of Apple's Table View Programming Guide for iOS.

Outras dicas

I read your question to mean that there is one custom element to the left of a bunch of cells. The only way I know of offhand is to use a cell as you describe and then have a left view and a tableview inside of it.

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