协调的UILabel我有它由海关细胞的tableview。 每个单元的总共具有三个标签。意外的Y的UITableView
的主要问题是电池的三个标签的中间标签的形成。
我创建具有相同的CGRect自定义标签一样
UILabel *msglabeltemp = [[[UILabel alloc] initWithFrame: CGRectMake(80,20.0,230.0,80.0)] autorelease];
[cell.contentView addSubview:msglabeltemp];
msglabeltemp.backgroundColor = [UIColor clearColor];
msglabeltemp.textColor = [UIColor grayColor];
msglabeltemp.numberOfLines=6;
[msglabeltemp setFont:[UIFont fontWithName:@"Helvetica Neue" size:12.0f]];
msglabeltemp.tag=1;
msglabeltemp.font=[UIFont systemFontOfSize:12.0f];
msglabeltemp.textAlignment=UITextAlignmentLeft ;
//Adding Label To Cell
UILabel *msglabel = (UILabel *)[cell.contentView viewWithTag:1];
msglabel.text = [data1 objectForKey:@"msg"];
...这个标签将被要求在小区内的每个标签,但它是赠送的第一和中间标签之间未预期的距离。
看到红色的图像