-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlusMinusView.xib
130 lines (130 loc) · 9.1 KB
/
PlusMinusView.xib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="PlusMinusView" customModule="HS_Trainer" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="500" height="72"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UWO-H3-w8N">
<rect key="frame" x="50" y="20" width="35" height="35"/>
<constraints>
<constraint firstAttribute="width" constant="172" id="FIK-Zg-wh8"/>
<constraint firstAttribute="height" constant="41" id="OJf-Jd-MrY"/>
<constraint firstAttribute="height" constant="50" id="WCi-2M-rEJ"/>
<constraint firstAttribute="width" constant="220" id="fLB-BR-JyV"/>
<constraint firstAttribute="width" secondItem="UWO-H3-w8N" secondAttribute="height" multiplier="1:1" id="fxo-jb-xgK"/>
</constraints>
<state key="normal" image="bttnMinGry">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<variation key="default">
<mask key="constraints">
<exclude reference="FIK-Zg-wh8"/>
<exclude reference="OJf-Jd-MrY"/>
<exclude reference="WCi-2M-rEJ"/>
<exclude reference="fLB-BR-JyV"/>
<exclude reference="fxo-jb-xgK"/>
</mask>
</variation>
<connections>
<action selector="bttnActMinus:" destination="iN0-l3-epB" eventType="touchUpInside" id="Spi-Sa-IMc"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="agf-qj-Bw8">
<rect key="frame" x="415" y="20" width="35" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="41" id="ECr-0J-H3U"/>
<constraint firstAttribute="height" constant="50" id="KOb-Mi-8L6"/>
<constraint firstAttribute="width" constant="172" id="Uoq-Fj-DZs"/>
<constraint firstAttribute="width" constant="220" id="h3R-PV-Fac"/>
<constraint firstAttribute="width" secondItem="agf-qj-Bw8" secondAttribute="height" multiplier="1:1" id="z6m-Xp-MC0"/>
</constraints>
<state key="normal" image="bttnPluGry">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<variation key="default">
<mask key="constraints">
<exclude reference="ECr-0J-H3U"/>
<exclude reference="KOb-Mi-8L6"/>
<exclude reference="Uoq-Fj-DZs"/>
<exclude reference="h3R-PV-Fac"/>
<exclude reference="z6m-Xp-MC0"/>
</mask>
</variation>
<connections>
<action selector="bttnActPlus:" destination="iN0-l3-epB" eventType="touchUpInside" id="Nvz-fU-Obx"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="Result" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="P1j-7r-CNR">
<rect key="frame" x="117" y="20" width="80" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="80" id="HPn-NF-Meu"/>
<constraint firstAttribute="height" constant="30" id="Uyc-H0-WOP"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="light" pointSize="20"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
<variation key="default">
<mask key="constraints">
<exclude reference="HPn-NF-Meu"/>
<exclude reference="Uyc-H0-WOP"/>
</mask>
</variation>
</label>
</subviews>
<constraints>
<constraint firstItem="UWO-H3-w8N" firstAttribute="height" secondItem="iN0-l3-epB" secondAttribute="height" multiplier="0.5" id="023-pc-d2G"/>
<constraint firstItem="UWO-H3-w8N" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="1up-Sd-7bo"/>
<constraint firstAttribute="trailing" secondItem="agf-qj-Bw8" secondAttribute="trailing" constant="50" id="B2U-gI-nK3"/>
<constraint firstItem="P1j-7r-CNR" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="C20-ma-fwH"/>
<constraint firstItem="agf-qj-Bw8" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="ON7-qb-OoD"/>
<constraint firstItem="agf-qj-Bw8" firstAttribute="height" secondItem="UWO-H3-w8N" secondAttribute="height" id="Zuf-l2-reX"/>
<constraint firstItem="agf-qj-Bw8" firstAttribute="width" secondItem="agf-qj-Bw8" secondAttribute="height" multiplier="1:1" id="aUZ-iA-4aV"/>
<constraint firstItem="P1j-7r-CNR" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="add-7n-9RI"/>
<constraint firstItem="UWO-H3-w8N" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="50" id="nIM-w9-5kC"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<variation key="default">
<mask key="constraints">
<exclude reference="023-pc-d2G"/>
<exclude reference="1up-Sd-7bo"/>
<exclude reference="nIM-w9-5kC"/>
<exclude reference="C20-ma-fwH"/>
<exclude reference="add-7n-9RI"/>
<exclude reference="B2U-gI-nK3"/>
<exclude reference="ON7-qb-OoD"/>
<exclude reference="Zuf-l2-reX"/>
<exclude reference="aUZ-iA-4aV"/>
</mask>
</variation>
<connections>
<outlet property="bttnMin" destination="UWO-H3-w8N" id="mUd-om-gej"/>
<outlet property="bttnPlu" destination="agf-qj-Bw8" id="U8h-58-2LW"/>
<outlet property="labelValue" destination="P1j-7r-CNR" id="2S1-Eb-j8U"/>
</connections>
<point key="canvasLocation" x="-56" y="-412"/>
</view>
</objects>
<resources>
<image name="bttnMinGry" width="70" height="70"/>
<image name="bttnPluGry" width="70" height="70"/>
</resources>
</document>