CoursewareSearchView.xib 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
  3. <device id="retina6_0" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
  7. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  8. </dependencies>
  9. <objects>
  10. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  11. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  12. <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="CoursewareSearchView">
  13. <rect key="frame" x="0.0" y="0.0" width="390" height="54"/>
  14. <autoresizingMask key="autoresizingMask"/>
  15. <subviews>
  16. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8fk-7g-Rlv">
  17. <rect key="frame" x="14" y="10" width="362" height="34"/>
  18. <subviews>
  19. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="search_grey" translatesAutoresizingMaskIntoConstraints="NO" id="MGo-5I-11a">
  20. <rect key="frame" x="12" y="9" width="16" height="16"/>
  21. <constraints>
  22. <constraint firstAttribute="height" constant="16" id="3T2-Lb-sA8"/>
  23. <constraint firstAttribute="width" constant="16" id="YcJ-dY-UEa"/>
  24. </constraints>
  25. </imageView>
  26. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1q4-5G-Tus">
  27. <rect key="frame" x="36" y="10" width="0.6666666666666643" height="14"/>
  28. <color key="backgroundColor" red="0.84705882352941175" green="0.84705882352941175" blue="0.84705882352941175" alpha="1" colorSpace="calibratedRGB"/>
  29. <constraints>
  30. <constraint firstAttribute="width" constant="0.5" id="cUi-IM-z6h"/>
  31. <constraint firstAttribute="height" constant="14" id="zex-dr-Hja"/>
  32. </constraints>
  33. </view>
  34. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sj8-ME-2XI">
  35. <rect key="frame" x="309" y="5" width="48" height="24"/>
  36. <color key="backgroundColor" red="0.11764705882352941" green="0.80392156862745101" blue="0.67450980392156867" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  37. <constraints>
  38. <constraint firstAttribute="height" constant="24" id="K2g-l6-aYF"/>
  39. <constraint firstAttribute="width" constant="48" id="h4n-JL-z9g"/>
  40. </constraints>
  41. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  42. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  43. <state key="normal" title="搜索"/>
  44. <userDefinedRuntimeAttributes>
  45. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  46. <real key="value" value="12"/>
  47. </userDefinedRuntimeAttribute>
  48. </userDefinedRuntimeAttributes>
  49. <connections>
  50. <action selector="searchAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="Fnp-Sh-Q3P"/>
  51. </connections>
  52. </button>
  53. <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入课件名称" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="Tp5-WE-A9h">
  54. <rect key="frame" x="46.666666666666671" y="0.0" width="252.33333333333331" height="34"/>
  55. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  56. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  57. <textInputTraits key="textInputTraits" returnKeyType="done" enablesReturnKeyAutomatically="YES"/>
  58. </textField>
  59. </subviews>
  60. <color key="backgroundColor" red="0.97254901960784312" green="0.97254901960784312" blue="0.97254901960784312" alpha="1" colorSpace="calibratedRGB"/>
  61. <constraints>
  62. <constraint firstItem="Sj8-ME-2XI" firstAttribute="leading" secondItem="Tp5-WE-A9h" secondAttribute="trailing" constant="10" id="01l-1B-NmB"/>
  63. <constraint firstItem="Sj8-ME-2XI" firstAttribute="centerY" secondItem="8fk-7g-Rlv" secondAttribute="centerY" id="AuT-98-jTp"/>
  64. <constraint firstItem="MGo-5I-11a" firstAttribute="centerY" secondItem="8fk-7g-Rlv" secondAttribute="centerY" id="HaS-oi-Q9G"/>
  65. <constraint firstItem="Tp5-WE-A9h" firstAttribute="leading" secondItem="1q4-5G-Tus" secondAttribute="trailing" constant="10" id="a4d-qy-LFJ"/>
  66. <constraint firstItem="1q4-5G-Tus" firstAttribute="leading" secondItem="MGo-5I-11a" secondAttribute="trailing" constant="8" id="hSQ-we-slb"/>
  67. <constraint firstAttribute="height" constant="34" id="hyC-I9-GN9"/>
  68. <constraint firstItem="1q4-5G-Tus" firstAttribute="centerY" secondItem="MGo-5I-11a" secondAttribute="centerY" id="izu-NM-TVK"/>
  69. <constraint firstItem="MGo-5I-11a" firstAttribute="leading" secondItem="8fk-7g-Rlv" secondAttribute="leading" constant="12" id="sYH-k8-8sc"/>
  70. <constraint firstAttribute="trailing" secondItem="Sj8-ME-2XI" secondAttribute="trailing" constant="5" id="scG-bc-R6Z"/>
  71. <constraint firstItem="Tp5-WE-A9h" firstAttribute="centerY" secondItem="8fk-7g-Rlv" secondAttribute="centerY" id="vCz-JN-2oX"/>
  72. <constraint firstItem="Tp5-WE-A9h" firstAttribute="top" secondItem="8fk-7g-Rlv" secondAttribute="top" id="xc8-Ge-Rb2"/>
  73. </constraints>
  74. <userDefinedRuntimeAttributes>
  75. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  76. <real key="value" value="17"/>
  77. </userDefinedRuntimeAttribute>
  78. </userDefinedRuntimeAttributes>
  79. </view>
  80. </subviews>
  81. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  82. <constraints>
  83. <constraint firstItem="8fk-7g-Rlv" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="14" id="Ju5-0p-GAg"/>
  84. <constraint firstAttribute="trailing" secondItem="8fk-7g-Rlv" secondAttribute="trailing" constant="14" id="KMn-4o-Qqi"/>
  85. <constraint firstItem="8fk-7g-Rlv" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="PQh-aY-Pdz"/>
  86. </constraints>
  87. <nil key="simulatedTopBarMetrics"/>
  88. <nil key="simulatedBottomBarMetrics"/>
  89. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  90. <connections>
  91. <outlet property="textField" destination="Tp5-WE-A9h" id="DVm-sb-RrC"/>
  92. </connections>
  93. <point key="canvasLocation" x="158.46153846153845" y="-198.34123222748815"/>
  94. </view>
  95. </objects>
  96. <resources>
  97. <image name="search_grey" width="16" height="16"/>
  98. </resources>
  99. </document>