From 2f149ab70eebd5b6a0c1c89528f1db0b2396fd26 Mon Sep 17 00:00:00 2001 From: matt handler Date: Fri, 22 Apr 2011 14:24:49 -0400 Subject: move where image gets cropped --- Classes/HJManagedImageV.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Classes') diff --git a/Classes/HJManagedImageV.m b/Classes/HJManagedImageV.m index eb83f7d..4bab846 100755 --- a/Classes/HJManagedImageV.m +++ b/Classes/HJManagedImageV.m @@ -200,10 +200,8 @@ [imageView removeFromSuperview]; - if (squareCropped) - self.imageView = [[[UIImageView alloc] initWithImage:[theImage imageByScalingAndCroppingForSize:CGSizeMake(100,100)]] autorelease]; - else - self.imageView = [[[UIImageView alloc] initWithImage:theImage] autorelease]; + + self.imageView = [[[UIImageView alloc] initWithImage:theImage] autorelease]; imageView.contentMode = UIViewContentModeScaleAspectFit; imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight ); -- cgit v1.2.3