RDSRoomCell.xib 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina6_0" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
  7. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  8. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  9. </dependencies>
  10. <objects>
  11. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  12. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  13. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="RDSRoomCell">
  14. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  15. <autoresizingMask key="autoresizingMask"/>
  16. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  17. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  18. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  19. <subviews>
  20. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DbI-Ub-FRA">
  21. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  22. <subviews>
  23. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="客厅" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aot-bh-aOC">
  24. <rect key="frame" x="20" y="25" width="37" height="22"/>
  25. <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
  26. <color key="textColor" red="0.15294117647058825" green="0.1803921568627451" blue="0.23137254901960785" alpha="1" colorSpace="calibratedRGB"/>
  27. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  28. </label>
  29. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hbX-2l-27d">
  30. <rect key="frame" x="108" y="11" width="50" height="50"/>
  31. <constraints>
  32. <constraint firstAttribute="width" constant="50" id="H7M-9E-saU"/>
  33. <constraint firstAttribute="height" constant="50" id="XnE-w9-1Mv"/>
  34. </constraints>
  35. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  36. <state key="normal" image="icon_on"/>
  37. <state key="selected" image="icon_on_sel"/>
  38. <connections>
  39. <action selector="powerBtnClick:" destination="gTV-IL-0wX" eventType="touchUpInside" id="z4q-Uh-MWH"/>
  40. </connections>
  41. </button>
  42. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="15℃" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Q1b-xB-yIB">
  43. <rect key="frame" x="43" y="77" width="36" height="20"/>
  44. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  45. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  46. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  47. </label>
  48. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="59%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xPg-wM-ct3">
  49. <rect key="frame" x="43" y="112" width="34" height="20"/>
  50. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  51. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  52. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  53. </label>
  54. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_temperature" highlightedImage="icon_temperature_w" translatesAutoresizingMaskIntoConstraints="NO" id="Sra-QX-Ywa">
  55. <rect key="frame" x="16" y="75" width="24" height="24"/>
  56. </imageView>
  57. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_humidity" highlightedImage="icon_humidity_w" translatesAutoresizingMaskIntoConstraints="NO" id="X9c-gC-mxz">
  58. <rect key="frame" x="16" y="110" width="24" height="24"/>
  59. </imageView>
  60. <button hidden="YES" opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TMp-xl-bWe">
  61. <rect key="frame" x="108" y="11" width="50" height="50"/>
  62. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  63. <state key="normal" image="icon_delete"/>
  64. <connections>
  65. <action selector="delBtnClick:" destination="gTV-IL-0wX" eventType="touchUpInside" id="0it-wV-bQy"/>
  66. </connections>
  67. </button>
  68. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="400" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZXw-hK-Rmy">
  69. <rect key="frame" x="122.33333333333331" y="75.666666666666671" width="29" height="22.666666666666671"/>
  70. <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="16"/>
  71. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  72. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  73. </label>
  74. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="455" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0yt-r9-7bb">
  75. <rect key="frame" x="122.33333333333331" y="108.66666666666667" width="29" height="22.666666666666671"/>
  76. <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="16"/>
  77. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  78. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  79. </label>
  80. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_pm2.5_off" highlightedImage="icon_pm2.5_on" translatesAutoresizingMaskIntoConstraints="NO" id="1ik-5e-ZJH">
  81. <rect key="frame" x="95.333333333333329" y="76" width="22" height="22"/>
  82. </imageView>
  83. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_co2_off" highlightedImage="icon_co2_on" translatesAutoresizingMaskIntoConstraints="NO" id="Q89-50-OWS">
  84. <rect key="frame" x="95.333333333333329" y="109" width="22" height="22"/>
  85. </imageView>
  86. </subviews>
  87. <color key="backgroundColor" red="0.94117647058823528" green="0.96078431372549022" blue="0.96470588235294119" alpha="1" colorSpace="calibratedRGB"/>
  88. <constraints>
  89. <constraint firstItem="Q1b-xB-yIB" firstAttribute="leading" secondItem="Sra-QX-Ywa" secondAttribute="trailing" constant="3" id="00t-ac-jt3"/>
  90. <constraint firstItem="Q89-50-OWS" firstAttribute="top" secondItem="1ik-5e-ZJH" secondAttribute="bottom" constant="11" id="5EA-Jw-TAg"/>
  91. <constraint firstItem="hbX-2l-27d" firstAttribute="centerY" secondItem="Aot-bh-aOC" secondAttribute="centerY" id="7Lo-bR-Bte"/>
  92. <constraint firstItem="TMp-xl-bWe" firstAttribute="width" secondItem="hbX-2l-27d" secondAttribute="width" id="Ekq-Xd-xbP"/>
  93. <constraint firstItem="Q89-50-OWS" firstAttribute="centerX" secondItem="1ik-5e-ZJH" secondAttribute="centerX" id="Esp-8c-zSt"/>
  94. <constraint firstItem="0yt-r9-7bb" firstAttribute="leading" secondItem="ZXw-hK-Rmy" secondAttribute="leading" id="Hkh-PW-8Ja"/>
  95. <constraint firstItem="1ik-5e-ZJH" firstAttribute="centerY" secondItem="Sra-QX-Ywa" secondAttribute="centerY" id="KAT-va-DUD"/>
  96. <constraint firstItem="1ik-5e-ZJH" firstAttribute="centerX" secondItem="DbI-Ub-FRA" secondAttribute="centerX" multiplier="1.25" id="L3w-la-qdi"/>
  97. <constraint firstItem="Sra-QX-Ywa" firstAttribute="leading" secondItem="Aot-bh-aOC" secondAttribute="leading" multiplier="0.8" id="L6P-IA-DfR"/>
  98. <constraint firstItem="Q89-50-OWS" firstAttribute="centerY" secondItem="0yt-r9-7bb" secondAttribute="centerY" id="MKU-Es-F07"/>
  99. <constraint firstItem="Q1b-xB-yIB" firstAttribute="centerY" secondItem="Sra-QX-Ywa" secondAttribute="centerY" id="OdG-Sz-vrE"/>
  100. <constraint firstItem="Aot-bh-aOC" firstAttribute="top" secondItem="DbI-Ub-FRA" secondAttribute="top" constant="25" id="Qhp-TD-6LE"/>
  101. <constraint firstItem="TMp-xl-bWe" firstAttribute="height" secondItem="hbX-2l-27d" secondAttribute="height" id="QoS-dO-pK7"/>
  102. <constraint firstItem="X9c-gC-mxz" firstAttribute="centerY" secondItem="xPg-wM-ct3" secondAttribute="centerY" id="Tkg-Eb-9Q0"/>
  103. <constraint firstAttribute="trailing" secondItem="TMp-xl-bWe" secondAttribute="trailing" constant="12" id="Tsx-as-OiD"/>
  104. <constraint firstItem="ZXw-hK-Rmy" firstAttribute="centerY" secondItem="1ik-5e-ZJH" secondAttribute="centerY" id="W0K-WL-hjR"/>
  105. <constraint firstItem="ZXw-hK-Rmy" firstAttribute="leading" secondItem="1ik-5e-ZJH" secondAttribute="trailing" constant="5" id="cVg-b6-xhd"/>
  106. <constraint firstItem="X9c-gC-mxz" firstAttribute="centerX" secondItem="Sra-QX-Ywa" secondAttribute="centerX" id="drl-cP-w05"/>
  107. <constraint firstItem="xPg-wM-ct3" firstAttribute="leading" secondItem="X9c-gC-mxz" secondAttribute="trailing" constant="3" id="eeu-WT-u1H"/>
  108. <constraint firstItem="Aot-bh-aOC" firstAttribute="leading" secondItem="DbI-Ub-FRA" secondAttribute="leading" constant="20" id="gZy-c4-cWK"/>
  109. <constraint firstItem="Sra-QX-Ywa" firstAttribute="top" secondItem="Aot-bh-aOC" secondAttribute="bottom" constant="28" id="jJU-sf-bYi"/>
  110. <constraint firstAttribute="trailing" secondItem="hbX-2l-27d" secondAttribute="trailing" constant="12" id="m5Q-KY-Rtc"/>
  111. <constraint firstItem="X9c-gC-mxz" firstAttribute="top" secondItem="Sra-QX-Ywa" secondAttribute="bottom" constant="11" id="mDt-8U-jmc"/>
  112. <constraint firstItem="TMp-xl-bWe" firstAttribute="centerY" secondItem="Aot-bh-aOC" secondAttribute="centerY" id="ofQ-IT-98w"/>
  113. </constraints>
  114. <userDefinedRuntimeAttributes>
  115. <userDefinedRuntimeAttribute type="string" keyPath="layer.cornerRadius" value="20"/>
  116. <userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
  117. </userDefinedRuntimeAttributes>
  118. </view>
  119. </subviews>
  120. </view>
  121. <viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
  122. <constraints>
  123. <constraint firstItem="DbI-Ub-FRA" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="L5M-gK-ZeZ"/>
  124. <constraint firstAttribute="bottom" secondItem="DbI-Ub-FRA" secondAttribute="bottom" id="dx4-5Z-TTd"/>
  125. <constraint firstItem="DbI-Ub-FRA" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="t51-FA-ul1"/>
  126. <constraint firstAttribute="trailing" secondItem="DbI-Ub-FRA" secondAttribute="trailing" id="yFO-E5-08e"/>
  127. </constraints>
  128. <connections>
  129. <outlet property="bgView" destination="DbI-Ub-FRA" id="hTb-tR-CF1"/>
  130. <outlet property="co2ImgView" destination="Q89-50-OWS" id="zXH-DV-epE"/>
  131. <outlet property="co2Lab" destination="0yt-r9-7bb" id="VI4-Cu-YHA"/>
  132. <outlet property="delBtn" destination="TMp-xl-bWe" id="l1q-oF-OuZ"/>
  133. <outlet property="humImgView" destination="X9c-gC-mxz" id="FYy-hw-cYO"/>
  134. <outlet property="humLab" destination="xPg-wM-ct3" id="836-mP-dRp"/>
  135. <outlet property="nameLab" destination="Aot-bh-aOC" id="4iL-1y-QLb"/>
  136. <outlet property="pm25ImgView" destination="1ik-5e-ZJH" id="nlm-t2-Lnf"/>
  137. <outlet property="pm25Lab" destination="ZXw-hK-Rmy" id="hhF-uT-cC5"/>
  138. <outlet property="powerBtn" destination="hbX-2l-27d" id="JAa-ar-ifn"/>
  139. <outlet property="tempImgView" destination="Sra-QX-Ywa" id="uGw-xZ-Cyo"/>
  140. <outlet property="tempLab" destination="Q1b-xB-yIB" id="Fg3-Zm-n1g"/>
  141. </connections>
  142. <point key="canvasLocation" x="136.92307692307691" y="20.616113744075829"/>
  143. </collectionViewCell>
  144. </objects>
  145. <resources>
  146. <image name="icon_co2_off" width="22" height="22"/>
  147. <image name="icon_co2_on" width="22" height="22"/>
  148. <image name="icon_delete" width="50" height="50"/>
  149. <image name="icon_humidity" width="24" height="24"/>
  150. <image name="icon_humidity_w" width="24" height="24"/>
  151. <image name="icon_on" width="50" height="50"/>
  152. <image name="icon_on_sel" width="50" height="50"/>
  153. <image name="icon_pm2.5_off" width="22" height="22"/>
  154. <image name="icon_pm2.5_on" width="22" height="22"/>
  155. <image name="icon_temperature" width="24" height="24"/>
  156. <image name="icon_temperature_w" width="24" height="24"/>
  157. </resources>
  158. </document>