IHIHRoomListCell.xib 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15505" 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="15510"/>
  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="PingFangSC Heavy.ttf">
  12. <string>PingFang-SC-Heavy</string>
  13. </array>
  14. </customFonts>
  15. <objects>
  16. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  17. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  18. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="IHIHRoomListCell" customModule="Inhealth" customModuleProvider="target">
  19. <rect key="frame" x="0.0" y="0.0" width="154" height="170"/>
  20. <autoresizingMask key="autoresizingMask"/>
  21. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  22. <rect key="frame" x="0.0" y="0.0" width="154" height="170"/>
  23. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  24. <subviews>
  25. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="启用状态" translatesAutoresizingMaskIntoConstraints="NO" id="WNZ-E0-Ovk">
  26. <rect key="frame" x="0.0" y="0.0" width="154" height="170"/>
  27. </imageView>
  28. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Light-A" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qdo-mc-jVl">
  29. <rect key="frame" x="15" y="15" width="55.5" height="21"/>
  30. <fontDescription key="fontDescription" name="PingFang-SC-Heavy" family="PingFang SC" pointSize="15"/>
  31. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  32. <nil key="highlightedColor"/>
  33. </label>
  34. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Lights" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Zdt-kH-YQL">
  35. <rect key="frame" x="15" y="37" width="38" height="19"/>
  36. <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
  37. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  38. <nil key="highlightedColor"/>
  39. </label>
  40. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="30%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="41E-t5-K2h">
  41. <rect key="frame" x="15" y="129.5" width="40" height="25.5"/>
  42. <fontDescription key="fontDescription" name="PingFang-SC-Heavy" family="PingFang SC" pointSize="18"/>
  43. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  44. <nil key="highlightedColor"/>
  45. </label>
  46. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U9g-GN-NZM">
  47. <rect key="frame" x="103" y="132" width="36" height="20"/>
  48. <subviews>
  49. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IjS-0n-O76">
  50. <rect key="frame" x="0.0" y="0.0" width="36" height="20"/>
  51. </button>
  52. </subviews>
  53. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  54. <constraints>
  55. <constraint firstAttribute="height" constant="20" id="31k-MU-ct2"/>
  56. <constraint firstAttribute="bottom" secondItem="IjS-0n-O76" secondAttribute="bottom" id="BOI-iO-yMd"/>
  57. <constraint firstAttribute="width" constant="36" id="BbO-Cf-pcV"/>
  58. <constraint firstItem="IjS-0n-O76" firstAttribute="leading" secondItem="U9g-GN-NZM" secondAttribute="leading" id="Haz-bB-nUS"/>
  59. <constraint firstAttribute="trailing" secondItem="IjS-0n-O76" secondAttribute="trailing" id="PP8-XH-HiK"/>
  60. <constraint firstItem="IjS-0n-O76" firstAttribute="top" secondItem="U9g-GN-NZM" secondAttribute="top" id="mhF-gk-Tum"/>
  61. </constraints>
  62. </view>
  63. <imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="gJ8-Hc-KfC">
  64. <rect key="frame" x="114" y="15" width="25" height="25"/>
  65. <color key="backgroundColor" systemColor="systemPinkColor" red="1" green="0.1764705882" blue="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  66. <constraints>
  67. <constraint firstAttribute="height" constant="25" id="VAD-g7-5GT"/>
  68. <constraint firstAttribute="width" constant="25" id="XGw-M7-bCB"/>
  69. </constraints>
  70. </imageView>
  71. </subviews>
  72. </view>
  73. <constraints>
  74. <constraint firstAttribute="bottom" secondItem="U9g-GN-NZM" secondAttribute="bottom" constant="18" id="5xZ-2l-kae"/>
  75. <constraint firstAttribute="bottom" secondItem="41E-t5-K2h" secondAttribute="bottom" constant="15" id="BQ7-UH-7Cf"/>
  76. <constraint firstItem="41E-t5-K2h" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="15" id="O2K-JU-FHF"/>
  77. <constraint firstItem="gJ8-Hc-KfC" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="15" id="Oy6-95-Yel"/>
  78. <constraint firstItem="WNZ-E0-Ovk" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="Ptn-tx-MD4"/>
  79. <constraint firstItem="Zdt-kH-YQL" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="15" id="Un4-DN-T47"/>
  80. <constraint firstItem="Zdt-kH-YQL" firstAttribute="top" secondItem="Qdo-mc-jVl" secondAttribute="bottom" constant="1" id="YZJ-vJ-pxl"/>
  81. <constraint firstAttribute="trailing" secondItem="WNZ-E0-Ovk" secondAttribute="trailing" id="fAc-uj-kQn"/>
  82. <constraint firstItem="Qdo-mc-jVl" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="15" id="fFH-tn-WLy"/>
  83. <constraint firstAttribute="trailing" secondItem="U9g-GN-NZM" secondAttribute="trailing" constant="15" id="kvW-TB-LDP"/>
  84. <constraint firstItem="Qdo-mc-jVl" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="15" id="rnS-fm-IoK"/>
  85. <constraint firstAttribute="bottom" secondItem="WNZ-E0-Ovk" secondAttribute="bottom" id="uq5-8x-ooD"/>
  86. <constraint firstAttribute="trailing" secondItem="gJ8-Hc-KfC" secondAttribute="trailing" constant="15" id="wN5-qj-0aK"/>
  87. <constraint firstItem="WNZ-E0-Ovk" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="wRm-2G-H0t"/>
  88. </constraints>
  89. <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
  90. <size key="customSize" width="154" height="170"/>
  91. <userDefinedRuntimeAttributes>
  92. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  93. <real key="value" value="10"/>
  94. </userDefinedRuntimeAttribute>
  95. </userDefinedRuntimeAttributes>
  96. <connections>
  97. <outlet property="bgView" destination="WNZ-E0-Ovk" id="W00-KT-Qdu"/>
  98. <outlet property="devNameLabel" destination="Qdo-mc-jVl" id="ETn-JX-KGz"/>
  99. <outlet property="devTypeLabel" destination="Zdt-kH-YQL" id="5TT-7d-Tko"/>
  100. <outlet property="lightnessLabel" destination="41E-t5-K2h" id="wyY-Dg-XvB"/>
  101. <outlet property="repairIcon" destination="gJ8-Hc-KfC" id="7sn-G6-LQh"/>
  102. <outlet property="switchBtn" destination="IjS-0n-O76" id="ZVa-UE-5wQ"/>
  103. </connections>
  104. <point key="canvasLocation" x="213.04347826086959" y="152.67857142857142"/>
  105. </collectionViewCell>
  106. </objects>
  107. <resources>
  108. <image name="启用状态" width="155" height="144"/>
  109. </resources>
  110. </document>