diff --git a/LICENSE.md b/LICENSE.md index b9a9474..db6e35c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ THLabel -Version 1.1.5, November 6th, 2013 +Version 1.1.6, November 21st, 2013 Copyright (c) 2013 Tobias Hagemann, tobiha.de diff --git a/README.md b/README.md index dcde5b3..f1fb619 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ And drag these files into your project: - `THLabel.h` - `THLabel.m` -You can create THLabels programmatically, or create them in Interface Builder by dragging an ordinary UILabel into your view and setting its class to THLabel. +You can create THLabels programmatically, or create them in Interface Builder by dragging an ordinary UILabel into your view and setting its *Custom Class* to THLabel. ## Properties diff --git a/RELEASE NOTES.md b/RELEASE NOTES.md index 2778d48..e4453ab 100644 --- a/RELEASE NOTES.md +++ b/RELEASE NOTES.md @@ -1,3 +1,7 @@ +Version 1.1.6 + +- Fixed memory related crash. + Version 1.1.5 - Fixed text alignment for multi-line texts. diff --git a/THLabel.podspec b/THLabel.podspec index a1d65a9..89bf205 100644 --- a/THLabel.podspec +++ b/THLabel.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'THLabel' - s.version = '1.1.5' + s.version = '1.1.6' s.summary = 'THLabel is a subclass of UILabel, which additionally allows shadow blur, stroke text and fill gradient.' s.homepage = 'https://github.com/MuscleRumble/THLabel' s.screenshots = 'https://github.com/MuscleRumble/THLabel/blob/master/screenshot.png' diff --git a/THLabel/THLabel.h b/THLabel/THLabel.h index 532bb61..aca6246 100644 --- a/THLabel/THLabel.h +++ b/THLabel/THLabel.h @@ -1,7 +1,7 @@ // // THLabel.h // -// Version 1.1.5 +// Version 1.1.6 // // Created by Tobias Hagemann on 11/25/12. // Copyright (c) 2013 tobiha.de. All rights reserved. diff --git a/THLabel/THLabel.m b/THLabel/THLabel.m index 3713690..3ca60a9 100644 --- a/THLabel/THLabel.m +++ b/THLabel/THLabel.m @@ -1,7 +1,7 @@ // // THLabel.m // -// Version 1.1.5 +// Version 1.1.6 // // Created by Tobias Hagemann on 11/25/12. // Copyright (c) 2013 tobiha.de. All rights reserved. @@ -319,13 +319,12 @@ - (CTFrameRef)setupFrameForDrawingOutTextRect:(CGRect *)textRect { // Set up font. CTFontRef fontRef = CTFontCreateWithName((__bridge CFStringRef)self.font.fontName, self.font.pointSize, NULL); CTTextAlignment alignment = NSTextAlignmentToCTTextAlignment ? NSTextAlignmentToCTTextAlignment(self.textAlignment) : [self CTTextAlignmentFromNSTextAlignment:self.textAlignment]; - CTLineBreakMode lineBreakMode = self.lineBreakMode; + CTLineBreakMode lineBreakMode = (CTLineBreakMode)self.lineBreakMode; CTParagraphStyleSetting paragraphStyleSettings[] = { {kCTParagraphStyleSpecifierAlignment, sizeof(CTTextAlignment), &alignment}, {kCTParagraphStyleSpecifierLineBreakMode, sizeof(CTLineBreakMode), &lineBreakMode} }; CTParagraphStyleRef paragraphStyleRef = CTParagraphStyleCreate(paragraphStyleSettings, 2); - CFRelease(paragraphStyleSettings); // Set up attributed string. CFStringRef keys[] = {kCTFontAttributeName, kCTParagraphStyleAttributeName, kCTForegroundColorAttributeName};