- In my table view i was using UITableviewCEllStyleValue1:
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = @"Hai";
cell.detailTextLabel.text = @"Hello";
cell.detailTextLabel.textAlignment = UITextAlignmentLeft;
cell.textLabel.textAlignment = UITextAlignmentLeft;
return cell;
}
-
Here two labels text labe, detailTextLabel are displayed.
-
but not in the position what i want.
-
I need to display Textlable from starting position of the cell (0,0) and immidiate right side position is detailTextlabel no gap between two labels.
- I need a solution with out using Allignment. what to do?
You have to create custom cell for this. like this,