views:

30

answers:

1

I want to customize UITableViewCell by adding UILabel and two UIButton as its subview. The cell style will be UITableViewCellStyleSubtitle and these three items would have to next (on the left) of detailTextLabel.But when i do this, detailTextLabel overlaps with these items and display clipped or partial subviews. Any way to handle out this without subclassing UITableViewCell if possible. Thanks.

+1  A: 

do you want to display something with detailTextLabel? If not you could try to hide it.

cell.detailTextLabel.hidden = YES;

otherwise you could add another Label at a better position which displays your detailText

fluchtpunkt
yes this is why i am using CellStyle as subtitle, and detailtextlabel is only 1/5 width of the cell where remaining will be occupied by UIButtons and UILable.
KayKay
so add another label that replaces the detaillabel and size it so it doesn't get in conflict with your other views. I don't know of any way to change the position of the detailTextLabel.
fluchtpunkt