You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.storyboard 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Gx6-bv-CNq">
  3. <device id="retina4_7" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
  7. <capability name="System colors in document resources" minToolsVersion="11.0"/>
  8. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  9. </dependencies>
  10. <scenes>
  11. <!--Home View Controller-->
  12. <scene sceneID="7hm-Mj-uOj">
  13. <objects>
  14. <viewController id="Gx6-bv-CNq" customClass="HomeViewController" sceneMemberID="viewController">
  15. <layoutGuides>
  16. <viewControllerLayoutGuide type="top" id="12C-PF-bGw"/>
  17. <viewControllerLayoutGuide type="bottom" id="Z5P-QG-Cwk"/>
  18. </layoutGuides>
  19. <view key="view" contentMode="scaleToFill" id="NVh-8s-miL">
  20. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  21. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  22. <subviews>
  23. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dot-s5-Jub">
  24. <rect key="frame" x="0.0" y="40" width="375" height="40"/>
  25. <constraints>
  26. <constraint firstAttribute="height" constant="40" id="Lsm-ja-0yw"/>
  27. </constraints>
  28. <state key="normal" title="Click to Scan"/>
  29. <connections>
  30. <action selector="topButtonClick:" destination="Gx6-bv-CNq" eventType="touchUpInside" id="tf8-vg-yfY"/>
  31. </connections>
  32. </button>
  33. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Weight" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OqD-hk-87d">
  34. <rect key="frame" x="160.5" y="110" width="54" height="21"/>
  35. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  36. <nil key="textColor"/>
  37. <nil key="highlightedColor"/>
  38. </label>
  39. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uJp-jZ-zgm">
  40. <rect key="frame" x="145" y="318.5" width="85" height="30"/>
  41. <state key="normal" title="Change Unit"/>
  42. <connections>
  43. <action selector="changeUnitAction:" destination="Gx6-bv-CNq" eventType="touchUpInside" id="8Vo-jx-ADF"/>
  44. </connections>
  45. </button>
  46. </subviews>
  47. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  48. <constraints>
  49. <constraint firstAttribute="trailing" secondItem="Dot-s5-Jub" secondAttribute="trailing" id="5eF-hV-2DG"/>
  50. <constraint firstItem="Dot-s5-Jub" firstAttribute="leading" secondItem="NVh-8s-miL" secondAttribute="leading" id="AKq-R7-f79"/>
  51. <constraint firstItem="OqD-hk-87d" firstAttribute="top" secondItem="Dot-s5-Jub" secondAttribute="bottom" constant="30" id="FHe-2W-sdU"/>
  52. <constraint firstItem="uJp-jZ-zgm" firstAttribute="centerX" secondItem="NVh-8s-miL" secondAttribute="centerX" id="a1z-ae-3de"/>
  53. <constraint firstItem="uJp-jZ-zgm" firstAttribute="centerY" secondItem="NVh-8s-miL" secondAttribute="centerY" id="cd7-Bk-uam"/>
  54. <constraint firstItem="Dot-s5-Jub" firstAttribute="top" secondItem="12C-PF-bGw" secondAttribute="bottom" constant="40" id="gai-qi-RsD"/>
  55. <constraint firstItem="OqD-hk-87d" firstAttribute="centerX" secondItem="NVh-8s-miL" secondAttribute="centerX" id="tWt-4X-eYx"/>
  56. </constraints>
  57. </view>
  58. <navigationItem key="navigationItem" id="Apu-nt-Ffg"/>
  59. <connections>
  60. <outlet property="topButton" destination="Dot-s5-Jub" id="x4f-ZC-cps"/>
  61. <outlet property="weightLabel" destination="OqD-hk-87d" id="Bbt-w9-cgx"/>
  62. </connections>
  63. </viewController>
  64. <placeholder placeholderIdentifier="IBFirstResponder" id="5Zi-40-2De" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
  65. </objects>
  66. <point key="canvasLocation" x="-330" y="35"/>
  67. </scene>
  68. <!--View Controller-->
  69. <scene sceneID="tne-QT-ifu">
  70. <objects>
  71. <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
  72. <layoutGuides>
  73. <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
  74. <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
  75. </layoutGuides>
  76. <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
  77. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  78. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  79. <subviews>
  80. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="单位" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fmz-Up-oVz">
  81. <rect key="frame" x="157.5" y="20" width="60" height="35"/>
  82. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  83. <constraints>
  84. <constraint firstAttribute="width" constant="60" id="7Rz-lB-cl4"/>
  85. <constraint firstAttribute="height" constant="35" id="DFB-tq-8xi"/>
  86. </constraints>
  87. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  88. <nil key="highlightedColor"/>
  89. </label>
  90. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Lta-jT-th5">
  91. <rect key="frame" x="299" y="40" width="57" height="35"/>
  92. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  93. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  94. <fontDescription key="fontDescription" type="system" pointSize="13"/>
  95. <state key="normal" title="zero">
  96. <color key="titleColor" red="0.98823529409999999" green="0.99215686270000003" blue="0.99607843139999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  97. </state>
  98. <connections>
  99. <action selector="zeroClick:" destination="BYZ-38-t0r" eventType="touchUpInside" id="5zL-qr-dOS"/>
  100. </connections>
  101. </button>
  102. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="B7N-F7-BA1">
  103. <rect key="frame" x="20" y="20" width="129.5" height="35"/>
  104. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  105. <constraints>
  106. <constraint firstAttribute="height" constant="35" id="rU5-23-9sE"/>
  107. </constraints>
  108. <fontDescription key="fontDescription" type="system" pointSize="8"/>
  109. <state key="normal" title="disconnect and stop scan">
  110. <color key="titleColor" red="0.98823529409999999" green="0.99215686270000003" blue="0.99607843139999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  111. </state>
  112. <connections>
  113. <action selector="breakConnect:" destination="BYZ-38-t0r" eventType="touchUpInside" id="39x-By-0PS"/>
  114. </connections>
  115. </button>
  116. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="未连接" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UZz-VA-4Ie">
  117. <rect key="frame" x="224.5" y="20" width="71" height="35"/>
  118. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  119. <accessibility key="accessibilityConfiguration">
  120. <accessibilityTraits key="traits" staticText="YES" adjustable="YES"/>
  121. </accessibility>
  122. <constraints>
  123. <constraint firstAttribute="height" constant="35" id="ELH-zL-gAe"/>
  124. <constraint firstAttribute="width" constant="71" id="igt-ey-5lV"/>
  125. </constraints>
  126. <fontDescription key="fontDescription" type="system" pointSize="13"/>
  127. <color key="textColor" systemColor="darkTextColor"/>
  128. <nil key="highlightedColor"/>
  129. </label>
  130. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="重量" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hnA-sg-00L">
  131. <rect key="frame" x="19.5" y="67" width="336" height="93"/>
  132. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  133. <constraints>
  134. <constraint firstAttribute="width" constant="336" id="ch8-HK-xxE"/>
  135. <constraint firstAttribute="height" constant="93" id="gde-Pm-oI2"/>
  136. </constraints>
  137. <fontDescription key="fontDescription" type="system" pointSize="20"/>
  138. <color key="textColor" systemColor="darkTextColor"/>
  139. <nil key="highlightedColor"/>
  140. </label>
  141. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K9U-Cb-Dss">
  142. <rect key="frame" x="244" y="188" width="112" height="35"/>
  143. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  144. <color key="backgroundColor" red="0.16862745100000001" green="0.5568627451" blue="0.75294117650000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  145. <fontDescription key="fontDescription" type="system" pointSize="13"/>
  146. <state key="normal" title="scan and connect">
  147. <color key="titleColor" red="0.98823529409999999" green="0.99215686270000003" blue="0.99607843139999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  148. </state>
  149. <connections>
  150. <action selector="linkBle:" destination="BYZ-38-t0r" eventType="touchUpInside" id="d12-LP-reJ"/>
  151. </connections>
  152. </button>
  153. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QN0-5x-oiW">
  154. <rect key="frame" x="198" y="316" width="75" height="34"/>
  155. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  156. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  157. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  158. <state key="normal" title="total calorie"/>
  159. <connections>
  160. <action selector="setTotalKcal:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Egm-sA-ekB"/>
  161. </connections>
  162. </button>
  163. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dYC-aI-DOb">
  164. <rect key="frame" x="19" y="316" width="75" height="34"/>
  165. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  166. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  167. <fontDescription key="fontDescription" type="system" pointSize="13"/>
  168. <state key="normal" title="set weight"/>
  169. <connections>
  170. <action selector="setweight:" destination="BYZ-38-t0r" eventType="touchUpInside" id="EnA-89-Ksr"/>
  171. </connections>
  172. </button>
  173. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Tjj-JY-AcA">
  174. <rect key="frame" x="281" y="316" width="75" height="34"/>
  175. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  176. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  177. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  178. <state key="normal" title="total fat"/>
  179. <connections>
  180. <action selector="setTotalFat:" destination="BYZ-38-t0r" eventType="touchUpInside" id="W1i-RB-pCP"/>
  181. </connections>
  182. </button>
  183. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aHd-SV-ClN">
  184. <rect key="frame" x="197" y="358" width="75" height="34"/>
  185. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  186. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  187. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  188. <state key="normal" title="total fiber"/>
  189. <connections>
  190. <action selector="setTotalFiber:" destination="BYZ-38-t0r" eventType="touchUpInside" id="3BP-b7-CBe"/>
  191. </connections>
  192. </button>
  193. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bB7-ch-hEd">
  194. <rect key="frame" x="184" y="316" width="6" height="160"/>
  195. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  196. <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
  197. <connections>
  198. <action selector="setweight:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Sxa-0n-d5J"/>
  199. </connections>
  200. </button>
  201. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jNP-VH-9Hs">
  202. <rect key="frame" x="102" y="358" width="75" height="34"/>
  203. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  204. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  205. <fontDescription key="fontDescription" type="system" pointSize="8"/>
  206. <state key="normal" title="total carbohydrate"/>
  207. <connections>
  208. <action selector="setTotalCarbohydrates:" destination="BYZ-38-t0r" eventType="touchUpInside" id="DHh-1Q-DRV"/>
  209. </connections>
  210. </button>
  211. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Zhs-16-laT">
  212. <rect key="frame" x="18" y="358" width="75" height="34"/>
  213. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  214. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  215. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  216. <state key="normal" title="total protein"/>
  217. <connections>
  218. <action selector="setTotalProtein:" destination="BYZ-38-t0r" eventType="touchUpInside" id="pSY-OV-hWL"/>
  219. </connections>
  220. </button>
  221. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yav-W6-U1P">
  222. <rect key="frame" x="280" y="358" width="75" height="34"/>
  223. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  224. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  225. <fontDescription key="fontDescription" type="system" pointSize="8"/>
  226. <state key="normal" title="total cholestenone"/>
  227. <connections>
  228. <action selector="setTotalCholesterol:" destination="BYZ-38-t0r" eventType="touchUpInside" id="F61-ss-WUg"/>
  229. </connections>
  230. </button>
  231. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="62R-0M-lRo">
  232. <rect key="frame" x="197" y="400" width="75" height="34"/>
  233. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  234. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  235. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  236. <state key="normal" title="fat"/>
  237. <connections>
  238. <action selector="setFat:" destination="BYZ-38-t0r" eventType="touchUpInside" id="nrd-fc-7Sx"/>
  239. </connections>
  240. </button>
  241. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pfA-SF-uWV">
  242. <rect key="frame" x="101" y="400" width="75" height="34"/>
  243. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  244. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  245. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  246. <state key="normal" title="total sugar"/>
  247. <connections>
  248. <action selector="setTotalSuger:" destination="BYZ-38-t0r" eventType="touchUpInside" id="1ou-ar-TDc"/>
  249. </connections>
  250. </button>
  251. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Adl-yc-RgY">
  252. <rect key="frame" x="18" y="400" width="75" height="34"/>
  253. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  254. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  255. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  256. <state key="normal" title="total Na"/>
  257. <connections>
  258. <action selector="setTotalSodium:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Ofn-kU-I0p"/>
  259. </connections>
  260. </button>
  261. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BuN-Kd-HBC">
  262. <rect key="frame" x="280" y="400" width="75" height="34"/>
  263. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  264. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  265. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  266. <state key="normal" title="protein"/>
  267. <connections>
  268. <action selector="setProtein:" destination="BYZ-38-t0r" eventType="touchUpInside" id="hTn-Ue-LoY"/>
  269. </connections>
  270. </button>
  271. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GDF-5S-qGW">
  272. <rect key="frame" x="198" y="442" width="75" height="34"/>
  273. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  274. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  275. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  276. <state key="normal" title="Na"/>
  277. <connections>
  278. <action selector="setSodium:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Qle-4d-ETI"/>
  279. </connections>
  280. </button>
  281. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RDh-a4-8UP">
  282. <rect key="frame" x="102" y="442" width="75" height="34"/>
  283. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  284. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  285. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  286. <state key="normal" title="fiber"/>
  287. <connections>
  288. <action selector="setFiber:" destination="BYZ-38-t0r" eventType="touchUpInside" id="EAX-Wh-O58"/>
  289. </connections>
  290. </button>
  291. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Hn-mG-UCU">
  292. <rect key="frame" x="19" y="442" width="75" height="34"/>
  293. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  294. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  295. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  296. <state key="normal" title="carbohydrate"/>
  297. <connections>
  298. <action selector="setCarbohydrates:" destination="BYZ-38-t0r" eventType="touchUpInside" id="fm4-4o-aqf"/>
  299. </connections>
  300. </button>
  301. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5sx-HA-qoK">
  302. <rect key="frame" x="281" y="442" width="75" height="34"/>
  303. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  304. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  305. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  306. <state key="normal" title="sugar"/>
  307. <connections>
  308. <action selector="setSuger:" destination="BYZ-38-t0r" eventType="touchUpInside" id="MmL-Ts-Uk7"/>
  309. </connections>
  310. </button>
  311. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uP5-Uj-qbZ">
  312. <rect key="frame" x="20" y="484" width="73" height="34"/>
  313. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  314. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  315. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  316. <state key="normal" title="cholestenone"/>
  317. <connections>
  318. <action selector="setCholesterol:" destination="BYZ-38-t0r" eventType="touchUpInside" id="pyd-cM-3tQ"/>
  319. </connections>
  320. </button>
  321. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EH8-Dz-J4n">
  322. <rect key="frame" x="102" y="316" width="75" height="34"/>
  323. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  324. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  325. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  326. <state key="normal" title="calorie"/>
  327. <connections>
  328. <action selector="setKcal:" destination="BYZ-38-t0r" eventType="touchUpInside" id="8Qc-yN-dq8"/>
  329. </connections>
  330. </button>
  331. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4rd-kO-TDn">
  332. <rect key="frame" x="20" y="232" width="90" height="30"/>
  333. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  334. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  335. <textInputTraits key="textInputTraits"/>
  336. <connections>
  337. <action selector="WeightInput_one:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="eBa-7L-0Cf"/>
  338. </connections>
  339. </textField>
  340. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="dlV-Cm-f68">
  341. <rect key="frame" x="185" y="232" width="95" height="30"/>
  342. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  343. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  344. <textInputTraits key="textInputTraits"/>
  345. <connections>
  346. <action selector="WeightInput_two:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="cd8-FT-1Wb"/>
  347. </connections>
  348. </textField>
  349. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tNy-T9-sEZ">
  350. <rect key="frame" x="20" y="270" width="90" height="30"/>
  351. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  352. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  353. <textInputTraits key="textInputTraits"/>
  354. <connections>
  355. <action selector="WeightInput_three:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="gvp-u6-iKa"/>
  356. </connections>
  357. </textField>
  358. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="OQ7-iN-9kk">
  359. <rect key="frame" x="185" y="270" width="95" height="30"/>
  360. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  361. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  362. <textInputTraits key="textInputTraits"/>
  363. <connections>
  364. <action selector="WeightInput_four:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="DeN-ii-EPS"/>
  365. </connections>
  366. </textField>
  367. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oWY-3L-Jt2">
  368. <rect key="frame" x="124" y="231" width="53" height="30"/>
  369. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  370. <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  371. <state key="normal" title="set"/>
  372. <connections>
  373. <action selector="setWeight_one:" destination="BYZ-38-t0r" eventType="touchUpInside" id="LoH-pc-WXb"/>
  374. </connections>
  375. </button>
  376. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mcy-pN-j9I">
  377. <rect key="frame" x="288" y="232" width="68" height="30"/>
  378. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  379. <color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  380. <state key="normal" title="set"/>
  381. <connections>
  382. <action selector="setWeight_two:" destination="BYZ-38-t0r" eventType="touchUpInside" id="719-iY-Cc5"/>
  383. </connections>
  384. </button>
  385. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qUs-lm-aZz">
  386. <rect key="frame" x="125" y="269" width="52" height="30"/>
  387. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  388. <color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  389. <state key="normal" title="set"/>
  390. <connections>
  391. <action selector="SetWeight_three:" destination="BYZ-38-t0r" eventType="touchUpInside" id="YuA-cb-qe0"/>
  392. </connections>
  393. </button>
  394. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ySq-f6-v6H">
  395. <rect key="frame" x="288" y="269" width="68" height="30"/>
  396. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  397. <color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  398. <state key="normal" title="set"/>
  399. <connections>
  400. <action selector="setWeight_four:" destination="BYZ-38-t0r" eventType="touchUpInside" id="XvD-kk-jff"/>
  401. </connections>
  402. </button>
  403. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Enter the number and click thebutton to set" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="gEn-KV-DuW">
  404. <rect key="frame" x="105" y="488" width="250" height="30"/>
  405. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  406. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  407. <textInputTraits key="textInputTraits"/>
  408. <connections>
  409. <action selector="inputData:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="BGk-vl-biE"/>
  410. </connections>
  411. </textField>
  412. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="weight" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="TNU-bA-lwN">
  413. <rect key="frame" x="20" y="526" width="97" height="30"/>
  414. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  415. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  416. <textInputTraits key="textInputTraits"/>
  417. <connections>
  418. <action selector="ForWeight:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="wQf-PB-uuc"/>
  419. </connections>
  420. </textField>
  421. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="totalKCAL" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Xq7-S2-1m0">
  422. <rect key="frame" x="140" y="526" width="97" height="30"/>
  423. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  424. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  425. <textInputTraits key="textInputTraits"/>
  426. <connections>
  427. <action selector="ForKcal:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="dzs-in-g4h"/>
  428. </connections>
  429. </textField>
  430. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ssw-HO-QB3">
  431. <rect key="frame" x="20" y="564" width="74" height="30"/>
  432. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  433. <color key="backgroundColor" red="0.0078431372550000003" green="0.59999999999999998" blue="0.76078431369999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  434. <state key="normal" title="开始设置"/>
  435. <connections>
  436. <action selector="StartSet:" destination="BYZ-38-t0r" eventType="touchUpInside" id="udE-5m-GnR"/>
  437. </connections>
  438. </button>
  439. <textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Kcal" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="zR6-bk-7KI">
  440. <rect key="frame" x="258" y="526" width="97" height="30"/>
  441. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  442. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  443. <textInputTraits key="textInputTraits"/>
  444. <connections>
  445. <action selector="ForTotalKcal:" destination="BYZ-38-t0r" eventType="editingDidEnd" id="wzH-CT-iHA"/>
  446. </connections>
  447. </textField>
  448. </subviews>
  449. <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  450. <constraints>
  451. <constraint firstItem="fmz-Up-oVz" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="3GX-95-Fu8"/>
  452. <constraint firstItem="fmz-Up-oVz" firstAttribute="leading" secondItem="B7N-F7-BA1" secondAttribute="trailing" constant="8" id="KQm-4Q-6bo"/>
  453. <constraint firstItem="hnA-sg-00L" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="N4g-42-oBP"/>
  454. <constraint firstItem="fmz-Up-oVz" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="20" id="PVK-DK-o7G"/>
  455. <constraint firstItem="B7N-F7-BA1" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="20" id="SDq-0X-wvl"/>
  456. <constraint firstItem="UZz-VA-4Ie" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="20" id="XET-gw-t3U"/>
  457. <constraint firstItem="hnA-sg-00L" firstAttribute="top" secondItem="fmz-Up-oVz" secondAttribute="bottom" constant="12" id="eR6-TW-5dN"/>
  458. <constraint firstItem="B7N-F7-BA1" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="20" id="kSY-yP-gMn"/>
  459. <constraint firstItem="UZz-VA-4Ie" firstAttribute="leading" secondItem="fmz-Up-oVz" secondAttribute="trailing" constant="7" id="t0G-e4-Ec0"/>
  460. </constraints>
  461. </view>
  462. <connections>
  463. <outlet property="ForKcal_TF" destination="Xq7-S2-1m0" id="wMp-KC-4Rw"/>
  464. <outlet property="ForTotalKcal_TF" destination="zR6-bk-7KI" id="RYG-2V-rFC"/>
  465. <outlet property="ForWeight_TF" destination="TNU-bA-lwN" id="t6B-KG-8a4"/>
  466. <outlet property="WeightTF_four" destination="OQ7-iN-9kk" id="cAp-gL-9eF"/>
  467. <outlet property="WeightTF_one" destination="4rd-kO-TDn" id="a7f-mm-8yJ"/>
  468. <outlet property="WeightTF_three" destination="tNy-T9-sEZ" id="I74-VR-g4b"/>
  469. <outlet property="WeightTF_two" destination="dlV-Cm-f68" id="SOi-aW-tq9"/>
  470. <outlet property="bleStatus" destination="UZz-VA-4Ie" id="dvX-e2-gdR"/>
  471. <outlet property="dataTextFiled" destination="gEn-KV-DuW" id="NJc-qb-5JH"/>
  472. <outlet property="unitLabel" destination="fmz-Up-oVz" id="9ad-UK-kig"/>
  473. <outlet property="weightLabel" destination="hnA-sg-00L" id="YvR-3h-yRj"/>
  474. <outlet property="zerobutton" destination="Lta-jT-th5" id="f3P-g3-nBO"/>
  475. </connections>
  476. </viewController>
  477. <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
  478. </objects>
  479. <point key="canvasLocation" x="871" y="341"/>
  480. </scene>
  481. </scenes>
  482. <resources>
  483. <systemColor name="darkTextColor">
  484. <color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  485. </systemColor>
  486. <systemColor name="systemBackgroundColor">
  487. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  488. </systemColor>
  489. </resources>
  490. </document>