Minor formatting changes to TweetTableViewCell
This commit is contained in:
parent
24f2300579
commit
ad2ff07d6e
1 changed files with 2 additions and 1 deletions
|
|
@ -63,6 +63,7 @@
|
||||||
|
|
||||||
+ (CGFloat)heightForCellWithTweet:(Tweet *)tweet {
|
+ (CGFloat)heightForCellWithTweet:(Tweet *)tweet {
|
||||||
CGSize sizeToFit = [tweet.text sizeWithFont:[UIFont systemFontOfSize:12.0f] constrainedToSize:CGSizeMake(220.0f, CGFLOAT_MAX) lineBreakMode:UILineBreakModeWordWrap];
|
CGSize sizeToFit = [tweet.text sizeWithFont:[UIFont systemFontOfSize:12.0f] constrainedToSize:CGSizeMake(220.0f, CGFLOAT_MAX) lineBreakMode:UILineBreakModeWordWrap];
|
||||||
|
|
||||||
return fmaxf(70.0f, sizeToFit.height + 45.0f);
|
return fmaxf(70.0f, sizeToFit.height + 45.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,8 +71,8 @@
|
||||||
|
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
[super layoutSubviews];
|
[super layoutSubviews];
|
||||||
self.imageView.frame = CGRectMake(10.0f, 10.0f, 50.0f, 50.0f);
|
|
||||||
|
|
||||||
|
self.imageView.frame = CGRectMake(10.0f, 10.0f, 50.0f, 50.0f);
|
||||||
self.textLabel.frame = CGRectMake(70.0f, 10.0f, 240.0f, 20.0f);
|
self.textLabel.frame = CGRectMake(70.0f, 10.0f, 240.0f, 20.0f);
|
||||||
|
|
||||||
CGRect detailTextLabelFrame = CGRectOffset(self.textLabel.frame, 0.0f, 25.0f);
|
CGRect detailTextLabelFrame = CGRectOffset(self.textLabel.frame, 0.0f, 25.0f);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue