Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Jun 25, 2008, 04:15 AM   #1
macrumors 6502
Join Date: May 2008
Location: Bangalore
Send a message via Yahoo to sujithkrishnan
UITableViewCell's text property

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...


//assume cell3 not have image

cell1.image cell1.text
cell2.image cell2.text
< blank > cell3.text
cell4.image cell4.text

cell1.image cell1.text
cell2.image cell2.text
cell4.image cell4.text

Is there any property associated with cell to fix its text starting point??
sujithkrishnan is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
center uitableviewcell into table frame kikko088 iPhone/iPad Programming 0 Jan 21, 2014 07:19 AM
UITableViewCell Separator Not Resizing on Rotate Sean7512 iPhone/iPad Programming 2 Sep 3, 2013 06:36 AM
Passing UIImage from UITableViewCell to another controller veliborsantic74 iPhone/iPad Programming 3 Sep 20, 2012 06:25 AM
Custom Delete UITableViewCell mdhansen5 iPhone/iPad Programming 1 Jun 1, 2012 10:41 AM

Forum Jump

All times are GMT -5. The time now is 07:04 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC