CGSize size = [nameLabel.text sizeWithFont:nameLabel.font constrainedToSize:CGSizeMake(100.0f, 20.0f) lineBreakMode:NSLineBreakByTruncatingTail]; nameLabel.frame = CGRectMake(imageview.frame.origin.x + imageview.frame.size.width + 10, 15, size.width, 16);
转载于:https://my.oschina.net/u/2258005/blog/336669