Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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??
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.