BogoSearchViewController.xib 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina5_5" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
  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" customClass="BogoSearchViewController">
  13. <connections>
  14. <outlet property="historyCollectionView" destination="lP1-wb-Mdr" id="kAk-kj-7Ib"/>
  15. <outlet property="historyView" destination="BlR-9v-cyq" id="AM5-RP-EPG"/>
  16. <outlet property="resultView" destination="9pw-cz-EMf" id="Ya7-XU-WXy"/>
  17. <outlet property="textField" destination="9ck-5Y-oWT" id="IwK-0S-IGg"/>
  18. <outlet property="view" destination="cYp-oP-Pon" id="HXD-zE-zzL"/>
  19. </connections>
  20. </placeholder>
  21. <view contentMode="scaleToFill" id="cYp-oP-Pon">
  22. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  23. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  24. <subviews>
  25. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wVc-D2-7is">
  26. <rect key="frame" x="0.0" y="0.0" width="44" height="44"/>
  27. <constraints>
  28. <constraint firstAttribute="width" constant="44" id="8O9-UT-BsI"/>
  29. <constraint firstAttribute="height" constant="44" id="Wfd-Jc-mly"/>
  30. </constraints>
  31. <state key="normal" title="Button"/>
  32. <buttonConfiguration key="configuration" style="plain" image="com_arrow_vc_back" title=" "/>
  33. <connections>
  34. <action selector="backBtnAction:" destination="-1" eventType="touchUpInside" id="Bcy-lC-agi"/>
  35. </connections>
  36. </button>
  37. <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入搜索内容" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="9ck-5Y-oWT" customClass="QMUITextField">
  38. <rect key="frame" x="44" y="6" width="360" height="32"/>
  39. <color key="backgroundColor" red="0.95686274509803915" green="0.96078431372549022" blue="0.97647058823529409" alpha="1" colorSpace="calibratedRGB"/>
  40. <constraints>
  41. <constraint firstAttribute="height" constant="32" id="HiW-Ph-nPG"/>
  42. </constraints>
  43. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  44. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  45. <textInputTraits key="textInputTraits" returnKeyType="search"/>
  46. <userDefinedRuntimeAttributes>
  47. <userDefinedRuntimeAttribute type="color" keyPath="placeholderColor">
  48. <color key="value" red="0.66666666666666663" green="0.66666666666666663" blue="0.66666666666666663" alpha="1" colorSpace="calibratedRGB"/>
  49. </userDefinedRuntimeAttribute>
  50. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  51. <integer key="value" value="16"/>
  52. </userDefinedRuntimeAttribute>
  53. </userDefinedRuntimeAttributes>
  54. </textField>
  55. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BlR-9v-cyq">
  56. <rect key="frame" x="0.0" y="38" width="414" height="698"/>
  57. <subviews>
  58. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="搜索历史" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9QN-bM-NO1">
  59. <rect key="frame" x="10" y="20" width="66" height="20"/>
  60. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
  61. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  62. <nil key="highlightedColor"/>
  63. </label>
  64. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4AX-Li-VZe">
  65. <rect key="frame" x="374" y="10" width="40" height="40"/>
  66. <constraints>
  67. <constraint firstAttribute="width" constant="40" id="EY6-Ny-6C0"/>
  68. <constraint firstAttribute="height" constant="40" id="x6X-be-3Vz"/>
  69. </constraints>
  70. <state key="normal" title="Button"/>
  71. <buttonConfiguration key="configuration" style="plain" image="删 除" title=" "/>
  72. <connections>
  73. <action selector="clearBtnAction:" destination="-1" eventType="touchUpInside" id="9Jm-nI-Orb"/>
  74. </connections>
  75. </button>
  76. <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="lP1-wb-Mdr">
  77. <rect key="frame" x="0.0" y="40" width="414" height="658"/>
  78. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  79. <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="Krx-ui-bhE">
  80. <size key="itemSize" width="128" height="128"/>
  81. <size key="headerReferenceSize" width="0.0" height="0.0"/>
  82. <size key="footerReferenceSize" width="0.0" height="0.0"/>
  83. <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
  84. </collectionViewFlowLayout>
  85. </collectionView>
  86. </subviews>
  87. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  88. <constraints>
  89. <constraint firstAttribute="trailing" secondItem="lP1-wb-Mdr" secondAttribute="trailing" id="FxO-Rv-hgK"/>
  90. <constraint firstItem="lP1-wb-Mdr" firstAttribute="leading" secondItem="BlR-9v-cyq" secondAttribute="leading" id="Mae-F4-Z9d"/>
  91. <constraint firstItem="9QN-bM-NO1" firstAttribute="leading" secondItem="BlR-9v-cyq" secondAttribute="leading" constant="10" id="P7J-bQ-62p"/>
  92. <constraint firstItem="4AX-Li-VZe" firstAttribute="centerY" secondItem="9QN-bM-NO1" secondAttribute="centerY" id="WW4-8O-iqA"/>
  93. <constraint firstItem="lP1-wb-Mdr" firstAttribute="top" secondItem="9QN-bM-NO1" secondAttribute="bottom" id="bLv-X4-odD"/>
  94. <constraint firstAttribute="trailing" secondItem="4AX-Li-VZe" secondAttribute="trailing" id="kPz-Ys-eEK"/>
  95. <constraint firstAttribute="bottom" secondItem="lP1-wb-Mdr" secondAttribute="bottom" id="qyv-cy-uAi"/>
  96. <constraint firstItem="9QN-bM-NO1" firstAttribute="top" secondItem="BlR-9v-cyq" secondAttribute="top" constant="20" id="zO6-ZC-lJ4"/>
  97. </constraints>
  98. </view>
  99. <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9pw-cz-EMf">
  100. <rect key="frame" x="0.0" y="44" width="414" height="692"/>
  101. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  102. </view>
  103. </subviews>
  104. <viewLayoutGuide key="safeArea" id="5iz-cf-FGL"/>
  105. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  106. <constraints>
  107. <constraint firstItem="9ck-5Y-oWT" firstAttribute="leading" secondItem="wVc-D2-7is" secondAttribute="trailing" id="Asz-jy-Jlz"/>
  108. <constraint firstItem="BlR-9v-cyq" firstAttribute="leading" secondItem="5iz-cf-FGL" secondAttribute="leading" id="GFh-wh-2OO"/>
  109. <constraint firstItem="9pw-cz-EMf" firstAttribute="bottom" secondItem="cYp-oP-Pon" secondAttribute="bottom" id="TXp-1B-gcM"/>
  110. <constraint firstItem="5iz-cf-FGL" firstAttribute="bottom" secondItem="BlR-9v-cyq" secondAttribute="bottom" id="XoP-Fl-vNc"/>
  111. <constraint firstItem="5iz-cf-FGL" firstAttribute="trailing" secondItem="9ck-5Y-oWT" secondAttribute="trailing" constant="10" id="ZGB-eS-QKw"/>
  112. <constraint firstItem="5iz-cf-FGL" firstAttribute="trailing" secondItem="BlR-9v-cyq" secondAttribute="trailing" id="gbJ-2f-7kH"/>
  113. <constraint firstItem="wVc-D2-7is" firstAttribute="leading" secondItem="5iz-cf-FGL" secondAttribute="leading" id="gbq-hM-Zhx"/>
  114. <constraint firstItem="9pw-cz-EMf" firstAttribute="trailing" secondItem="BlR-9v-cyq" secondAttribute="trailing" id="hAv-c3-V1V"/>
  115. <constraint firstItem="9pw-cz-EMf" firstAttribute="leading" secondItem="BlR-9v-cyq" secondAttribute="leading" id="l1z-AA-VzC"/>
  116. <constraint firstItem="9ck-5Y-oWT" firstAttribute="centerY" secondItem="wVc-D2-7is" secondAttribute="centerY" id="qp3-jJ-Nat"/>
  117. <constraint firstItem="wVc-D2-7is" firstAttribute="top" secondItem="5iz-cf-FGL" secondAttribute="top" id="ver-gu-dlX"/>
  118. <constraint firstItem="BlR-9v-cyq" firstAttribute="top" secondItem="9ck-5Y-oWT" secondAttribute="bottom" id="wCC-mN-aSy"/>
  119. <constraint firstItem="9pw-cz-EMf" firstAttribute="top" secondItem="BlR-9v-cyq" secondAttribute="top" constant="6" id="wDu-Oh-Opt"/>
  120. </constraints>
  121. <point key="canvasLocation" x="-200" y="471"/>
  122. </view>
  123. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  124. </objects>
  125. <resources>
  126. <image name="com_arrow_vc_back" width="11.666666984558105" height="22"/>
  127. <image name="删 除" width="18" height="20"/>
  128. <systemColor name="systemBackgroundColor">
  129. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  130. </systemColor>
  131. </resources>
  132. </document>