iOS*_*dev 1 iphone xcode objective-c uitableview
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;
}
Run Code Online (Sandbox Code Playgroud)
这里显示两个标签文本labe,detailTextLabel.
但不是我想要的位置.
我需要从单元格的起始位置显示Textlable(0,0)并且immidiate右侧位置是detailTextlabel两个标签之间没有间隙.
归档时间: |
|
查看次数: |
11668 次 |
最近记录: |