문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top