PDA

View Full Version : UITableViewCell's text property




sujithkrishnan
Jun 25, 2008, 04:15 AM
Hi all.

In my iPhone app i am generating a table view, with cells having image and texts..
But some of the cells are not having images...

What i want is to align my cell.text in same alignment eventhough there is cell.image == nil or not..

That means if there is cell.image, display it..
else keep that space blank and cell.text starts after that...

ie..

//assume cell3 not have image

WHAT I WANT
cell1.image cell1.text
cell2.image cell2.text
< blank > cell3.text
cell4.image cell4.text

WHAT I AM GETTING NOW
cell1.image cell1.text
cell2.image cell2.text
cell3.text
cell4.image cell4.text

Is there any property associated with cell to fix its text starting point??