Main.storyboard 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="b9c-6n-iGa">
  3. <device id="retina4_7" orientation="portrait">
  4. <adaptation id="fullscreen"/>
  5. </device>
  6. <dependencies>
  7. <deployment identifier="iOS"/>
  8. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
  9. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  10. </dependencies>
  11. <scenes>
  12. <!--MKRingProgressView-->
  13. <scene sceneID="4mu-w5-Gye">
  14. <objects>
  15. <viewController id="9p5-Fd-aiN" customClass="ViewController" customModule="ProgressRingExample" customModuleProvider="target" sceneMemberID="viewController">
  16. <layoutGuides>
  17. <viewControllerLayoutGuide type="top" id="GNP-hK-55E"/>
  18. <viewControllerLayoutGuide type="bottom" id="4rf-bp-Hvk"/>
  19. </layoutGuides>
  20. <view key="view" contentMode="scaleToFill" id="rbL-Hk-hhM">
  21. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  22. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  23. <subviews>
  24. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4A9-no-feE" customClass="MKRingProgressView">
  25. <rect key="frame" x="37.5" y="104" width="300" height="300"/>
  26. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  27. <constraints>
  28. <constraint firstAttribute="height" priority="999" constant="300" id="cZo-gM-paW"/>
  29. <constraint firstAttribute="width" secondItem="4A9-no-feE" secondAttribute="height" multiplier="1:1" id="r2G-3b-ZfT"/>
  30. </constraints>
  31. <userDefinedRuntimeAttributes>
  32. <userDefinedRuntimeAttribute type="number" keyPath="progress">
  33. <real key="value" value="1"/>
  34. </userDefinedRuntimeAttribute>
  35. <userDefinedRuntimeAttribute type="number" keyPath="ringWidth">
  36. <real key="value" value="60"/>
  37. </userDefinedRuntimeAttribute>
  38. <userDefinedRuntimeAttribute type="number" keyPath="shadowOpacity">
  39. <real key="value" value="1"/>
  40. </userDefinedRuntimeAttribute>
  41. <userDefinedRuntimeAttribute type="boolean" keyPath="hidesRingForZeroProgress" value="NO"/>
  42. <userDefinedRuntimeAttribute type="color" keyPath="startColor">
  43. <color key="value" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  44. </userDefinedRuntimeAttribute>
  45. <userDefinedRuntimeAttribute type="color" keyPath="endColor">
  46. <color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  47. </userDefinedRuntimeAttribute>
  48. </userDefinedRuntimeAttributes>
  49. </view>
  50. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1.0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bxk-e2-pM1">
  51. <rect key="frame" x="177" y="243.5" width="21.5" height="21"/>
  52. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  53. <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  54. <nil key="highlightedColor"/>
  55. </label>
  56. <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F8k-6T-W5S">
  57. <rect key="frame" x="0.0" y="444" width="375" height="223"/>
  58. <constraints>
  59. <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="176" id="82x-J6-bmb"/>
  60. </constraints>
  61. <connections>
  62. <segue destination="MBw-Rk-XL8" kind="embed" id="cKO-Ng-ZEJ"/>
  63. </connections>
  64. </containerView>
  65. </subviews>
  66. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  67. <constraints>
  68. <constraint firstItem="Bxk-e2-pM1" firstAttribute="centerX" secondItem="4A9-no-feE" secondAttribute="centerX" id="1pM-yj-e5a"/>
  69. <constraint firstAttribute="trailing" secondItem="F8k-6T-W5S" secondAttribute="trailing" id="JAk-u9-lYW"/>
  70. <constraint firstItem="4A9-no-feE" firstAttribute="top" secondItem="GNP-hK-55E" secondAttribute="bottom" constant="40" id="RwJ-dH-pv8"/>
  71. <constraint firstItem="4rf-bp-Hvk" firstAttribute="top" secondItem="F8k-6T-W5S" secondAttribute="bottom" id="ZgR-T4-ran"/>
  72. <constraint firstItem="F8k-6T-W5S" firstAttribute="top" secondItem="4A9-no-feE" secondAttribute="bottom" constant="40" id="aUh-HR-asr"/>
  73. <constraint firstItem="4A9-no-feE" firstAttribute="centerX" secondItem="rbL-Hk-hhM" secondAttribute="centerX" id="b90-Y8-16g"/>
  74. <constraint firstItem="Bxk-e2-pM1" firstAttribute="centerY" secondItem="4A9-no-feE" secondAttribute="centerY" id="uRa-ue-1w3"/>
  75. <constraint firstItem="F8k-6T-W5S" firstAttribute="leading" secondItem="rbL-Hk-hhM" secondAttribute="leading" id="xTI-jY-kcj"/>
  76. </constraints>
  77. </view>
  78. <navigationItem key="navigationItem" title="MKRingProgressView" id="AfK-gz-hJx"/>
  79. <connections>
  80. <outlet property="ringProgressView" destination="4A9-no-feE" id="ea7-IZ-765"/>
  81. <outlet property="valueLabel" destination="Bxk-e2-pM1" id="g8K-fc-rJF"/>
  82. </connections>
  83. </viewController>
  84. <placeholder placeholderIdentifier="IBFirstResponder" id="dcb-Xq-vo7" sceneMemberID="firstResponder"/>
  85. </objects>
  86. <point key="canvasLocation" x="2880.8000000000002" y="1057.4212893553224"/>
  87. </scene>
  88. <!--Parameters View Controller-->
  89. <scene sceneID="UIk-6q-xp0">
  90. <objects>
  91. <tableViewController id="MBw-Rk-XL8" customClass="ParametersViewController" customModule="ProgressRingExample" customModuleProvider="target" sceneMemberID="viewController">
  92. <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" bouncesZoom="NO" dataMode="static" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="LNg-IE-YKY">
  93. <rect key="frame" x="0.0" y="0.0" width="375" height="223"/>
  94. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  95. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  96. <sections>
  97. <tableViewSection id="GTM-Qh-OMP">
  98. <cells>
  99. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationWidth="0.0" id="8v8-sj-Uqo">
  100. <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
  101. <autoresizingMask key="autoresizingMask"/>
  102. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="8v8-sj-Uqo" id="I1P-Ba-e0z">
  103. <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
  104. <autoresizingMask key="autoresizingMask"/>
  105. <subviews>
  106. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="250" text="Progress" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dsO-hM-eI9">
  107. <rect key="frame" x="16" y="11.5" width="93" height="21"/>
  108. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  109. <nil key="textColor"/>
  110. <nil key="highlightedColor"/>
  111. </label>
  112. <slider opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="1" minValue="0.0" maxValue="2" translatesAutoresizingMaskIntoConstraints="NO" id="t5b-4g-G5k">
  113. <rect key="frame" x="115" y="7" width="244" height="31"/>
  114. <constraints>
  115. <constraint firstAttribute="width" relation="lessThanOrEqual" constant="240" id="0zQ-hV-u3U"/>
  116. </constraints>
  117. <connections>
  118. <action selector="progressChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="7Ac-ml-Bpm"/>
  119. </connections>
  120. </slider>
  121. </subviews>
  122. <constraints>
  123. <constraint firstItem="t5b-4g-G5k" firstAttribute="leading" secondItem="dsO-hM-eI9" secondAttribute="trailing" constant="8" symbolic="YES" id="AgR-Ke-Mi0"/>
  124. <constraint firstItem="t5b-4g-G5k" firstAttribute="centerY" secondItem="I1P-Ba-e0z" secondAttribute="centerY" id="PU8-Qt-Yda"/>
  125. <constraint firstItem="dsO-hM-eI9" firstAttribute="centerY" secondItem="I1P-Ba-e0z" secondAttribute="centerY" id="da1-kK-d9v"/>
  126. <constraint firstAttribute="trailing" secondItem="t5b-4g-G5k" secondAttribute="trailing" constant="18" id="erI-5G-THr"/>
  127. <constraint firstItem="dsO-hM-eI9" firstAttribute="leading" secondItem="I1P-Ba-e0z" secondAttribute="leading" constant="16" id="f8C-pi-PUt"/>
  128. </constraints>
  129. </tableViewCellContentView>
  130. </tableViewCell>
  131. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationWidth="0.0" id="C7J-pv-kiY">
  132. <rect key="frame" x="0.0" y="44" width="375" height="44"/>
  133. <autoresizingMask key="autoresizingMask"/>
  134. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="C7J-pv-kiY" id="wJG-lm-fcA">
  135. <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
  136. <autoresizingMask key="autoresizingMask"/>
  137. <subviews>
  138. <segmentedControl opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="GjU-8P-aQr">
  139. <rect key="frame" x="244" y="8" width="115" height="29"/>
  140. <segments>
  141. <segment title="Round"/>
  142. <segment title="Square"/>
  143. </segments>
  144. <connections>
  145. <action selector="styleChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="gfp-X5-ZQl"/>
  146. </connections>
  147. </segmentedControl>
  148. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Style" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iln-qB-xc5">
  149. <rect key="frame" x="16" y="11.5" width="220" height="21"/>
  150. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  151. <nil key="textColor"/>
  152. <nil key="highlightedColor"/>
  153. </label>
  154. </subviews>
  155. <constraints>
  156. <constraint firstItem="iln-qB-xc5" firstAttribute="centerY" secondItem="wJG-lm-fcA" secondAttribute="centerY" id="7tP-Kd-q4H"/>
  157. <constraint firstItem="GjU-8P-aQr" firstAttribute="centerY" secondItem="wJG-lm-fcA" secondAttribute="centerY" id="CD7-yb-ayS"/>
  158. <constraint firstItem="GjU-8P-aQr" firstAttribute="leading" secondItem="iln-qB-xc5" secondAttribute="trailing" constant="8" symbolic="YES" id="LaG-7o-3lx"/>
  159. <constraint firstAttribute="trailing" secondItem="GjU-8P-aQr" secondAttribute="trailing" constant="16" id="VLL-gh-ucf"/>
  160. <constraint firstItem="iln-qB-xc5" firstAttribute="leading" secondItem="wJG-lm-fcA" secondAttribute="leading" constant="16" id="jKH-lp-gEL"/>
  161. </constraints>
  162. </tableViewCellContentView>
  163. </tableViewCell>
  164. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="0.0" id="wMg-ex-v9y">
  165. <rect key="frame" x="0.0" y="88" width="375" height="44"/>
  166. <autoresizingMask key="autoresizingMask"/>
  167. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="wMg-ex-v9y" id="ENe-8J-job">
  168. <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
  169. <autoresizingMask key="autoresizingMask"/>
  170. <subviews>
  171. <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3Td-4n-FLt">
  172. <rect key="frame" x="308" y="6.5" width="51" height="31"/>
  173. <color key="onTintColor" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  174. <connections>
  175. <action selector="shadowChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="cPT-cu-dxL"/>
  176. </connections>
  177. </switch>
  178. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Shadow" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QMG-Hg-1fa">
  179. <rect key="frame" x="16" y="11.5" width="284" height="21"/>
  180. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  181. <nil key="textColor"/>
  182. <nil key="highlightedColor"/>
  183. </label>
  184. </subviews>
  185. <constraints>
  186. <constraint firstItem="QMG-Hg-1fa" firstAttribute="centerY" secondItem="ENe-8J-job" secondAttribute="centerY" id="AhX-Fx-mfm"/>
  187. <constraint firstItem="3Td-4n-FLt" firstAttribute="centerY" secondItem="ENe-8J-job" secondAttribute="centerY" id="fH0-aK-qy4"/>
  188. <constraint firstItem="3Td-4n-FLt" firstAttribute="leading" secondItem="QMG-Hg-1fa" secondAttribute="trailing" constant="8" symbolic="YES" id="gf2-as-FeV"/>
  189. <constraint firstItem="QMG-Hg-1fa" firstAttribute="leading" secondItem="ENe-8J-job" secondAttribute="leading" constant="16" id="j4o-1Q-yQ1"/>
  190. <constraint firstAttribute="trailing" secondItem="3Td-4n-FLt" secondAttribute="trailing" constant="18" id="l0O-cf-bWz"/>
  191. </constraints>
  192. </tableViewCellContentView>
  193. </tableViewCell>
  194. <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="0.0" id="oEb-ID-TiW">
  195. <rect key="frame" x="0.0" y="132" width="375" height="44"/>
  196. <autoresizingMask key="autoresizingMask"/>
  197. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="oEb-ID-TiW" id="bxY-Uk-7dx">
  198. <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
  199. <autoresizingMask key="autoresizingMask"/>
  200. <subviews>
  201. <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="9fc-RY-s2O">
  202. <rect key="frame" x="308" y="6.5" width="51" height="31"/>
  203. <color key="onTintColor" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  204. <connections>
  205. <action selector="hidesRingForZeroProgressChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="I1x-5F-VMu"/>
  206. </connections>
  207. </switch>
  208. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Hides ring for zero progress" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qrd-16-0Bf">
  209. <rect key="frame" x="16" y="11.5" width="284" height="21"/>
  210. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  211. <nil key="textColor"/>
  212. <nil key="highlightedColor"/>
  213. </label>
  214. </subviews>
  215. <constraints>
  216. <constraint firstItem="9fc-RY-s2O" firstAttribute="leading" secondItem="Qrd-16-0Bf" secondAttribute="trailing" constant="8" symbolic="YES" id="EDB-at-KVd"/>
  217. <constraint firstItem="9fc-RY-s2O" firstAttribute="centerY" secondItem="bxY-Uk-7dx" secondAttribute="centerY" id="HFn-B8-mKG"/>
  218. <constraint firstItem="Qrd-16-0Bf" firstAttribute="centerY" secondItem="bxY-Uk-7dx" secondAttribute="centerY" id="hfb-9i-e4y"/>
  219. <constraint firstAttribute="trailing" secondItem="9fc-RY-s2O" secondAttribute="trailing" constant="18" id="nGx-8H-CKn"/>
  220. <constraint firstItem="Qrd-16-0Bf" firstAttribute="leading" secondItem="bxY-Uk-7dx" secondAttribute="leading" constant="16" id="rSb-Pb-U5c"/>
  221. </constraints>
  222. </tableViewCellContentView>
  223. </tableViewCell>
  224. </cells>
  225. </tableViewSection>
  226. </sections>
  227. <connections>
  228. <outlet property="dataSource" destination="MBw-Rk-XL8" id="o6r-vb-cre"/>
  229. <outlet property="delegate" destination="MBw-Rk-XL8" id="A6u-uE-s9v"/>
  230. </connections>
  231. </tableView>
  232. </tableViewController>
  233. <placeholder placeholderIdentifier="IBFirstResponder" id="kKa-cU-qDt" userLabel="First Responder" sceneMemberID="firstResponder"/>
  234. </objects>
  235. <point key="canvasLocation" x="3748" y="1055.6221889055473"/>
  236. </scene>
  237. <!--Navigation Controller-->
  238. <scene sceneID="R0w-h5-X3T">
  239. <objects>
  240. <navigationController automaticallyAdjustsScrollViewInsets="NO" id="b9c-6n-iGa" sceneMemberID="viewController">
  241. <toolbarItems/>
  242. <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="OSs-60-Z2e">
  243. <rect key="frame" x="0.0" y="20" width="375" height="44"/>
  244. <autoresizingMask key="autoresizingMask"/>
  245. </navigationBar>
  246. <nil name="viewControllers"/>
  247. <connections>
  248. <segue destination="9p5-Fd-aiN" kind="relationship" relationship="rootViewController" id="82d-XQ-BjA"/>
  249. </connections>
  250. </navigationController>
  251. <placeholder placeholderIdentifier="IBFirstResponder" id="cKu-RK-F8t" userLabel="First Responder" sceneMemberID="firstResponder"/>
  252. </objects>
  253. <point key="canvasLocation" x="1941.5999999999999" y="1057.4212893553224"/>
  254. </scene>
  255. </scenes>
  256. <color key="tintColor" red="1" green="0.074509803921568626" blue="0.32549019607843138" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  257. </document>