VideoCourseCell.xib 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" 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="20020"/>
  7. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  8. <capability name="System colors in document resources" minToolsVersion="11.0"/>
  9. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  10. </dependencies>
  11. <objects>
  12. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  13. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  14. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="VideoCourseCell">
  15. <rect key="frame" x="0.0" y="0.0" width="168" height="200"/>
  16. <autoresizingMask key="autoresizingMask"/>
  17. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  18. <rect key="frame" x="0.0" y="0.0" width="168" height="200"/>
  19. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  20. <subviews>
  21. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZgA-i1-RHm">
  22. <rect key="frame" x="0.0" y="0.0" width="168" height="200"/>
  23. <subviews>
  24. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="video_placeholder" translatesAutoresizingMaskIntoConstraints="NO" id="G9V-fH-gog">
  25. <rect key="frame" x="0.0" y="0.0" width="168" height="111"/>
  26. <constraints>
  27. <constraint firstAttribute="height" constant="111" id="6CZ-fO-O3c"/>
  28. </constraints>
  29. </imageView>
  30. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="从零开始学竖笛视频课" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yCS-l4-WAt">
  31. <rect key="frame" x="11" y="117" width="146" height="17"/>
  32. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  33. <color key="textColor" red="0.10196078431372549" green="0.10196078431372549" blue="0.10196078431372549" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
  34. <nil key="highlightedColor"/>
  35. </label>
  36. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥120/4课时" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Yib-mA-6Ou">
  37. <rect key="frame" x="9" y="164" width="81" height="20"/>
  38. <constraints>
  39. <constraint firstAttribute="height" constant="20" id="fo4-3I-tde"/>
  40. </constraints>
  41. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
  42. <color key="textColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="calibratedRGB"/>
  43. <nil key="highlightedColor"/>
  44. </label>
  45. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="user_default_avatal" translatesAutoresizingMaskIntoConstraints="NO" id="3il-XM-fqj">
  46. <rect key="frame" x="11" y="139" width="20" height="20"/>
  47. <constraints>
  48. <constraint firstAttribute="width" constant="20" id="1af-AW-k6Y"/>
  49. <constraint firstAttribute="height" constant="20" id="Y9m-cV-JYR"/>
  50. </constraints>
  51. <userDefinedRuntimeAttributes>
  52. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  53. <real key="value" value="10"/>
  54. </userDefinedRuntimeAttribute>
  55. </userDefinedRuntimeAttributes>
  56. </imageView>
  57. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="张老师" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wbK-Jo-ZbH">
  58. <rect key="frame" x="36" y="141.5" width="37" height="15"/>
  59. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  60. <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
  61. <nil key="highlightedColor"/>
  62. </label>
  63. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bIp-3Q-l9m">
  64. <rect key="frame" x="79" y="139" width="79" height="20"/>
  65. <subviews>
  66. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="00e-da-LHX">
  67. <rect key="frame" x="0.0" y="4.5" width="1" height="11"/>
  68. <color key="backgroundColor" red="0.82745098039215681" green="0.82745098039215681" blue="0.82745098039215681" alpha="1" colorSpace="calibratedRGB"/>
  69. <constraints>
  70. <constraint firstAttribute="width" constant="1" id="DB4-3O-ysi"/>
  71. <constraint firstAttribute="height" constant="11" id="WC2-EJ-sEy"/>
  72. </constraints>
  73. </view>
  74. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="6人已购买" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Spj-bd-Syo">
  75. <rect key="frame" x="7" y="2.5" width="57" height="15"/>
  76. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  77. <color key="textColor" red="1" green="0.50196078431372548" blue="0.17254901960784313" alpha="1" colorSpace="calibratedRGB"/>
  78. <nil key="highlightedColor"/>
  79. </label>
  80. </subviews>
  81. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  82. <constraints>
  83. <constraint firstItem="Spj-bd-Syo" firstAttribute="leading" secondItem="00e-da-LHX" secondAttribute="trailing" constant="6" id="DcA-GQ-uex"/>
  84. <constraint firstItem="00e-da-LHX" firstAttribute="leading" secondItem="bIp-3Q-l9m" secondAttribute="leading" id="PAd-8V-fS6"/>
  85. <constraint firstItem="Spj-bd-Syo" firstAttribute="centerY" secondItem="bIp-3Q-l9m" secondAttribute="centerY" id="bcy-rr-kIP"/>
  86. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="Spj-bd-Syo" secondAttribute="trailing" constant="2" id="eRd-Ja-Uy9"/>
  87. <constraint firstAttribute="height" constant="20" id="hgn-YW-c4O"/>
  88. <constraint firstItem="00e-da-LHX" firstAttribute="centerY" secondItem="bIp-3Q-l9m" secondAttribute="centerY" id="sCN-Nb-Z2j"/>
  89. </constraints>
  90. </view>
  91. </subviews>
  92. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  93. <constraints>
  94. <constraint firstItem="yCS-l4-WAt" firstAttribute="leading" secondItem="ZgA-i1-RHm" secondAttribute="leading" constant="11" id="1Ls-Wb-fRT"/>
  95. <constraint firstItem="G9V-fH-gog" firstAttribute="top" secondItem="ZgA-i1-RHm" secondAttribute="top" id="5ix-vd-TUM"/>
  96. <constraint firstItem="Yib-mA-6Ou" firstAttribute="leading" secondItem="ZgA-i1-RHm" secondAttribute="leading" constant="9" id="74G-dg-JPA"/>
  97. <constraint firstItem="G9V-fH-gog" firstAttribute="leading" secondItem="ZgA-i1-RHm" secondAttribute="leading" id="9e1-eo-OKH"/>
  98. <constraint firstItem="yCS-l4-WAt" firstAttribute="top" secondItem="G9V-fH-gog" secondAttribute="bottom" constant="6" id="EOx-Xx-BzN"/>
  99. <constraint firstItem="3il-XM-fqj" firstAttribute="top" secondItem="yCS-l4-WAt" secondAttribute="bottom" constant="5" id="Jjh-pl-Duz"/>
  100. <constraint firstAttribute="trailing" secondItem="yCS-l4-WAt" secondAttribute="trailing" constant="11" id="N8r-qo-ZmS"/>
  101. <constraint firstItem="3il-XM-fqj" firstAttribute="leading" secondItem="ZgA-i1-RHm" secondAttribute="leading" constant="11" id="P7e-LF-pGN"/>
  102. <constraint firstItem="wbK-Jo-ZbH" firstAttribute="centerY" secondItem="3il-XM-fqj" secondAttribute="centerY" id="TWM-PS-Pnk"/>
  103. <constraint firstItem="Yib-mA-6Ou" firstAttribute="top" secondItem="3il-XM-fqj" secondAttribute="bottom" constant="5" id="TeL-Vw-ZDm"/>
  104. <constraint firstItem="wbK-Jo-ZbH" firstAttribute="leading" secondItem="3il-XM-fqj" secondAttribute="trailing" constant="5" id="gE4-f5-Im6"/>
  105. <constraint firstItem="bIp-3Q-l9m" firstAttribute="leading" secondItem="wbK-Jo-ZbH" secondAttribute="trailing" constant="6" id="ort-Rw-FuH"/>
  106. <constraint firstAttribute="trailing" secondItem="bIp-3Q-l9m" secondAttribute="trailing" constant="10" id="rAH-2L-iRc"/>
  107. <constraint firstAttribute="trailing" secondItem="G9V-fH-gog" secondAttribute="trailing" id="sWA-Zo-Iyz"/>
  108. <constraint firstItem="bIp-3Q-l9m" firstAttribute="centerY" secondItem="wbK-Jo-ZbH" secondAttribute="centerY" id="yTm-Tw-5qJ"/>
  109. </constraints>
  110. </view>
  111. </subviews>
  112. </view>
  113. <viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
  114. <constraints>
  115. <constraint firstItem="ZgA-i1-RHm" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="NcT-mF-toU"/>
  116. <constraint firstAttribute="bottom" secondItem="ZgA-i1-RHm" secondAttribute="bottom" id="TwI-2v-j0t"/>
  117. <constraint firstItem="ZgA-i1-RHm" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="iHB-AW-C7d"/>
  118. <constraint firstAttribute="trailing" secondItem="ZgA-i1-RHm" secondAttribute="trailing" id="jjA-3j-GiE"/>
  119. </constraints>
  120. <size key="customSize" width="229" height="243"/>
  121. <userDefinedRuntimeAttributes>
  122. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  123. <real key="value" value="5"/>
  124. </userDefinedRuntimeAttribute>
  125. </userDefinedRuntimeAttributes>
  126. <connections>
  127. <outlet property="courseMessage" destination="Yib-mA-6Ou" id="hPM-ZS-6ZL"/>
  128. <outlet property="courseTitle" destination="yCS-l4-WAt" id="1Wb-8W-iHt"/>
  129. <outlet property="coverImage" destination="G9V-fH-gog" id="8HX-tu-M6Z"/>
  130. <outlet property="descLabel" destination="Spj-bd-Syo" id="nNb-i0-kTJ"/>
  131. <outlet property="descView" destination="bIp-3Q-l9m" id="dqb-bI-PbZ"/>
  132. <outlet property="teacherAvatar" destination="3il-XM-fqj" id="cCU-eN-inL"/>
  133. <outlet property="teacherName" destination="wbK-Jo-ZbH" id="hq7-Jt-Ikb"/>
  134. </connections>
  135. <point key="canvasLocation" x="260.86956521739131" y="22.433035714285712"/>
  136. </collectionViewCell>
  137. </objects>
  138. <resources>
  139. <image name="user_default_avatal" width="52" height="52"/>
  140. <image name="video_placeholder" width="168" height="111"/>
  141. <systemColor name="systemBackgroundColor">
  142. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  143. </systemColor>
  144. </resources>
  145. </document>