File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 16
16
<tableViewSection id =" 5Zl-t8-hX6" >
17
17
<cells >
18
18
<tableViewCell contentMode =" scaleToFill" selectionStyle =" default" accessoryType =" disclosureIndicator" indentationWidth =" 10" textLabel =" LkM-fX-yuq" style =" IBUITableViewCellStyleDefault" id =" f2m-kP-WQN" >
19
+ <rect key =" frame" x =" 0.0" y =" 64" width =" 320" height =" 44" />
19
20
<autoresizingMask key =" autoresizingMask" />
20
21
<tableViewCellContentView key =" contentView" opaque =" NO" clipsSubviews =" YES" multipleTouchEnabled =" YES" contentMode =" center" tableViewCell =" f2m-kP-WQN" id =" 0Fm-gu-epR" >
22
+ <rect key =" frame" x =" 0.0" y =" 0.0" width =" 287" height =" 43" />
21
23
<autoresizingMask key =" autoresizingMask" />
22
24
<subviews >
23
25
<label opaque =" NO" multipleTouchEnabled =" YES" contentMode =" left" text =" Position" lineBreakMode =" tailTruncation" baselineAdjustment =" alignBaselines" adjustsFontSizeToFit =" NO" id =" LkM-fX-yuq" >
59
61
<autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
60
62
<color key =" backgroundColor" red =" 0.22802925859999998" green =" 0.66314832058684192" blue =" 0.70600328947368352" alpha =" 1" colorSpace =" custom" customColorSpace =" sRGB" />
61
63
</view >
64
+ <view contentMode =" scaleToFill" id =" qDn-u2-IJk" >
65
+ <rect key =" frame" x =" 130" y =" 86" width =" 60" height =" 60" />
66
+ <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
67
+ <color key =" backgroundColor" red =" 0.96142769610000001" green =" 0.19560617421842103" blue =" 0.2744654605526316" alpha =" 1" colorSpace =" custom" customColorSpace =" sRGB" />
68
+ </view >
62
69
</subviews >
63
70
<color key =" backgroundColor" white =" 1" alpha =" 1" colorSpace =" calibratedWhite" />
64
71
</view >
65
72
<navigationItem key =" navigationItem" id =" cGh-aI-gZo" />
66
73
<connections >
67
74
<outlet property =" blueSquare" destination =" azk-Fu-KuD" id =" GHY-Yf-xjc" />
75
+ <outlet property =" redSquare" destination =" qDn-u2-IJk" id =" VpL-zc-ufr" />
68
76
</connections >
69
77
</viewController >
70
78
<placeholder placeholderIdentifier =" IBFirstResponder" id =" DLb-We-4Yt" userLabel =" First Responder" sceneMemberID =" firstResponder" />
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import UIKit
10
10
11
11
class PositionViewController : UIViewController {
12
12
@IBOutlet weak var blueSquare : UIView !
13
+ @IBOutlet weak var redSquare : UIView !
13
14
14
15
override func viewDidLoad( ) {
15
16
super. viewDidLoad ( )
@@ -32,6 +33,7 @@ class PositionViewController: UIViewController {
32
33
33
34
UIView . animateWithDuration ( 1 , animations: {
34
35
self . blueSquare. center. x = self . view. bounds. width - self . blueSquare. center. x
36
+ self . redSquare. center. y = self . view. bounds. height - self . redSquare. center. y
35
37
// <_UIViewAdditiveAnimationAction: 0x7fe17b70df30>
36
38
// println(self.view.actionForLayer(self.view.layer, forKey: "position"))
37
39
} )
You can’t perform that action at this time.
0 commit comments