IHAssociatedGatewayCell.xib 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" 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-Regular.otf">
  12. <string>AlibabaPuHuiTiR</string>
  13. </array>
  14. <array key="PingFangSC Heavy.ttf">
  15. <string>PingFang-SC-Heavy</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" reuseIdentifier="associated" rowHeight="99" id="PCD-jZ-mbt" customClass="IHAssociatedGatewayCell" customModule="智能照明" customModuleProvider="target">
  22. <rect key="frame" x="0.0" y="0.0" width="317" height="99"/>
  23. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  24. <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="PCD-jZ-mbt" id="Jdl-ui-2J0">
  25. <rect key="frame" x="0.0" y="0.0" width="317" height="99"/>
  26. <autoresizingMask key="autoresizingMask"/>
  27. <subviews>
  28. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="全开" translatesAutoresizingMaskIntoConstraints="NO" id="Ul1-fr-Tbu">
  29. <rect key="frame" x="23.5" y="17" width="40" height="40"/>
  30. <constraints>
  31. <constraint firstAttribute="height" constant="40" id="nYo-cF-hB1"/>
  32. <constraint firstAttribute="width" constant="40" id="phU-sA-4KK"/>
  33. </constraints>
  34. <userDefinedRuntimeAttributes>
  35. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  36. <real key="value" value="20"/>
  37. </userDefinedRuntimeAttribute>
  38. </userDefinedRuntimeAttributes>
  39. </imageView>
  40. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Name" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="09w-oj-M41">
  41. <rect key="frame" x="75.5" y="17" width="39" height="20"/>
  42. <constraints>
  43. <constraint firstAttribute="height" constant="20" id="tTT-NO-P6V"/>
  44. </constraints>
  45. <fontDescription key="fontDescription" name="PingFang-SC-Heavy" family="PingFang SC" pointSize="14"/>
  46. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  47. <nil key="highlightedColor"/>
  48. </label>
  49. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="信号_弱" translatesAutoresizingMaskIntoConstraints="NO" id="IvB-Lv-XIe">
  50. <rect key="frame" x="119.5" y="21" width="12.5" height="12.5"/>
  51. <constraints>
  52. <constraint firstAttribute="height" constant="12.5" id="dd8-4T-n3S"/>
  53. <constraint firstAttribute="width" constant="12.5" id="xpA-FM-PbR"/>
  54. </constraints>
  55. </imageView>
  56. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ID73823789" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T12-j3-T8m">
  57. <rect key="frame" x="75.5" y="39" width="61.5" height="15.5"/>
  58. <constraints>
  59. <constraint firstAttribute="height" constant="15.5" id="LBA-dq-MdA"/>
  60. </constraints>
  61. <fontDescription key="fontDescription" name="AlibabaPuHuiTiR" family="Alibaba PuHuiTi" pointSize="11"/>
  62. <color key="textColor" red="0.39607843139999999" green="0.43921568630000002" blue="0.52156862749999999" alpha="1" colorSpace="calibratedRGB"/>
  63. <nil key="highlightedColor"/>
  64. </label>
  65. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uwe-hf-dOa">
  66. <rect key="frame" x="279" y="22" width="30" height="30"/>
  67. <constraints>
  68. <constraint firstAttribute="width" constant="30" id="cxm-YK-8UF"/>
  69. <constraint firstAttribute="height" constant="30" id="xNx-86-Uz1"/>
  70. </constraints>
  71. <state key="normal" image="禁止"/>
  72. <connections>
  73. <action selector="forbidAction:" destination="PCD-jZ-mbt" eventType="touchUpInside" id="zmN-XQ-JPN"/>
  74. </connections>
  75. </button>
  76. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SuU-Yo-N9U">
  77. <rect key="frame" x="229" y="22" width="30" height="30"/>
  78. <constraints>
  79. <constraint firstAttribute="width" constant="30" id="Ncr-6m-a8B"/>
  80. <constraint firstAttribute="height" constant="30" id="kfX-k9-rTN"/>
  81. </constraints>
  82. <state key="normal" image="关灯"/>
  83. <state key="selected" image="开灯"/>
  84. <connections>
  85. <action selector="turnOnOrOff:" destination="PCD-jZ-mbt" eventType="touchUpInside" id="n7E-nF-BHL"/>
  86. </connections>
  87. </button>
  88. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dNK-mQ-SgS">
  89. <rect key="frame" x="75.5" y="65" width="233.5" height="21"/>
  90. <subviews>
  91. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="关联设备" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yeB-Aw-nyV">
  92. <rect key="frame" x="13" y="3" width="50" height="15"/>
  93. <constraints>
  94. <constraint firstAttribute="height" constant="15" id="9i6-Sn-cqV"/>
  95. <constraint firstAttribute="width" constant="50" id="fMs-lE-vfU"/>
  96. </constraints>
  97. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  98. <color key="textColor" red="0.396078431372549" green="0.4392156862745098" blue="0.52156862745098043" alpha="1" colorSpace="calibratedRGB"/>
  99. <nil key="highlightedColor"/>
  100. </label>
  101. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="教室灯" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JmT-CM-dr8">
  102. <rect key="frame" x="174" y="3" width="37" height="15"/>
  103. <constraints>
  104. <constraint firstAttribute="height" constant="15" id="bZ9-sS-WmC"/>
  105. </constraints>
  106. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  107. <color key="textColor" red="0.396078431372549" green="0.4392156862745098" blue="0.52156862745098043" alpha="1" colorSpace="calibratedRGB"/>
  108. <nil key="highlightedColor"/>
  109. </label>
  110. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="byM-s5-NWA">
  111. <rect key="frame" x="211" y="0.0" width="22" height="21"/>
  112. <constraints>
  113. <constraint firstAttribute="width" constant="22" id="Nuu-fJ-HCn"/>
  114. </constraints>
  115. <state key="normal" image="youpoint"/>
  116. </button>
  117. </subviews>
  118. <color key="backgroundColor" red="0.96470588235294119" green="0.97254901960784312" blue="0.98039215686274506" alpha="1" colorSpace="calibratedRGB"/>
  119. <constraints>
  120. <constraint firstAttribute="trailing" secondItem="byM-s5-NWA" secondAttribute="trailing" constant="0.5" id="8Kz-0j-Lth"/>
  121. <constraint firstAttribute="bottom" secondItem="byM-s5-NWA" secondAttribute="bottom" id="BTU-1o-WYi"/>
  122. <constraint firstItem="yeB-Aw-nyV" firstAttribute="leading" secondItem="dNK-mQ-SgS" secondAttribute="leading" constant="13" id="Gqc-Hs-21M"/>
  123. <constraint firstItem="yeB-Aw-nyV" firstAttribute="centerY" secondItem="dNK-mQ-SgS" secondAttribute="centerY" id="JHF-Be-5MR"/>
  124. <constraint firstItem="byM-s5-NWA" firstAttribute="leading" secondItem="JmT-CM-dr8" secondAttribute="trailing" id="TQT-k6-9dH"/>
  125. <constraint firstItem="JmT-CM-dr8" firstAttribute="centerY" secondItem="dNK-mQ-SgS" secondAttribute="centerY" id="WJc-JW-Orm"/>
  126. <constraint firstAttribute="height" constant="21" id="aEc-yM-vii"/>
  127. <constraint firstItem="byM-s5-NWA" firstAttribute="top" secondItem="dNK-mQ-SgS" secondAttribute="top" id="c66-vu-AbQ"/>
  128. </constraints>
  129. </view>
  130. </subviews>
  131. <constraints>
  132. <constraint firstItem="uwe-hf-dOa" firstAttribute="top" secondItem="Jdl-ui-2J0" secondAttribute="top" constant="22" id="3x7-In-WSe"/>
  133. <constraint firstItem="IvB-Lv-XIe" firstAttribute="leading" secondItem="09w-oj-M41" secondAttribute="trailing" constant="5" id="4Cl-9P-AUz"/>
  134. <constraint firstItem="SuU-Yo-N9U" firstAttribute="top" secondItem="Jdl-ui-2J0" secondAttribute="top" constant="22" id="GgL-kx-Y4q"/>
  135. <constraint firstItem="T12-j3-T8m" firstAttribute="leading" secondItem="Ul1-fr-Tbu" secondAttribute="trailing" constant="12" id="Ien-O7-Ub0"/>
  136. <constraint firstItem="uwe-hf-dOa" firstAttribute="leading" secondItem="SuU-Yo-N9U" secondAttribute="trailing" constant="20" id="Ik4-GN-9za"/>
  137. <constraint firstItem="Ul1-fr-Tbu" firstAttribute="leading" secondItem="Jdl-ui-2J0" secondAttribute="leading" constant="23.5" id="JXD-a3-Lrz"/>
  138. <constraint firstItem="09w-oj-M41" firstAttribute="leading" secondItem="Ul1-fr-Tbu" secondAttribute="trailing" constant="12" id="Mu0-r0-qqc"/>
  139. <constraint firstItem="Ul1-fr-Tbu" firstAttribute="top" secondItem="Jdl-ui-2J0" secondAttribute="top" constant="17" id="OvF-R0-ms3"/>
  140. <constraint firstItem="IvB-Lv-XIe" firstAttribute="top" secondItem="Jdl-ui-2J0" secondAttribute="top" constant="21" id="PFk-iz-1Eq"/>
  141. <constraint firstItem="dNK-mQ-SgS" firstAttribute="leading" secondItem="Jdl-ui-2J0" secondAttribute="leading" constant="75.5" id="TEE-T5-Ny5"/>
  142. <constraint firstItem="T12-j3-T8m" firstAttribute="top" secondItem="09w-oj-M41" secondAttribute="bottom" constant="2" id="Xxy-PC-L1C"/>
  143. <constraint firstItem="dNK-mQ-SgS" firstAttribute="top" secondItem="Ul1-fr-Tbu" secondAttribute="bottom" constant="8" id="e8x-bb-YqP"/>
  144. <constraint firstItem="09w-oj-M41" firstAttribute="top" secondItem="Jdl-ui-2J0" secondAttribute="top" constant="17" id="gKv-Dl-gNJ"/>
  145. <constraint firstAttribute="trailing" secondItem="uwe-hf-dOa" secondAttribute="trailing" constant="8" id="sRD-3J-kBL"/>
  146. <constraint firstAttribute="trailing" secondItem="dNK-mQ-SgS" secondAttribute="trailing" constant="8" id="vbr-Ca-zWM"/>
  147. </constraints>
  148. </tableViewCellContentView>
  149. <viewLayoutGuide key="safeArea" id="OS1-9P-16B"/>
  150. <connections>
  151. <outlet property="devIcon" destination="Ul1-fr-Tbu" id="cbd-El-dtn"/>
  152. <outlet property="devId" destination="T12-j3-T8m" id="hgZ-wA-18n"/>
  153. <outlet property="devName" destination="09w-oj-M41" id="SEC-bF-e0h"/>
  154. <outlet property="deviceTypeLabel" destination="JmT-CM-dr8" id="OK5-3T-zsq"/>
  155. <outlet property="lampTurnOnBtn" destination="SuU-Yo-N9U" id="fl6-rM-NUm"/>
  156. </connections>
  157. <point key="canvasLocation" x="116.66666666666667" y="27.120535714285712"/>
  158. </tableViewCell>
  159. </objects>
  160. <resources>
  161. <image name="youpoint" width="8" height="8"/>
  162. <image name="信号_弱" width="12" height="9"/>
  163. <image name="全开" width="36" height="36"/>
  164. <image name="关灯" width="30" height="30"/>
  165. <image name="开灯" width="30" height="30"/>
  166. <image name="禁止" width="30" height="30"/>
  167. </resources>
  168. </document>