Skip to content

Commit

Permalink
Fixed error in autoResizingMask, changed logic OR to bitwise OR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Bøgh committed Apr 18, 2011
1 parent 3eec1b1 commit ad03cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HJCacheClasses/HJManagedImageV.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ -(void) setImage:(UIImage*)theImage {
[imageView removeFromSuperview];
self.imageView = [[[UIImageView alloc] initWithImage:theImage] autorelease];
imageView.contentMode = UIViewContentModeScaleAspectFit;
imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight );
imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight );
[self addSubview:imageView];
imageView.frame = self.bounds;
[imageView setNeedsLayout];
Expand Down

0 comments on commit ad03cf4

Please sign in to comment.