Skip to content

Commit

Permalink
Updated deprecated method calls to use the replacement method; update…
Browse files Browse the repository at this point in the history
…d project to deployment target of iOS 7.0
  • Loading branch information
Josh Elkins committed Feb 6, 2015
1 parent 73545fa commit 4a7d172
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sample App/iPhoneMK Sample App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "iPhoneMK Sample App/iPhoneMK Sample App-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand All @@ -697,7 +697,7 @@
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "iPhoneMK Sample App/iPhoneMK Sample App-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand Down
6 changes: 3 additions & 3 deletions Views/MKNumberBadgeView/MKNumberBadgeView.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ - (void)drawRect:(CGRect)rect
NSString* numberString = [NSString stringWithFormat:self.textFormat,self.value];


CGSize numberSize = [numberString sizeWithFont:self.font];
CGSize numberSize = [numberString sizeWithAttributes:@{ NSFontAttributeName : self.font }];

CGPathRef badgePath = [self newBadgePathForTextSize:numberSize];

Expand Down Expand Up @@ -238,7 +238,7 @@ - (void)drawRect:(CGRect)rect

CGPoint textPt = CGPointMake( ctm.x + (badgeRect.size.width - numberSize.width)/2 + self.adjustOffset.x, ctm.y + (badgeRect.size.height - numberSize.height)/2 + self.adjustOffset.y);

[numberString drawAtPoint:textPt withFont:self.font];
[numberString drawAtPoint:textPt withAttributes:@{ NSFontAttributeName : self.font }];

CGContextRestoreGState( curContext );

Expand Down Expand Up @@ -286,7 +286,7 @@ - (CGSize)badgeSize
NSString* numberString = [NSString stringWithFormat:self.textFormat,self.value];


CGSize numberSize = [numberString sizeWithFont:self.font];
CGSize numberSize = [numberString sizeWithAttributes:@{ NSFontAttributeName : self.font }];

CGPathRef badgePath = [self newBadgePathForTextSize:numberSize];

Expand Down

0 comments on commit 4a7d172

Please sign in to comment.