Several Custom UITableViewCells in one NIB - how to refer to in code?

Create one empty nib and add table view cells to it. Also, for each of them create a corresponding class and assign the relevant class for each of them (see the screenshot).

Create one empty nib and add table view cells to it. Also, for each of them create a corresponding class and assign the relevant class for each of them (see the screenshot). Then, in the cellForRowAtIndexPath you'll need to create different cells based on indexPath.row.

Thanks. I think you've misunderstood my question, or I didn't make myself clear enough. All of the cells have the same IBOutlets, so I wanted them to use the same class.

I've solved the problem by changing the tag in IB for each Cell and then refering to them thus: if ((TableCellWithLogo *)currentObject tag == 1) cell = (TableCellWithLogo *)currentObject; etc – cannyboy Oct 29 '10 at 22:11 Oh, sorry about that. Glad to hear you've found a way. – Paul Ardeleanu Oct 29 '10 at 22:23.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions