Browse files

added setAutoresizesSubviews:YES to the imageview

  • Loading branch information...
1 parent 580b4ff commit 3f792f61e5e73f245c693668f50ede654701c704 @ettore committed Dec 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 CLCGCell.m
View
1 CLCGCell.m
@@ -120,6 +120,7 @@ -(id)initWithImageWidth:(CGFloat)w
[[self detailTextLabel] setMinimumFontSize:9];
[[self detailTextLabel] setBaselineAdjustment:UIBaselineAdjustmentAlignCenters];
[[self imageView] setFrame:CGRectMake(padding, padding, w, h)];
+ [[self imageView] setAutoresizesSubviews:YES];
[[self imageView] setAutoresizingMask:UIViewAutoresizingNone];
[[self imageView] setContentMode:UIViewContentModeScaleAspectFit];
[[self textLabel] setFont:[UIFont boldSystemFontOfSize:15.0f]]; //reasonable default

0 comments on commit 3f792f6

Please sign in to comment.