Skip to content

Commit 867f021

Browse files
committed
Resolve problem with initial line width
The lineLabel UILabel has an explicit contentWidth set that was causing the line to be truncated on initial display. Removing the explicit width resolves the issue.
1 parent 634cf3b commit 867f021

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

SelfSize/SelfSize/Base.lproj/Main.storyboard

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6205" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="Xmq-7s-xh3">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="Xmq-7s-xh3">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6205"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6254"/>
55
</dependencies>
66
<scenes>
77
<!--Huckleberry-->
@@ -24,7 +24,7 @@
2424
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
2525
<nil key="highlightedColor"/>
2626
</label>
27-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sentence goes here." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="560" translatesAutoresizingMaskIntoConstraints="NO" id="wVn-Be-UzL">
27+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sentence goes here." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wVn-Be-UzL">
2828
<rect key="frame" x="20" y="42" width="560" height="37"/>
2929
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
3030
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>

SelfSize/SelfSize/UYLTableViewController.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ - (void)viewDidLoad
7272
self.tableView.rowHeight = UITableViewAutomaticDimension;
7373
}
7474

75-
//- (void)viewDidAppear:(BOOL)animated
76-
//{
77-
// [super viewDidAppear:animated];
78-
// [self.tableView reloadData];
79-
//}
80-
8175
- (void)dealloc
8276
{
8377
[[NSNotificationCenter defaultCenter] removeObserver:self

0 commit comments

Comments
 (0)