Skip to content

Commit

Permalink
update LabelTest to change text to test attributed text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Colton committed Mar 20, 2014
1 parent c62f42c commit 52d24f6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/UILabelTest/UILabelTest/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,27 @@
<userDefinedRuntimeAttribute type="string" keyPath="styleId" value="label1"/>
</userDefinedRuntimeAttributes>
</label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aKJ-tb-yYo">
<rect key="frame" x="7" y="136" width="57" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<state key="normal" title="Update -->">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="buttonClick:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="Pzk-cM-jBI"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
<connections>
<outlet property="letterpress" destination="0aP-m3-Vve" id="ije-z2-F5C"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="19" y="19"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
Expand Down
2 changes: 2 additions & 0 deletions tests/UILabelTest/UILabelTest/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@

@interface ViewController : UIViewController

@property (weak, nonatomic) IBOutlet UILabel *letterpress;

@end
9 changes: 9 additions & 0 deletions tests/UILabelTest/UILabelTest/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import "ViewController.h"
#import "PixateFreestyle.h"

@interface ViewController ()

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

- (IBAction)buttonClick:(id)sender {

self.letterpress.text = @"Hello World";
}




@end

0 comments on commit 52d24f6

Please sign in to comment.