diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-22 14:24:49 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-22 14:24:49 -0400 |
commit | 2f149ab70eebd5b6a0c1c89528f1db0b2396fd26 (patch) | |
tree | 1139c6e4f39a318eba95d22d673a46e91b6618d8 /Classes | |
parent | c18cefa94f79bb0c1ca8f3b0499f53b6396a2a9c (diff) | |
download | piccast-app-2f149ab70eebd5b6a0c1c89528f1db0b2396fd26.tar.gz piccast-app-2f149ab70eebd5b6a0c1c89528f1db0b2396fd26.zip |
move where image gets cropped
Diffstat (limited to 'Classes')
-rwxr-xr-x | Classes/HJManagedImageV.m | 6 |
1 files changed, 2 insertions, 4 deletions
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 ); |