Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 25, 2008, 04:15 AM   #1
sujithkrishnan
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...

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??
sujithkrishnan is offline   0 Reply With Quote

Reply
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 04:35 AM.

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

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