IHAssociatedCell.xib 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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-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" rowHeight="74" id="KGk-i7-Jjw" customClass="IHAssociatedCell" customModule="智能照明" customModuleProvider="target">
  22. <rect key="frame" x="0.0" y="0.0" width="317" height="74"/>
  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="317" height="74"/>
  26. <autoresizingMask key="autoresizingMask"/>
  27. <subviews>
  28. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="全开" translatesAutoresizingMaskIntoConstraints="NO" id="bgT-Rf-aFG">
  29. <rect key="frame" x="23.5" y="17" width="40" height="40"/>
  30. <constraints>
  31. <constraint firstAttribute="width" constant="40" id="DED-eQ-9P3"/>
  32. <constraint firstAttribute="height" constant="40" id="fKs-Tr-d3P"/>
  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="F0J-yP-3FC">
  41. <rect key="frame" x="75.5" y="17" width="39" height="20"/>
  42. <fontDescription key="fontDescription" name="PingFang-SC-Heavy" family="PingFang SC" pointSize="14"/>
  43. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  44. <nil key="highlightedColor"/>
  45. </label>
  46. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="信号_弱" translatesAutoresizingMaskIntoConstraints="NO" id="1eI-go-5CO">
  47. <rect key="frame" x="119.5" y="21" width="12.5" height="12.5"/>
  48. <constraints>
  49. <constraint firstAttribute="height" constant="12.5" id="Hva-De-yMn"/>
  50. <constraint firstAttribute="width" constant="12.5" id="p0h-0m-2yQ"/>
  51. </constraints>
  52. </imageView>
  53. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ID73823789" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KAf-Mh-OP3">
  54. <rect key="frame" x="75.5" y="39" width="61.5" height="15.5"/>
  55. <fontDescription key="fontDescription" name="AlibabaPuHuiTiR" family="Alibaba PuHuiTi" pointSize="11"/>
  56. <color key="textColor" red="0.396078431372549" green="0.4392156862745098" blue="0.52156862745098043" alpha="1" colorSpace="calibratedRGB"/>
  57. <nil key="highlightedColor"/>
  58. </label>
  59. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HlB-Dt-tGM">
  60. <rect key="frame" x="279" y="22" width="30" height="30"/>
  61. <constraints>
  62. <constraint firstAttribute="width" constant="30" id="ZbX-7j-NsD"/>
  63. <constraint firstAttribute="height" constant="30" id="h5J-3S-hFd"/>
  64. </constraints>
  65. <state key="normal" image="禁止"/>
  66. <connections>
  67. <action selector="forbidAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="pxr-aj-h9S"/>
  68. </connections>
  69. </button>
  70. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YYX-VT-pUB">
  71. <rect key="frame" x="229" y="22" width="30" height="30"/>
  72. <constraints>
  73. <constraint firstAttribute="width" constant="30" id="Icd-QK-wQ3"/>
  74. <constraint firstAttribute="height" constant="30" id="p8v-Hw-SDO"/>
  75. </constraints>
  76. <state key="normal" image="关灯"/>
  77. <state key="selected" image="开灯"/>
  78. <connections>
  79. <action selector="turnOnOrOff:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="FYR-7s-wHq"/>
  80. </connections>
  81. </button>
  82. </subviews>
  83. <constraints>
  84. <constraint firstItem="YYX-VT-pUB" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="6ha-rW-bf9"/>
  85. <constraint firstItem="F0J-yP-3FC" firstAttribute="top" secondItem="bgT-Rf-aFG" secondAttribute="top" id="72W-EW-URX"/>
  86. <constraint firstItem="1eI-go-5CO" firstAttribute="leading" secondItem="F0J-yP-3FC" secondAttribute="trailing" constant="5" id="IOZ-Rs-ZKw"/>
  87. <constraint firstItem="bgT-Rf-aFG" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Ilk-1J-N7Z"/>
  88. <constraint firstItem="F0J-yP-3FC" firstAttribute="leading" secondItem="bgT-Rf-aFG" secondAttribute="trailing" constant="12" id="KOe-68-9hK"/>
  89. <constraint firstItem="1eI-go-5CO" firstAttribute="centerY" secondItem="F0J-yP-3FC" secondAttribute="centerY" id="RoZ-EC-Y51"/>
  90. <constraint firstItem="KAf-Mh-OP3" firstAttribute="leading" secondItem="F0J-yP-3FC" secondAttribute="leading" id="cmq-sT-hC6"/>
  91. <constraint firstItem="KAf-Mh-OP3" firstAttribute="top" secondItem="F0J-yP-3FC" secondAttribute="bottom" constant="2" id="dNO-zG-PHI"/>
  92. <constraint firstItem="bgT-Rf-aFG" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="23.5" id="gac-qc-m3B"/>
  93. <constraint firstAttribute="trailing" secondItem="HlB-Dt-tGM" secondAttribute="trailing" constant="8" id="seq-9g-tva"/>
  94. <constraint firstItem="HlB-Dt-tGM" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="yYd-SB-qUT"/>
  95. <constraint firstItem="HlB-Dt-tGM" firstAttribute="leading" secondItem="YYX-VT-pUB" secondAttribute="trailing" constant="20" id="zwf-xR-Axg"/>
  96. </constraints>
  97. </tableViewCellContentView>
  98. <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
  99. <connections>
  100. <outlet property="devIcon" destination="bgT-Rf-aFG" id="S8Z-ke-Lbj"/>
  101. <outlet property="devId" destination="KAf-Mh-OP3" id="Vbx-Ms-W3N"/>
  102. <outlet property="devName" destination="F0J-yP-3FC" id="eQC-zs-7bG"/>
  103. <outlet property="lampTurnOnBtn" destination="YYX-VT-pUB" id="LzA-zV-dpJ"/>
  104. </connections>
  105. <point key="canvasLocation" x="132.60869565217394" y="89.732142857142847"/>
  106. </tableViewCell>
  107. </objects>
  108. <resources>
  109. <image name="信号_弱" width="12" height="9"/>
  110. <image name="全开" width="36" height="36"/>
  111. <image name="关灯" width="30" height="30"/>
  112. <image name="开灯" width="30" height="30"/>
  113. <image name="禁止" width="30" height="30"/>
  114. </resources>
  115. </document>