Skip to content
Browse files

Changed scalesImageToHeight to the more appropriate scalesImageToFit

  • Loading branch information...
1 parent d6a7df4 commit 7a985ea5e8611e45d8b96fe3a8de6efe9120bfeb @camh committed Feb 24, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 CHImageTileView.h
  2. +2 −2 CHImageTileView.m
View
4 CHImageTileView.h
@@ -13,10 +13,10 @@
@interface CHImageTileView : CHTileView {
UIImage *image;
- BOOL scalesImageToHeight;
+ BOOL scalesImageToFit;
}
@property (nonatomic, retain) UIImage *image;
-@property (nonatomic) BOOL scalesImageToHeight; // don't use this EVER
+@property (nonatomic) BOOL scalesImageToFit; // don't use this EVER
@end
View
4 CHImageTileView.m
@@ -12,7 +12,7 @@
#import "CHImageTileView.h"
@implementation CHImageTileView
-@synthesize image, scalesImageToHeight;
+@synthesize image, scalesImageToFit;
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseId{
if(self = [super initWithFrame:frame reuseIdentifier:reuseId]){
@@ -40,7 +40,7 @@ - (void)drawContentRect:(CGRect)rect{
float leftOffset = 0.0;
float topOffset = 0.0;
- if(scalesImageToHeight){
+ if(scalesImageToFit){
float heightDividedByWidth = imageSize.height / imageSize.width;
float widthDividedByHeight = imageSize.width / imageSize.height;

0 comments on commit 7a985ea

Please sign in to comment.
Something went wrong with that request. Please try again.