PDFSearchViewController.xib 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina4_7" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
  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. <objects>
  11. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PDFSearchViewController">
  12. <connections>
  13. <outlet property="findTextView" destination="kF0-uU-BDD" id="dS3-2r-xm5"/>
  14. <outlet property="indicator" destination="L2V-Ct-1Ei" id="o2E-Jk-24P"/>
  15. <outlet property="pageButton" destination="Qlc-aT-xmU" id="mIe-1l-eZ1"/>
  16. <outlet property="pageView" destination="PIh-qy-xnp" id="vWk-lX-rnd"/>
  17. <outlet property="searchBar" destination="sXz-8P-NP8" id="Cg0-I3-awA"/>
  18. <outlet property="searchButton" destination="cdF-st-CWz" id="pkY-kh-AfY"/>
  19. <outlet property="tableView" destination="cgp-9e-HHC" id="hXH-X9-xJb"/>
  20. <outlet property="textField" destination="0bM-dG-2C8" id="r1x-NT-PaL"/>
  21. <outlet property="titleView" destination="vl5-DV-N2W" id="fxO-wM-bdR"/>
  22. <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
  23. </connections>
  24. </placeholder>
  25. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  26. <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
  27. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  28. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  29. <subviews>
  30. <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="30" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="cgp-9e-HHC">
  31. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  32. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  33. <searchBar key="tableHeaderView" contentMode="redraw" id="sXz-8P-NP8">
  34. <rect key="frame" x="0.0" y="0.0" width="375" height="56"/>
  35. <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
  36. <textInputTraits key="textInputTraits"/>
  37. <connections>
  38. <outlet property="delegate" destination="-1" id="z1F-23-aui"/>
  39. </connections>
  40. </searchBar>
  41. <connections>
  42. <outlet property="dataSource" destination="-1" id="Kck-Be-73q"/>
  43. <outlet property="delegate" destination="-1" id="cDa-2d-SZ6"/>
  44. </connections>
  45. </tableView>
  46. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PIh-qy-xnp">
  47. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  48. <subviews>
  49. <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="0bM-dG-2C8">
  50. <rect key="frame" x="47.5" y="100" width="280" height="34"/>
  51. <constraints>
  52. <constraint firstAttribute="width" constant="280" id="pgi-QF-uNE"/>
  53. </constraints>
  54. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  55. <textInputTraits key="textInputTraits" keyboardType="numberPad" returnKeyType="go"/>
  56. <connections>
  57. <outlet property="delegate" destination="-1" id="wq9-ET-vKw"/>
  58. </connections>
  59. </textField>
  60. </subviews>
  61. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  62. <constraints>
  63. <constraint firstItem="0bM-dG-2C8" firstAttribute="top" secondItem="PIh-qy-xnp" secondAttribute="top" constant="100" id="Yh8-YG-rrj"/>
  64. <constraint firstItem="0bM-dG-2C8" firstAttribute="centerX" secondItem="PIh-qy-xnp" secondAttribute="centerX" id="adH-h6-Lza"/>
  65. </constraints>
  66. </view>
  67. </subviews>
  68. <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
  69. <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  70. <constraints>
  71. <constraint firstItem="cgp-9e-HHC" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="OzO-dC-fjY"/>
  72. <constraint firstItem="PIh-qy-xnp" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="WF0-x1-L5p"/>
  73. <constraint firstAttribute="bottom" secondItem="PIh-qy-xnp" secondAttribute="bottom" id="c1U-w5-11b"/>
  74. <constraint firstAttribute="trailing" secondItem="PIh-qy-xnp" secondAttribute="trailing" id="gCc-JG-LQd"/>
  75. <constraint firstItem="cgp-9e-HHC" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="iGq-c2-cHi"/>
  76. <constraint firstItem="PIh-qy-xnp" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="lfU-lZ-XZT"/>
  77. <constraint firstAttribute="trailing" secondItem="cgp-9e-HHC" secondAttribute="trailing" id="pY9-zk-EAi"/>
  78. <constraint firstAttribute="bottom" secondItem="cgp-9e-HHC" secondAttribute="bottom" id="vuY-Hs-1B4"/>
  79. </constraints>
  80. <point key="canvasLocation" x="25.5" y="50.5"/>
  81. </view>
  82. <view contentMode="scaleToFill" id="vl5-DV-N2W">
  83. <rect key="frame" x="0.0" y="0.0" width="105" height="44"/>
  84. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  85. <subviews>
  86. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cdF-st-CWz">
  87. <rect key="frame" x="0.0" y="0.0" width="30" height="44"/>
  88. <constraints>
  89. <constraint firstAttribute="height" constant="44" id="WPv-7R-bT3"/>
  90. </constraints>
  91. <state key="normal" title="Text"/>
  92. <connections>
  93. <action selector="buttonItemClicked_Text:" destination="-1" eventType="touchUpInside" id="qdK-z2-Vhv"/>
  94. </connections>
  95. </button>
  96. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Qlc-aT-xmU">
  97. <rect key="frame" x="70" y="0.0" width="35" height="44"/>
  98. <constraints>
  99. <constraint firstAttribute="height" constant="44" id="c99-1w-yp8"/>
  100. </constraints>
  101. <state key="normal" title="Page"/>
  102. <connections>
  103. <action selector="buttonItemClicked_Page:" destination="-1" eventType="touchUpInside" id="W6T-9Z-zFR"/>
  104. </connections>
  105. </button>
  106. <view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="L2V-Ct-1Ei">
  107. <rect key="frame" x="0.0" y="42" width="48" height="2"/>
  108. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  109. <color key="backgroundColor" red="0.0" green="0.47843137254901957" blue="1" alpha="1" colorSpace="calibratedRGB"/>
  110. </view>
  111. </subviews>
  112. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  113. <constraints>
  114. <constraint firstItem="cdF-st-CWz" firstAttribute="centerY" secondItem="vl5-DV-N2W" secondAttribute="centerY" id="3Rd-ii-Vnh"/>
  115. <constraint firstAttribute="trailing" secondItem="Qlc-aT-xmU" secondAttribute="trailing" id="9Rp-wj-7i9"/>
  116. <constraint firstItem="cdF-st-CWz" firstAttribute="leading" secondItem="vl5-DV-N2W" secondAttribute="leading" id="9qL-ah-0Er"/>
  117. <constraint firstItem="Qlc-aT-xmU" firstAttribute="leading" secondItem="cdF-st-CWz" secondAttribute="trailing" constant="40" id="TvK-Zg-omQ"/>
  118. <constraint firstItem="Qlc-aT-xmU" firstAttribute="centerY" secondItem="vl5-DV-N2W" secondAttribute="centerY" id="VPp-ip-nKY"/>
  119. <constraint firstAttribute="bottom" secondItem="cdF-st-CWz" secondAttribute="bottom" id="qam-XI-naL"/>
  120. <constraint firstItem="cdF-st-CWz" firstAttribute="top" secondItem="vl5-DV-N2W" secondAttribute="top" id="uZC-st-kxz"/>
  121. </constraints>
  122. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  123. <point key="canvasLocation" x="25.5" y="466"/>
  124. </view>
  125. <view contentMode="scaleToFill" id="kF0-uU-BDD" customClass="PDFFindTextView">
  126. <rect key="frame" x="0.0" y="0.0" width="165" height="40"/>
  127. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  128. <subviews>
  129. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pha-qF-Bh8">
  130. <rect key="frame" x="0.0" y="0.0" width="55" height="40"/>
  131. <constraints>
  132. <constraint firstAttribute="width" constant="55" id="HW9-G3-LPk"/>
  133. <constraint firstAttribute="height" constant="40" id="YZK-dR-jTP"/>
  134. </constraints>
  135. <state key="normal" image="text_search2.png"/>
  136. <connections>
  137. <action selector="buttonItemClicked_Previous:" destination="kF0-uU-BDD" eventType="touchUpInside" id="NHN-c0-AOV"/>
  138. </connections>
  139. </button>
  140. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Clq-7d-bdW">
  141. <rect key="frame" x="55" y="10" width="1" height="20"/>
  142. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  143. <constraints>
  144. <constraint firstAttribute="width" constant="1" id="8dB-FV-DYf"/>
  145. <constraint firstAttribute="height" constant="20" id="qDi-zm-UCh"/>
  146. </constraints>
  147. </view>
  148. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f5F-mQ-b6C">
  149. <rect key="frame" x="56" y="0.0" width="55" height="40"/>
  150. <constraints>
  151. <constraint firstAttribute="height" constant="40" id="R8t-qT-mtY"/>
  152. <constraint firstAttribute="width" constant="55" id="vrR-TJ-FHl"/>
  153. </constraints>
  154. <state key="normal" image="text_search1.png"/>
  155. <connections>
  156. <action selector="buttonItemClicked_Next:" destination="kF0-uU-BDD" eventType="touchUpInside" id="IA9-f7-JOD"/>
  157. </connections>
  158. </button>
  159. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aOh-Rt-tmv">
  160. <rect key="frame" x="111" y="10" width="1" height="20"/>
  161. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  162. <constraints>
  163. <constraint firstAttribute="height" constant="20" id="KB7-Tk-RLy"/>
  164. <constraint firstAttribute="width" constant="1" id="lKE-oe-etn"/>
  165. </constraints>
  166. </view>
  167. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RVo-F7-gpz">
  168. <rect key="frame" x="112" y="6.5" width="53" height="27"/>
  169. <constraints>
  170. <constraint firstAttribute="width" constant="53" id="awp-Vp-4yw"/>
  171. </constraints>
  172. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  173. <state key="normal" title="Done">
  174. <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  175. </state>
  176. <connections>
  177. <action selector="buttonItemClicked_Done:" destination="kF0-uU-BDD" eventType="touchUpInside" id="wEm-VO-AIr"/>
  178. </connections>
  179. </button>
  180. </subviews>
  181. <color key="backgroundColor" red="0.24313725490196078" green="0.61176470588235299" blue="0.99215686274509807" alpha="1" colorSpace="calibratedRGB"/>
  182. <constraints>
  183. <constraint firstItem="pha-qF-Bh8" firstAttribute="top" secondItem="kF0-uU-BDD" secondAttribute="top" id="6P6-bE-fUb"/>
  184. <constraint firstItem="pha-qF-Bh8" firstAttribute="leading" secondItem="kF0-uU-BDD" secondAttribute="leading" id="9N3-lY-FG1"/>
  185. <constraint firstItem="Clq-7d-bdW" firstAttribute="leading" secondItem="pha-qF-Bh8" secondAttribute="trailing" id="F6x-7y-ZQs"/>
  186. <constraint firstItem="Clq-7d-bdW" firstAttribute="centerY" secondItem="kF0-uU-BDD" secondAttribute="centerY" id="IsU-38-wFn"/>
  187. <constraint firstItem="aOh-Rt-tmv" firstAttribute="leading" secondItem="f5F-mQ-b6C" secondAttribute="trailing" id="J2B-n3-Sny"/>
  188. <constraint firstAttribute="trailing" secondItem="RVo-F7-gpz" secondAttribute="trailing" id="Jum-L4-WRx"/>
  189. <constraint firstAttribute="bottom" secondItem="pha-qF-Bh8" secondAttribute="bottom" id="LjV-wA-cNc"/>
  190. <constraint firstItem="aOh-Rt-tmv" firstAttribute="centerY" secondItem="kF0-uU-BDD" secondAttribute="centerY" id="Ywo-95-rRT"/>
  191. <constraint firstItem="f5F-mQ-b6C" firstAttribute="leading" secondItem="Clq-7d-bdW" secondAttribute="trailing" id="gpi-YP-uXT"/>
  192. <constraint firstItem="f5F-mQ-b6C" firstAttribute="centerY" secondItem="kF0-uU-BDD" secondAttribute="centerY" id="tfX-yg-J4a"/>
  193. <constraint firstItem="RVo-F7-gpz" firstAttribute="centerY" secondItem="kF0-uU-BDD" secondAttribute="centerY" id="wgi-40-0tW"/>
  194. </constraints>
  195. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  196. <point key="canvasLocation" x="25.5" y="615"/>
  197. </view>
  198. </objects>
  199. <resources>
  200. <image name="text_search1.png" width="45" height="40"/>
  201. <image name="text_search2.png" width="45" height="40"/>
  202. </resources>
  203. </document>