Skip to content

Commit

Permalink
Updated to version 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Sep 15, 2014
1 parent 3ad8531 commit 1ff9313
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 97 deletions.
4 changes: 2 additions & 2 deletions Example/THLabelExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -256,7 +256,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,87 +2,70 @@
"images" : [
{
"idiom" : "iphone",
"scale" : "1x",
"size" : "57x57"
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "57x57"
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "72x72"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "72x72"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"scale" : "1x",
"size" : "29x29"
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "50x50"
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "50x50"
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
"size" : "76x76",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"pre-rendered" : true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,86 +4,59 @@
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
"minimum-system-version" : "8.0",
"subtype" : "736h",
"scale" : "3x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"minimum-system-version" : "8.0",
"subtype" : "667h",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
}
],
Expand Down
11 changes: 7 additions & 4 deletions Example/THLabelExample/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6206.9" systemVersion="14A343f" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="456-qT-Q4o">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="14A343f" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="456-qT-Q4o">
<dependencies>
<deployment defaultVersion="1536" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7026.1"/>
<deployment defaultVersion="1792" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
</dependencies>
<scenes>
<!--Basic-->
Expand Down Expand Up @@ -75,7 +75,10 @@
</constraints>
</view>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Fade Truncating" lineBreakMode="clip" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4hn-LK-JBo" customClass="THLabel">
<rect key="frame" x="152" y="386" width="297" height="48"/>
<rect key="frame" x="160" y="386" width="280" height="48"/>
<constraints>
<constraint firstAttribute="width" constant="280" id="i8g-AK-I01"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
THLabel

Version 1.4.1, September 9th, 2014
Version 1.4.2, September 15th, 2014

Copyright (c) 2014 Tobias Hagemann, tobiha.de

Expand Down
4 changes: 4 additions & 0 deletions RELEASE NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.4.2

- Fixed unexpected truncation on iOS device.

Version 1.4.1

- Fixed crash, when text is nil.
Expand Down
2 changes: 1 addition & 1 deletion THLabel.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'THLabel'
s.version = '1.4.1'
s.version = '1.4.2'
s.summary = 'THLabel is a subclass of UILabel, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.'
s.homepage = 'https://github.com/MuscleRumble/THLabel'
s.screenshots = 'https://raw.githubusercontent.com/MuscleRumble/THLabel/master/screenshot.png'
Expand Down
2 changes: 1 addition & 1 deletion THLabel/THLabel.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// THLabel.h
//
// Version 1.4.1
// Version 1.4.2
//
// Created by Tobias Hagemann on 11/25/12.
// Copyright (c) 2014 tobiha.de. All rights reserved.
Expand Down
4 changes: 2 additions & 2 deletions THLabel/THLabel.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// THLabel.m
//
// Version 1.4.1
// Version 1.4.2
//
// Created by Tobias Hagemann on 11/25/12.
// Copyright (c) 2014 tobiha.de. All rights reserved.
Expand Down Expand Up @@ -501,7 +501,7 @@ - (CGRect)textRectFromContentRect:(CGRect)contentRect framesetterRef:(CTFrameset
if (CGSizeEqualToSize(suggestedTextRectSize, CGSizeZero)) {
suggestedTextRectSize = CTFramesetterSuggestFrameSizeWithConstraints(framesetterRef, CFRangeMake(0, [self.text length]), NULL, CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX), NULL);
}
CGRect textRect = CGRectMake(0.0, 0.0, suggestedTextRectSize.width, suggestedTextRectSize.height);
CGRect textRect = CGRectMake(0.0, 0.0, ceilf(suggestedTextRectSize.width), ceilf(suggestedTextRectSize.height));

// Horizontal alignment.
switch (self.textAlignment) {
Expand Down

0 comments on commit 1ff9313

Please sign in to comment.