Skip to content

Commit

Permalink
Convert one demo label to an IB-set string.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Oct 9, 2014
1 parent 5767f05 commit 4511c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion MarqueeLabelDemo/Classes/MarqueeLabelDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ - (void)viewDidLoad {
self.demoLabel1.animationCurve = UIViewAnimationOptionCurveEaseInOut;
self.demoLabel1.fadeLength = 10.0f;
self.demoLabel1.continuousMarqueeExtraBuffer = 10.0f;
self.demoLabel1.text = @"This is a test of MarqueeLabel - the text is long enough that it needs to scroll to see the whole thing.";
self.demoLabel1.tag = 101;
// Text string for this label is set via Interface Builder!


// Reverse Continuous Type, with attributed string
Expand Down
16 changes: 5 additions & 11 deletions MarqueeLabelDemo/MarqueeLabel.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.8" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="4MI-rG-Qz8">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="4MI-rG-Qz8">
<dependencies>
<deployment defaultVersion="1792" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7026.1"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
</dependencies>
<scenes>
<!--Marquee Label Demo View Controller-->
Expand Down Expand Up @@ -32,7 +32,7 @@
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MLContinuous" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6NK-iy-G1b" customClass="MarqueeLabel">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="This is a test of MarqueeLabel - the text is long enough that it needs to scroll to see the whole thing." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6NK-iy-G1b" customClass="MarqueeLabel">
<rect key="frame" x="20" y="86" width="280" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="9yL-Xa-Dot"/>
Expand Down Expand Up @@ -221,10 +221,7 @@
</constraints>
</view>
<simulatedOrientationMetrics key="simulatedOrientationMetrics"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4">
<size key="portraitSize" width="320" height="568"/>
<size key="landscapeSize" width="568" height="320"/>
</simulatedScreenMetrics>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
<connections>
<outlet property="demoLabel1" destination="6NK-iy-G1b" id="d9G-t2-pNw"/>
<outlet property="demoLabel2" destination="0Y7-BD-j5i" id="pFs-pf-ZrT"/>
Expand Down Expand Up @@ -268,10 +265,7 @@
</constraints>
</view>
<simulatedOrientationMetrics key="simulatedOrientationMetrics"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4">
<size key="portraitSize" width="320" height="568"/>
<size key="landscapeSize" width="568" height="320"/>
</simulatedScreenMetrics>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="P75-hn-YZ5" userLabel="First Responder" sceneMemberID="firstResponder"/>
<exit id="8Ik-aL-Pwd" userLabel="Exit" sceneMemberID="exit"/>
Expand Down

0 comments on commit 4511c5c

Please sign in to comment.