UploadVideoViewController.xib 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina4_7" orientation="portrait">
  4. <adaptation id="fullscreen"/>
  5. </device>
  6. <dependencies>
  7. <deployment identifier="iOS"/>
  8. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
  9. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  10. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  11. </dependencies>
  12. <objects>
  13. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="UploadVideoViewController">
  14. <connections>
  15. <outlet property="coverBtn" destination="VX2-dq-LY2" id="Lcz-J7-A1k"/>
  16. <outlet property="coverImg" destination="gwn-uz-mb3" id="8EU-Ll-kiL"/>
  17. <outlet property="descText" destination="428-xi-hYF" id="B77-fE-RPA"/>
  18. <outlet property="playBtn" destination="Vf9-Sv-Kvm" id="5C9-xh-ugE"/>
  19. <outlet property="videoView" destination="25h-8w-VAE" id="JIJ-Ki-RzI"/>
  20. <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
  21. </connections>
  22. </placeholder>
  23. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  24. <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
  25. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  26. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  27. <subviews>
  28. <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bbH-5I-OCD">
  29. <rect key="frame" x="0.0" y="20" width="375" height="647"/>
  30. <subviews>
  31. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kZR-XD-Mqh">
  32. <rect key="frame" x="0.0" y="0.0" width="375" height="526.5"/>
  33. <subviews>
  34. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="上传视频,时长30秒之内" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3He-v3-Kti">
  35. <rect key="frame" x="20" y="15" width="160.5" height="17"/>
  36. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  37. <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  38. <nil key="highlightedColor"/>
  39. </label>
  40. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gfT-jx-WqX">
  41. <rect key="frame" x="289" y="9.5" width="66" height="28"/>
  42. <color key="backgroundColor" red="1" green="0.25098039220000001" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
  43. <constraints>
  44. <constraint firstAttribute="width" constant="66" id="W3O-Fc-a9t"/>
  45. <constraint firstAttribute="height" constant="28" id="nQC-7V-VfG"/>
  46. </constraints>
  47. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  48. <state key="normal" title="选择视频">
  49. <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  50. </state>
  51. <userDefinedRuntimeAttributes>
  52. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  53. <integer key="value" value="14"/>
  54. </userDefinedRuntimeAttribute>
  55. </userDefinedRuntimeAttributes>
  56. <connections>
  57. <action selector="chooseVideo:" destination="-1" eventType="touchUpInside" id="1Xl-4Q-MUv"/>
  58. </connections>
  59. </button>
  60. <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="25h-8w-VAE">
  61. <rect key="frame" x="20" y="47.5" width="335" height="335"/>
  62. <subviews>
  63. <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="gwn-uz-mb3">
  64. <rect key="frame" x="0.0" y="0.0" width="335" height="335"/>
  65. </imageView>
  66. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VX2-dq-LY2">
  67. <rect key="frame" x="259" y="297" width="66" height="28"/>
  68. <color key="backgroundColor" red="1" green="0.25098039220000001" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
  69. <constraints>
  70. <constraint firstAttribute="width" constant="66" id="sJM-cv-mGE"/>
  71. <constraint firstAttribute="height" constant="28" id="wTJ-zB-nI6"/>
  72. </constraints>
  73. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  74. <state key="normal" title="更换封面">
  75. <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  76. </state>
  77. <userDefinedRuntimeAttributes>
  78. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  79. <integer key="value" value="14"/>
  80. </userDefinedRuntimeAttribute>
  81. </userDefinedRuntimeAttributes>
  82. <connections>
  83. <action selector="chooseCover:" destination="-1" eventType="touchUpInside" id="Ap8-re-GaQ"/>
  84. </connections>
  85. </button>
  86. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Vf9-Sv-Kvm">
  87. <rect key="frame" x="142.5" y="142.5" width="50" height="50"/>
  88. <state key="normal" image="icon_bofang"/>
  89. <connections>
  90. <action selector="play:" destination="-1" eventType="touchUpInside" id="KTT-Ub-zyz"/>
  91. </connections>
  92. </button>
  93. </subviews>
  94. <color key="backgroundColor" red="0.67843137254901964" green="0.67843137254901964" blue="0.67843137254901964" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  95. <constraints>
  96. <constraint firstAttribute="bottom" secondItem="VX2-dq-LY2" secondAttribute="bottom" constant="10" id="3eO-po-kX6"/>
  97. <constraint firstItem="Vf9-Sv-Kvm" firstAttribute="centerY" secondItem="25h-8w-VAE" secondAttribute="centerY" id="4I3-Hy-uSc"/>
  98. <constraint firstAttribute="bottom" secondItem="gwn-uz-mb3" secondAttribute="bottom" id="8Ef-tO-V5N"/>
  99. <constraint firstAttribute="width" secondItem="25h-8w-VAE" secondAttribute="height" multiplier="1:1" id="8QK-57-wP5"/>
  100. <constraint firstItem="gwn-uz-mb3" firstAttribute="top" secondItem="25h-8w-VAE" secondAttribute="top" id="Psk-yy-CX1"/>
  101. <constraint firstItem="Vf9-Sv-Kvm" firstAttribute="centerX" secondItem="25h-8w-VAE" secondAttribute="centerX" id="Rms-kQ-2oH"/>
  102. <constraint firstAttribute="trailing" secondItem="gwn-uz-mb3" secondAttribute="trailing" id="tki-36-Ypd"/>
  103. <constraint firstAttribute="trailing" secondItem="VX2-dq-LY2" secondAttribute="trailing" constant="10" id="txt-s3-NvT"/>
  104. <constraint firstItem="gwn-uz-mb3" firstAttribute="leading" secondItem="25h-8w-VAE" secondAttribute="leading" id="wft-k3-1Hg"/>
  105. </constraints>
  106. <userDefinedRuntimeAttributes>
  107. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  108. <integer key="value" value="8"/>
  109. </userDefinedRuntimeAttribute>
  110. </userDefinedRuntimeAttributes>
  111. </view>
  112. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ka1-5H-MRl">
  113. <rect key="frame" x="20" y="402.5" width="335" height="60"/>
  114. <subviews>
  115. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="视频描述" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9PI-nj-uvQ">
  116. <rect key="frame" x="15" y="21.5" width="57.5" height="17"/>
  117. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
  118. <nil key="textColor"/>
  119. <nil key="highlightedColor"/>
  120. </label>
  121. <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="428-xi-hYF">
  122. <rect key="frame" x="92.5" y="21.5" width="222.5" height="17"/>
  123. <nil key="textColor"/>
  124. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  125. <textInputTraits key="textInputTraits"/>
  126. </textField>
  127. </subviews>
  128. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  129. <constraints>
  130. <constraint firstItem="428-xi-hYF" firstAttribute="leading" secondItem="9PI-nj-uvQ" secondAttribute="trailing" constant="20" id="AwK-2c-5Dx"/>
  131. <constraint firstItem="428-xi-hYF" firstAttribute="centerY" secondItem="Ka1-5H-MRl" secondAttribute="centerY" id="EzO-td-GkF"/>
  132. <constraint firstItem="9PI-nj-uvQ" firstAttribute="centerY" secondItem="Ka1-5H-MRl" secondAttribute="centerY" id="FoP-SU-4GU"/>
  133. <constraint firstAttribute="trailing" secondItem="428-xi-hYF" secondAttribute="trailing" constant="20" id="eca-Pm-3Im"/>
  134. <constraint firstAttribute="height" constant="60" id="qTJ-Kl-ZOW"/>
  135. <constraint firstItem="9PI-nj-uvQ" firstAttribute="leading" secondItem="Ka1-5H-MRl" secondAttribute="leading" constant="15" id="x8r-9p-4cr"/>
  136. </constraints>
  137. <userDefinedRuntimeAttributes>
  138. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  139. <integer key="value" value="8"/>
  140. </userDefinedRuntimeAttribute>
  141. </userDefinedRuntimeAttributes>
  142. </view>
  143. </subviews>
  144. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  145. <constraints>
  146. <constraint firstAttribute="trailing" secondItem="gfT-jx-WqX" secondAttribute="trailing" constant="20" id="0aR-0o-YAh"/>
  147. <constraint firstAttribute="trailing" secondItem="25h-8w-VAE" secondAttribute="trailing" constant="20" id="30G-IJ-wLE"/>
  148. <constraint firstItem="3He-v3-Kti" firstAttribute="leading" secondItem="kZR-XD-Mqh" secondAttribute="leading" constant="20" id="4oj-Nb-J45"/>
  149. <constraint firstAttribute="trailing" secondItem="Ka1-5H-MRl" secondAttribute="trailing" constant="20" id="B5w-VZ-o5Z"/>
  150. <constraint firstItem="gfT-jx-WqX" firstAttribute="centerY" secondItem="3He-v3-Kti" secondAttribute="centerY" id="Cu8-qi-dVg"/>
  151. <constraint firstItem="25h-8w-VAE" firstAttribute="top" secondItem="gfT-jx-WqX" secondAttribute="bottom" constant="10" id="GBL-4Y-l0y"/>
  152. <constraint firstItem="3He-v3-Kti" firstAttribute="top" secondItem="kZR-XD-Mqh" secondAttribute="top" constant="15" id="MeV-J8-Uqj"/>
  153. <constraint firstAttribute="bottom" secondItem="Ka1-5H-MRl" secondAttribute="bottom" constant="64" id="SJP-Yg-UWp"/>
  154. <constraint firstItem="Ka1-5H-MRl" firstAttribute="leading" secondItem="kZR-XD-Mqh" secondAttribute="leading" constant="20" id="jth-oR-z1n"/>
  155. <constraint firstItem="Ka1-5H-MRl" firstAttribute="top" secondItem="25h-8w-VAE" secondAttribute="bottom" constant="20" id="k3f-zb-ngl"/>
  156. <constraint firstItem="25h-8w-VAE" firstAttribute="leading" secondItem="kZR-XD-Mqh" secondAttribute="leading" constant="20" id="tjK-ZC-NEZ"/>
  157. </constraints>
  158. </view>
  159. </subviews>
  160. <constraints>
  161. <constraint firstAttribute="trailing" secondItem="kZR-XD-Mqh" secondAttribute="trailing" id="8UC-lO-RBr"/>
  162. <constraint firstItem="kZR-XD-Mqh" firstAttribute="top" secondItem="bbH-5I-OCD" secondAttribute="top" id="Htk-JG-hAr"/>
  163. <constraint firstItem="kZR-XD-Mqh" firstAttribute="leading" secondItem="bbH-5I-OCD" secondAttribute="leading" id="Pq2-TC-u23"/>
  164. <constraint firstAttribute="bottom" secondItem="kZR-XD-Mqh" secondAttribute="bottom" id="u6j-sX-IXn"/>
  165. </constraints>
  166. </scrollView>
  167. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E0a-5b-KfF">
  168. <rect key="frame" x="20" y="613" width="335" height="44"/>
  169. <color key="backgroundColor" red="1" green="0.25098039220000001" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
  170. <constraints>
  171. <constraint firstAttribute="height" constant="44" id="YJz-Xl-9YW"/>
  172. </constraints>
  173. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
  174. <state key="normal" title="确认报名">
  175. <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  176. </state>
  177. <userDefinedRuntimeAttributes>
  178. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  179. <integer key="value" value="22"/>
  180. </userDefinedRuntimeAttribute>
  181. </userDefinedRuntimeAttributes>
  182. <connections>
  183. <action selector="confirm:" destination="-1" eventType="touchUpInside" id="WRD-PX-g66"/>
  184. </connections>
  185. </button>
  186. </subviews>
  187. <color key="backgroundColor" red="0.94901960784313721" green="0.95686274509803915" blue="0.96078431372549022" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  188. <constraints>
  189. <constraint firstItem="kZR-XD-Mqh" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" id="3QG-WA-LjW"/>
  190. <constraint firstItem="bbH-5I-OCD" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="AuB-AS-Eus"/>
  191. <constraint firstItem="bbH-5I-OCD" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="BSs-xv-4ii"/>
  192. <constraint firstItem="bbH-5I-OCD" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" id="CCT-DM-L5b"/>
  193. <constraint firstItem="Q5M-cg-NOt" firstAttribute="bottom" secondItem="E0a-5b-KfF" secondAttribute="bottom" constant="10" id="Fbh-D7-4V5"/>
  194. <constraint firstItem="bbH-5I-OCD" firstAttribute="bottom" secondItem="Q5M-cg-NOt" secondAttribute="bottom" id="Kpl-7e-ZUR"/>
  195. <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="E0a-5b-KfF" secondAttribute="trailing" constant="20" id="Mht-Km-wqC"/>
  196. <constraint firstItem="kZR-XD-Mqh" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" priority="250" id="khE-wI-t76"/>
  197. <constraint firstItem="E0a-5b-KfF" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="20" id="uWI-ML-2MT"/>
  198. </constraints>
  199. <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
  200. <point key="canvasLocation" x="132" y="154.27286356821591"/>
  201. </view>
  202. </objects>
  203. <resources>
  204. <image name="icon_bofang" width="50" height="50"/>
  205. </resources>
  206. </document>