File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 231
231
<view contentMode =" scaleToFill" id =" jSK-28-Rd5" >
232
232
<rect key =" frame" x =" 100" y =" 100" width =" 120" height =" 120" />
233
233
<autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
234
+ <subviews >
235
+ <label opaque =" NO" userInteractionEnabled =" NO" contentMode =" left" horizontalHuggingPriority =" 251" verticalHuggingPriority =" 251" text =" Jake Lin" lineBreakMode =" tailTruncation" baselineAdjustment =" alignBaselines" adjustsFontSizeToFit =" NO" id =" 7Dr-p2-MqF" >
236
+ <rect key =" frame" x =" 28" y =" 49" width =" 64" height =" 21" />
237
+ <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
238
+ <fontDescription key =" fontDescription" type =" system" pointSize =" 17" />
239
+ <nil key =" highlightedColor" />
240
+ </label >
241
+ </subviews >
234
242
<color key =" backgroundColor" red =" 0.22802925860000001" green =" 0.66314832059999995" blue =" 0.70600328950000002" alpha =" 1" colorSpace =" custom" customColorSpace =" sRGB" />
235
243
</view >
236
244
</subviews >
239
247
<navigationItem key =" navigationItem" id =" 0YD-4W-ey7" />
240
248
<connections >
241
249
<outlet property =" blueSquare" destination =" jSK-28-Rd5" id =" 5RP-ua-dhj" />
250
+ <outlet property =" nameLabel" destination =" 7Dr-p2-MqF" id =" l1T-c3-q6b" />
242
251
</connections >
243
252
</viewController >
244
253
<placeholder placeholderIdentifier =" IBFirstResponder" id =" PZN-Mt-Bh8" userLabel =" First Responder" sceneMemberID =" firstResponder" />
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import UIKit
11
11
class ColorViewController : UIViewController {
12
12
13
13
@IBOutlet weak var blueSquare : UIView !
14
+ @IBOutlet weak var nameLabel : UILabel !
14
15
override func viewDidLoad( ) {
15
16
super. viewDidLoad ( )
16
17
@@ -25,6 +26,7 @@ class ColorViewController: UIViewController {
25
26
override func viewDidAppear( animated: Bool ) {
26
27
UIView . animateWithDuration ( 1 , animations: {
27
28
self . blueSquare. backgroundColor = UIColor . redColor ( )
29
+ self . nameLabel. textColor = UIColor . whiteColor ( )
28
30
} )
29
31
}
30
32
You can’t perform that action at this time.
0 commit comments