RDSHomeTopView.xib 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
  3. <device id="retina6_1" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
  7. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  8. </dependencies>
  9. <objects>
  10. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  11. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  12. <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="RDSHomeTopView">
  13. <rect key="frame" x="0.0" y="0.0" width="390" height="206"/>
  14. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  15. <subviews>
  16. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xVh-gH-k2T">
  17. <rect key="frame" x="0.0" y="0.0" width="390" height="92.5"/>
  18. <subviews>
  19. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uZO-XC-pjP">
  20. <rect key="frame" x="320" y="20" width="50" height="50"/>
  21. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  22. <constraints>
  23. <constraint firstAttribute="height" constant="50" id="gHJ-pz-auE"/>
  24. <constraint firstAttribute="width" constant="50" id="j5B-vt-rmP"/>
  25. </constraints>
  26. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  27. <state key="normal" image="icon_default_user_1"/>
  28. <userDefinedRuntimeAttributes>
  29. <userDefinedRuntimeAttribute type="string" keyPath="layer.cornerRadius" value="25"/>
  30. <userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
  31. </userDefinedRuntimeAttributes>
  32. <connections>
  33. <action selector="onHeadClickAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="b46-FW-3oe"/>
  34. </connections>
  35. </button>
  36. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="欢迎回来,xxx!" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NBv-Ow-Fm1">
  37. <rect key="frame" x="20" y="22" width="140" height="22"/>
  38. <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
  39. <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  40. <nil key="highlightedColor"/>
  41. </label>
  42. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="感谢使用五恒健康系统" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hrs-zT-bwP">
  43. <rect key="frame" x="20" y="54" width="143" height="17"/>
  44. <fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
  45. <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  46. <nil key="highlightedColor"/>
  47. </label>
  48. </subviews>
  49. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  50. <constraints>
  51. <constraint firstItem="NBv-Ow-Fm1" firstAttribute="leading" secondItem="xVh-gH-k2T" secondAttribute="leading" constant="20" id="7x6-ZA-yQb"/>
  52. <constraint firstItem="NBv-Ow-Fm1" firstAttribute="top" secondItem="xVh-gH-k2T" secondAttribute="top" constant="22" id="DCY-bu-mZu"/>
  53. <constraint firstItem="Hrs-zT-bwP" firstAttribute="leading" secondItem="xVh-gH-k2T" secondAttribute="leading" constant="20" id="G7s-nD-dQd"/>
  54. <constraint firstItem="Hrs-zT-bwP" firstAttribute="top" secondItem="NBv-Ow-Fm1" secondAttribute="bottom" constant="10" id="KIm-oK-fne"/>
  55. <constraint firstItem="uZO-XC-pjP" firstAttribute="top" secondItem="xVh-gH-k2T" secondAttribute="top" constant="20" id="gwl-WF-a02"/>
  56. <constraint firstAttribute="trailing" secondItem="uZO-XC-pjP" secondAttribute="trailing" constant="20" id="quQ-TD-LSt"/>
  57. </constraints>
  58. </view>
  59. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="azV-E4-ij8">
  60. <rect key="frame" x="20" y="102.5" width="350" height="93.5"/>
  61. <subviews>
  62. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="27" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pr9-am-qWU">
  63. <rect key="frame" x="20" y="10" width="46" height="48"/>
  64. <fontDescription key="fontDescription" type="system" pointSize="40"/>
  65. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  66. <nil key="highlightedColor"/>
  67. </label>
  68. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="℃" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zis-rH-Dvw">
  69. <rect key="frame" x="68" y="15" width="21" height="22"/>
  70. <fontDescription key="fontDescription" type="system" pointSize="18"/>
  71. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  72. <nil key="highlightedColor"/>
  73. </label>
  74. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="9.12 星期一 " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yPu-0P-vRr">
  75. <rect key="frame" x="20" y="64.5" width="67" height="14.5"/>
  76. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  77. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  78. <nil key="highlightedColor"/>
  79. </label>
  80. <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="优" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DTq-nx-zCo">
  81. <rect key="frame" x="99" y="32.5" width="17" height="20"/>
  82. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  83. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  84. <nil key="highlightedColor"/>
  85. </label>
  86. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="阴天" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LWy-SL-mSE">
  87. <rect key="frame" x="94" y="64.5" width="25" height="14.5"/>
  88. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  89. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  90. <nil key="highlightedColor"/>
  91. </label>
  92. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="euA-kY-cOo">
  93. <rect key="frame" x="186" y="36.5" width="13.5" height="14.5"/>
  94. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  95. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  96. <nil key="highlightedColor"/>
  97. </label>
  98. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="湿度:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yaj-tR-Wa9">
  99. <rect key="frame" x="185.5" y="64.5" width="37" height="15"/>
  100. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  101. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  102. <nil key="highlightedColor"/>
  103. </label>
  104. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_location" translatesAutoresizingMaskIntoConstraints="NO" id="uCb-lE-IWC">
  105. <rect key="frame" x="166" y="34.5" width="18" height="18"/>
  106. </imageView>
  107. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_humidity_w" translatesAutoresizingMaskIntoConstraints="NO" id="iXy-IX-YRc">
  108. <rect key="frame" x="166.5" y="63.5" width="17" height="17"/>
  109. <constraints>
  110. <constraint firstAttribute="height" constant="17" id="9uc-Hy-fLm"/>
  111. <constraint firstAttribute="width" constant="17" id="zXR-Ah-RUM"/>
  112. </constraints>
  113. </imageView>
  114. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="50%" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="acr-21-cLY">
  115. <rect key="frame" x="222.5" y="64.5" width="27" height="15"/>
  116. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  117. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  118. <nil key="highlightedColor"/>
  119. </label>
  120. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XDX-xi-izw">
  121. <rect key="frame" x="268" y="12" width="70" height="70"/>
  122. <constraints>
  123. <constraint firstAttribute="width" constant="70" id="OfI-QE-08K"/>
  124. <constraint firstAttribute="height" constant="70" id="nm5-LF-TJx"/>
  125. </constraints>
  126. </imageView>
  127. </subviews>
  128. <color key="backgroundColor" red="0.14322164649999999" green="0.23307150600000001" blue="0.37642344830000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
  129. <constraints>
  130. <constraint firstItem="euA-kY-cOo" firstAttribute="centerY" secondItem="uCb-lE-IWC" secondAttribute="centerY" id="4hK-TG-x4o"/>
  131. <constraint firstAttribute="trailing" secondItem="XDX-xi-izw" secondAttribute="trailing" constant="12" id="5xc-qG-dAT"/>
  132. <constraint firstItem="yaj-tR-Wa9" firstAttribute="leading" secondItem="iXy-IX-YRc" secondAttribute="trailing" constant="2" id="8nx-NG-bNq"/>
  133. <constraint firstItem="iXy-IX-YRc" firstAttribute="centerX" secondItem="azV-E4-ij8" secondAttribute="centerX" id="B7B-eG-QYU"/>
  134. <constraint firstItem="acr-21-cLY" firstAttribute="leading" secondItem="yaj-tR-Wa9" secondAttribute="trailing" id="B9A-90-eGv"/>
  135. <constraint firstItem="DTq-nx-zCo" firstAttribute="leading" secondItem="zis-rH-Dvw" secondAttribute="trailing" constant="10" id="EwI-fO-0rl"/>
  136. <constraint firstItem="yPu-0P-vRr" firstAttribute="top" secondItem="Pr9-am-qWU" secondAttribute="bottom" constant="6.5" id="G4L-Ca-Fzj"/>
  137. <constraint firstItem="XDX-xi-izw" firstAttribute="centerY" secondItem="azV-E4-ij8" secondAttribute="centerY" id="H4y-yN-gHO"/>
  138. <constraint firstItem="Pr9-am-qWU" firstAttribute="leading" secondItem="azV-E4-ij8" secondAttribute="leading" constant="20" id="HKP-1n-df3"/>
  139. <constraint firstItem="Pr9-am-qWU" firstAttribute="top" secondItem="azV-E4-ij8" secondAttribute="top" constant="10" id="Hlj-VC-64g"/>
  140. <constraint firstItem="LWy-SL-mSE" firstAttribute="centerY" secondItem="yPu-0P-vRr" secondAttribute="centerY" id="IaJ-zN-5s4"/>
  141. <constraint firstItem="yPu-0P-vRr" firstAttribute="leading" secondItem="Pr9-am-qWU" secondAttribute="leading" id="O6l-Fr-bd3"/>
  142. <constraint firstItem="LWy-SL-mSE" firstAttribute="leading" secondItem="yPu-0P-vRr" secondAttribute="trailing" constant="7" id="PAg-2m-0YT"/>
  143. <constraint firstItem="iXy-IX-YRc" firstAttribute="centerY" secondItem="LWy-SL-mSE" secondAttribute="centerY" id="U1k-we-6i4"/>
  144. <constraint firstItem="zis-rH-Dvw" firstAttribute="top" secondItem="Pr9-am-qWU" secondAttribute="top" constant="5" id="W6R-2h-H76"/>
  145. <constraint firstItem="zis-rH-Dvw" firstAttribute="leading" secondItem="Pr9-am-qWU" secondAttribute="trailing" constant="2" id="gxB-4C-2oV"/>
  146. <constraint firstItem="acr-21-cLY" firstAttribute="centerY" secondItem="yaj-tR-Wa9" secondAttribute="centerY" id="hVS-p8-8hk"/>
  147. <constraint firstItem="euA-kY-cOo" firstAttribute="leading" secondItem="uCb-lE-IWC" secondAttribute="trailing" constant="2" id="hud-pG-ax1"/>
  148. <constraint firstItem="yaj-tR-Wa9" firstAttribute="centerY" secondItem="iXy-IX-YRc" secondAttribute="centerY" id="n1h-w5-ub3"/>
  149. <constraint firstItem="DTq-nx-zCo" firstAttribute="baseline" secondItem="Pr9-am-qWU" secondAttribute="baseline" id="p2T-1T-uxv"/>
  150. <constraint firstItem="uCb-lE-IWC" firstAttribute="bottom" secondItem="DTq-nx-zCo" secondAttribute="bottom" id="wmg-22-99H"/>
  151. <constraint firstItem="uCb-lE-IWC" firstAttribute="centerX" secondItem="azV-E4-ij8" secondAttribute="centerX" id="z7V-Cq-Bgc"/>
  152. </constraints>
  153. <userDefinedRuntimeAttributes>
  154. <userDefinedRuntimeAttribute type="string" keyPath="layer.cornerRadius" value="12"/>
  155. <userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
  156. </userDefinedRuntimeAttributes>
  157. </view>
  158. </subviews>
  159. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  160. <constraints>
  161. <constraint firstItem="xVh-gH-k2T" firstAttribute="trailing" secondItem="iN0-l3-epB" secondAttribute="trailing" id="0re-5R-MMv"/>
  162. <constraint firstAttribute="bottom" secondItem="azV-E4-ij8" secondAttribute="bottom" constant="10" id="7XH-r3-Zdd"/>
  163. <constraint firstItem="xVh-gH-k2T" firstAttribute="height" secondItem="iN0-l3-epB" secondAttribute="height" multiplier="0.9:2" id="90c-jq-cuA"/>
  164. <constraint firstItem="xVh-gH-k2T" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="XKm-jT-XUP"/>
  165. <constraint firstItem="azV-E4-ij8" firstAttribute="top" secondItem="xVh-gH-k2T" secondAttribute="bottom" constant="10" id="b2o-WK-Fv3"/>
  166. <constraint firstItem="xVh-gH-k2T" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="cih-HC-4zm"/>
  167. <constraint firstAttribute="trailing" secondItem="azV-E4-ij8" secondAttribute="trailing" constant="20" id="qwz-jL-c9k"/>
  168. <constraint firstItem="azV-E4-ij8" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" id="tbd-dL-o9P"/>
  169. </constraints>
  170. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  171. <connections>
  172. <outlet property="cityLab" destination="euA-kY-cOo" id="siT-Kn-FgW"/>
  173. <outlet property="headBtn" destination="uZO-XC-pjP" id="UQj-Tt-59p"/>
  174. <outlet property="imgView" destination="XDX-xi-izw" id="CcY-je-gez"/>
  175. <outlet property="rhLab" destination="acr-21-cLY" id="QmX-yg-501"/>
  176. <outlet property="tempLab" destination="Pr9-am-qWU" id="aIV-Ch-Hqf"/>
  177. <outlet property="timeLab" destination="yPu-0P-vRr" id="lik-LY-XaI"/>
  178. <outlet property="titleLab" destination="NBv-Ow-Fm1" id="vUb-bi-0yG"/>
  179. <outlet property="weateherTextLab" destination="LWy-SL-mSE" id="4fs-0v-eAj"/>
  180. </connections>
  181. <point key="canvasLocation" x="137.68115942028987" y="20.758928571428569"/>
  182. </view>
  183. </objects>
  184. <resources>
  185. <image name="icon_default_user_1" width="100" height="100"/>
  186. <image name="icon_humidity_w" width="24" height="24"/>
  187. <image name="icon_location" width="18" height="18"/>
  188. </resources>
  189. </document>