Permalink
Browse files

reasonable -sizeThatFits: for TUIImageView

  • Loading branch information...
joshaber committed May 18, 2012
1 parent 26b877f commit 8f9317fe43aa1ee02b36b7cc39c37cad8d05b916
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/UIKit/TUIImageView.m
View
@@ -51,4 +51,8 @@ - (void)drawRect:(CGRect)rect
[_image drawInRect:rect];
}
+- (CGSize)sizeThatFits:(CGSize)size {
+ return _image.size;
+}
+
@end

0 comments on commit 8f9317f

Please sign in to comment.