IHSensorFirstCell.xib 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="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="16087"/>
  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. <customFonts key="customFonts">
  11. <array key="Alibaba-PuHuiTi-Medium.otf">
  12. <string>AlibabaPuHuiTiM</string>
  13. </array>
  14. <array key="Alibaba-PuHuiTi-Regular.otf">
  15. <string>AlibabaPuHuiTiR</string>
  16. </array>
  17. </customFonts>
  18. <objects>
  19. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  20. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  21. <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="449" id="KGk-i7-Jjw" customClass="IHSensorFirstCell" customModule="智能照明" customModuleProvider="target">
  22. <rect key="frame" x="0.0" y="0.0" width="312" height="449"/>
  23. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  24. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
  25. <rect key="frame" x="0.0" y="0.0" width="312" height="449"/>
  26. <autoresizingMask key="autoresizingMask"/>
  27. <subviews>
  28. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sensor · HG78339" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xe6-YF-XXS">
  29. <rect key="frame" x="95" y="46" width="109" height="18"/>
  30. <fontDescription key="fontDescription" name="AlibabaPuHuiTiR" family="Alibaba PuHuiTi" pointSize="13"/>
  31. <color key="textColor" red="0.39607843139999999" green="0.43921568630000002" blue="0.52156862749999999" alpha="1" colorSpace="calibratedRGB"/>
  32. <nil key="highlightedColor"/>
  33. </label>
  34. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Sensor--Device Information" translatesAutoresizingMaskIntoConstraints="NO" id="S9e-og-cE8">
  35. <rect key="frame" x="20" y="20" width="60" height="60"/>
  36. <constraints>
  37. <constraint firstAttribute="height" constant="60" id="j1b-vk-772"/>
  38. <constraint firstAttribute="width" constant="60" id="pdh-ou-sgg"/>
  39. </constraints>
  40. </imageView>
  41. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sensor-A" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9ia-h6-clG">
  42. <rect key="frame" x="95" y="30" width="64.5" height="20"/>
  43. <fontDescription key="fontDescription" name="PingFangSC-Semibold" family="PingFang SC" pointSize="14"/>
  44. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
  45. <nil key="highlightedColor"/>
  46. </label>
  47. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="myJ-aG-HCn">
  48. <rect key="frame" x="20" y="388" width="272" height="36"/>
  49. <subviews>
  50. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="告警" translatesAutoresizingMaskIntoConstraints="NO" id="tG6-TZ-9Li">
  51. <rect key="frame" x="15" y="10" width="16" height="16"/>
  52. <constraints>
  53. <constraint firstAttribute="width" constant="16" id="0cA-gL-hu1"/>
  54. <constraint firstAttribute="height" constant="16" id="eGd-vF-BvZ"/>
  55. </constraints>
  56. </imageView>
  57. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sensor abnormality detected" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fPp-tO-2DT">
  58. <rect key="frame" x="42" y="9.5" width="164" height="17"/>
  59. <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="12"/>
  60. <color key="textColor" red="0.39607843139999999" green="0.43921568630000002" blue="0.52156862749999999" alpha="1" colorSpace="calibratedRGB"/>
  61. <nil key="highlightedColor"/>
  62. </label>
  63. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Repair" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ks8-tE-LC0">
  64. <rect key="frame" x="215" y="9.5" width="37" height="17"/>
  65. <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="12"/>
  66. <color key="textColor" red="1" green="0.047058823530000002" blue="0.30196078430000001" alpha="1" colorSpace="calibratedRGB"/>
  67. <nil key="highlightedColor"/>
  68. </label>
  69. </subviews>
  70. <color key="backgroundColor" red="1" green="0.95294117649999999" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/>
  71. <constraints>
  72. <constraint firstItem="fPp-tO-2DT" firstAttribute="leading" secondItem="tG6-TZ-9Li" secondAttribute="trailing" constant="11" id="HdX-Kb-rzq"/>
  73. <constraint firstItem="tG6-TZ-9Li" firstAttribute="centerY" secondItem="myJ-aG-HCn" secondAttribute="centerY" id="PBt-y7-gAX"/>
  74. <constraint firstItem="ks8-tE-LC0" firstAttribute="centerY" secondItem="myJ-aG-HCn" secondAttribute="centerY" id="X3t-y7-EON"/>
  75. <constraint firstAttribute="height" constant="36" id="ZyY-Gz-DUv"/>
  76. <constraint firstAttribute="trailing" secondItem="ks8-tE-LC0" secondAttribute="trailing" constant="20" id="jmC-qw-u3a"/>
  77. <constraint firstItem="tG6-TZ-9Li" firstAttribute="leading" secondItem="myJ-aG-HCn" secondAttribute="leading" constant="15" id="u9w-gn-gd5"/>
  78. <constraint firstItem="fPp-tO-2DT" firstAttribute="centerY" secondItem="myJ-aG-HCn" secondAttribute="centerY" id="zB4-HX-sQg"/>
  79. </constraints>
  80. <userDefinedRuntimeAttributes>
  81. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  82. <real key="value" value="5"/>
  83. </userDefinedRuntimeAttribute>
  84. </userDefinedRuntimeAttributes>
  85. </view>
  86. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GYa-Gc-FKZ">
  87. <rect key="frame" x="20" y="100" width="272" height="70"/>
  88. <subviews>
  89. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="总使用时长" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="K0n-bm-TGB">
  90. <rect key="frame" x="15" y="15" width="64" height="18"/>
  91. <fontDescription key="fontDescription" name="AlibabaPuHuiTiM" family="Alibaba PuHuiTi" pointSize="13"/>
  92. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
  93. <nil key="highlightedColor"/>
  94. </label>
  95. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="846h" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pz1-hm-zKv">
  96. <rect key="frame" x="15" y="36" width="43" height="25"/>
  97. <fontDescription key="fontDescription" name="AlibabaPuHuiTiM" family="Alibaba PuHuiTi" pointSize="18"/>
  98. <color key="textColor" red="0.3411764706" green="0.2470588235" blue="0.58431372550000005" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
  99. <nil key="highlightedColor"/>
  100. </label>
  101. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="背景插图" translatesAutoresizingMaskIntoConstraints="NO" id="s3i-hq-eyo">
  102. <rect key="frame" x="232" y="36" width="40" height="34"/>
  103. <constraints>
  104. <constraint firstAttribute="height" constant="34" id="QGp-QP-4ug"/>
  105. <constraint firstAttribute="width" constant="40" id="fzm-sC-jAC"/>
  106. </constraints>
  107. </imageView>
  108. </subviews>
  109. <color key="backgroundColor" red="0.96475058790000001" green="0.97259551290000001" blue="0.96862775089999997" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
  110. <constraints>
  111. <constraint firstItem="Pz1-hm-zKv" firstAttribute="leading" secondItem="GYa-Gc-FKZ" secondAttribute="leading" constant="15" id="3XS-nk-8RX"/>
  112. <constraint firstAttribute="bottom" secondItem="s3i-hq-eyo" secondAttribute="bottom" id="3or-jH-Ahu"/>
  113. <constraint firstItem="Pz1-hm-zKv" firstAttribute="top" secondItem="K0n-bm-TGB" secondAttribute="bottom" constant="3" id="Ekl-cI-Ekg"/>
  114. <constraint firstItem="K0n-bm-TGB" firstAttribute="top" secondItem="GYa-Gc-FKZ" secondAttribute="top" constant="15" id="HzY-UQ-EkZ"/>
  115. <constraint firstAttribute="height" constant="70" id="QMN-Mf-ltk"/>
  116. <constraint firstAttribute="trailing" secondItem="s3i-hq-eyo" secondAttribute="trailing" id="cia-xa-vqj"/>
  117. <constraint firstItem="K0n-bm-TGB" firstAttribute="leading" secondItem="GYa-Gc-FKZ" secondAttribute="leading" constant="15" id="umo-qb-fzr"/>
  118. </constraints>
  119. <userDefinedRuntimeAttributes>
  120. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  121. <real key="value" value="5"/>
  122. </userDefinedRuntimeAttribute>
  123. </userDefinedRuntimeAttributes>
  124. </view>
  125. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NQB-st-s3E">
  126. <rect key="frame" x="20" y="180" width="272" height="122"/>
  127. <color key="backgroundColor" red="0.97259360549999996" green="0.97645682099999997" blue="0.97647136450000005" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
  128. <constraints>
  129. <constraint firstAttribute="height" constant="122" id="qLJ-Fu-YOf"/>
  130. </constraints>
  131. <userDefinedRuntimeAttributes>
  132. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  133. <real key="value" value="5"/>
  134. </userDefinedRuntimeAttribute>
  135. </userDefinedRuntimeAttributes>
  136. </view>
  137. </subviews>
  138. <constraints>
  139. <constraint firstItem="NQB-st-s3E" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="5d4-0O-zmQ"/>
  140. <constraint firstItem="9ia-h6-clG" firstAttribute="centerY" secondItem="S9e-og-cE8" secondAttribute="centerY" constant="-10" id="AQJ-uX-kw9"/>
  141. <constraint firstItem="Xe6-YF-XXS" firstAttribute="centerY" secondItem="S9e-og-cE8" secondAttribute="centerY" constant="5" id="EjS-eG-yM7"/>
  142. <constraint firstItem="myJ-aG-HCn" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="Fad-UY-Rq5"/>
  143. <constraint firstItem="NQB-st-s3E" firstAttribute="top" secondItem="GYa-Gc-FKZ" secondAttribute="bottom" constant="10" id="L1n-ka-9hr"/>
  144. <constraint firstAttribute="trailing" secondItem="NQB-st-s3E" secondAttribute="trailing" constant="20" id="P1M-Iv-aNY"/>
  145. <constraint firstItem="S9e-og-cE8" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="PCa-eD-GBf"/>
  146. <constraint firstItem="S9e-og-cE8" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="U3u-yZ-DM9"/>
  147. <constraint firstItem="GYa-Gc-FKZ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="clz-Vi-YyR"/>
  148. <constraint firstItem="GYa-Gc-FKZ" firstAttribute="top" secondItem="S9e-og-cE8" secondAttribute="bottom" constant="20" id="ffx-wa-0O1"/>
  149. <constraint firstAttribute="trailing" secondItem="myJ-aG-HCn" secondAttribute="trailing" constant="20" id="gCc-Aw-Mqj"/>
  150. <constraint firstAttribute="bottom" secondItem="myJ-aG-HCn" secondAttribute="bottom" constant="25" id="gOA-X0-dN3"/>
  151. <constraint firstItem="9ia-h6-clG" firstAttribute="leading" secondItem="S9e-og-cE8" secondAttribute="trailing" constant="15" id="gmE-Uu-LrR"/>
  152. <constraint firstItem="Xe6-YF-XXS" firstAttribute="leading" secondItem="S9e-og-cE8" secondAttribute="trailing" constant="15" id="ow0-hR-tmR"/>
  153. <constraint firstAttribute="trailing" secondItem="GYa-Gc-FKZ" secondAttribute="trailing" constant="20" id="vWH-hp-4EY"/>
  154. </constraints>
  155. </tableViewCellContentView>
  156. <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
  157. <connections>
  158. <outlet property="alarmBox" destination="myJ-aG-HCn" id="WCL-Mi-U2x"/>
  159. <outlet property="alarmInfoLabel" destination="fPp-tO-2DT" id="Knh-HE-ShO"/>
  160. <outlet property="collectionBox" destination="NQB-st-s3E" id="oGH-gn-WCn"/>
  161. <outlet property="sensorIdLabel" destination="Xe6-YF-XXS" id="qeK-j6-jP7"/>
  162. <outlet property="sensorImageV" destination="S9e-og-cE8" id="ZBc-3Y-Wyq"/>
  163. <outlet property="sensorNameLabel" destination="9ia-h6-clG" id="Tbz-kF-fHW"/>
  164. <outlet property="useTimeLabel" destination="Pz1-hm-zKv" id="pyG-b9-Ouh"/>
  165. </connections>
  166. <point key="canvasLocation" x="131.8840579710145" y="255.46875"/>
  167. </tableViewCell>
  168. </objects>
  169. <resources>
  170. <image name="Sensor--Device Information" width="100" height="100"/>
  171. <image name="告警" width="18" height="21"/>
  172. <image name="背景插图" width="42" height="40"/>
  173. </resources>
  174. </document>