File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 231231 <view contentMode =" scaleToFill" id =" jSK-28-Rd5" >
232232 <rect key =" frame" x =" 100" y =" 100" width =" 120" height =" 120" />
233233 <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 >
234242 <color key =" backgroundColor" red =" 0.22802925860000001" green =" 0.66314832059999995" blue =" 0.70600328950000002" alpha =" 1" colorSpace =" custom" customColorSpace =" sRGB" />
235243 </view >
236244 </subviews >
239247 <navigationItem key =" navigationItem" id =" 0YD-4W-ey7" />
240248 <connections >
241249 <outlet property =" blueSquare" destination =" jSK-28-Rd5" id =" 5RP-ua-dhj" />
250+ <outlet property =" nameLabel" destination =" 7Dr-p2-MqF" id =" l1T-c3-q6b" />
242251 </connections >
243252 </viewController >
244253 <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
1111class ColorViewController : UIViewController {
1212
1313 @IBOutlet weak var blueSquare : UIView !
14+ @IBOutlet weak var nameLabel : UILabel !
1415 override func viewDidLoad( ) {
1516 super. viewDidLoad ( )
1617
@@ -25,6 +26,7 @@ class ColorViewController: UIViewController {
2526 override func viewDidAppear( animated: Bool ) {
2627 UIView . animateWithDuration ( 1 , animations: {
2728 self . blueSquare. backgroundColor = UIColor . redColor ( )
29+ self . nameLabel. textColor = UIColor . whiteColor ( )
2830 } )
2931 }
3032
You can’t perform that action at this time.
0 commit comments