Skip to content

Commit 52d24f6

Browse files
author
Paul Colton
committed
update LabelTest to change text to test attributed text changes
1 parent c62f42c commit 52d24f6

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

tests/UILabelTest/UILabelTest/Base.lproj/Main.storyboard

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,27 @@
5656
<userDefinedRuntimeAttribute type="string" keyPath="styleId" value="label1"/>
5757
</userDefinedRuntimeAttributes>
5858
</label>
59+
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aKJ-tb-yYo">
60+
<rect key="frame" x="7" y="136" width="57" height="35"/>
61+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
62+
<fontDescription key="fontDescription" type="system" pointSize="10"/>
63+
<state key="normal" title="Update -->">
64+
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
65+
</state>
66+
<connections>
67+
<action selector="buttonClick:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="Pzk-cM-jBI"/>
68+
</connections>
69+
</button>
5970
</subviews>
6071
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
6172
</view>
73+
<connections>
74+
<outlet property="letterpress" destination="0aP-m3-Vve" id="ije-z2-F5C"/>
75+
</connections>
6276
</viewController>
6377
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
6478
</objects>
79+
<point key="canvasLocation" x="19" y="19"/>
6580
</scene>
6681
</scenes>
6782
<simulatedMetricsContainer key="defaultSimulatedMetrics">

tests/UILabelTest/UILabelTest/ViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010

1111
@interface ViewController : UIViewController
1212

13+
@property (weak, nonatomic) IBOutlet UILabel *letterpress;
14+
1315
@end

tests/UILabelTest/UILabelTest/ViewController.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import "ViewController.h"
10+
#import "PixateFreestyle.h"
1011

1112
@interface ViewController ()
1213

@@ -26,4 +27,12 @@ - (void)didReceiveMemoryWarning
2627
// Dispose of any resources that can be recreated.
2728
}
2829

30+
- (IBAction)buttonClick:(id)sender {
31+
32+
self.letterpress.text = @"Hello World";
33+
}
34+
35+
36+
37+
2938
@end

0 commit comments

Comments
 (0)