HWSearchBar.xib 6.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina4_0" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
  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. <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="HWSearchBar">
  15. <rect key="frame" x="0.0" y="0.0" width="414" height="64"/>
  16. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  17. <subviews>
  18. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="x66-5e-kve">
  19. <rect key="frame" x="10" y="21" width="394" height="34"/>
  20. <subviews>
  21. <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="plS-K9-9GY">
  22. <rect key="frame" x="6" y="0.0" width="382" height="34"/>
  23. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  24. <textInputTraits key="textInputTraits"/>
  25. </textField>
  26. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="搜索或输入网址" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5K0-Lz-tlC">
  27. <rect key="frame" x="139.5" y="7" width="115" height="20"/>
  28. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  29. <color key="textColor" red="0.73333333333333328" green="0.73333333333333328" blue="0.73333333333333328" alpha="1" colorSpace="calibratedRGB"/>
  30. <nil key="highlightedColor"/>
  31. </label>
  32. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sousuo_icon" translatesAutoresizingMaskIntoConstraints="NO" id="FIY-gp-AKF">
  33. <rect key="frame" x="119.5" y="9.5" width="15" height="15"/>
  34. <constraints>
  35. <constraint firstAttribute="height" constant="15" id="5ob-Cz-5a2"/>
  36. <constraint firstAttribute="width" constant="15" id="WYe-jp-kXV"/>
  37. </constraints>
  38. </imageView>
  39. </subviews>
  40. <color key="backgroundColor" red="0.80000000000000004" green="0.80392156862745101" blue="0.83137254901960778" alpha="1" colorSpace="calibratedRGB"/>
  41. <constraints>
  42. <constraint firstItem="5K0-Lz-tlC" firstAttribute="centerY" secondItem="x66-5e-kve" secondAttribute="centerY" id="6vR-u9-rsI"/>
  43. <constraint firstAttribute="trailing" secondItem="plS-K9-9GY" secondAttribute="trailing" constant="6" id="8DM-dz-qqK"/>
  44. <constraint firstItem="plS-K9-9GY" firstAttribute="top" secondItem="x66-5e-kve" secondAttribute="top" id="QbG-Ro-0ax"/>
  45. <constraint firstAttribute="height" constant="34" id="RMj-nK-cgn"/>
  46. <constraint firstItem="plS-K9-9GY" firstAttribute="leading" secondItem="x66-5e-kve" secondAttribute="leading" constant="6" id="bg6-gy-wL1"/>
  47. <constraint firstItem="5K0-Lz-tlC" firstAttribute="leading" secondItem="FIY-gp-AKF" secondAttribute="trailing" constant="5" id="eBp-Gz-1to"/>
  48. <constraint firstAttribute="bottom" secondItem="plS-K9-9GY" secondAttribute="bottom" id="kH4-dn-TfP"/>
  49. <constraint firstItem="5K0-Lz-tlC" firstAttribute="centerX" secondItem="x66-5e-kve" secondAttribute="centerX" id="ssd-JP-Ind"/>
  50. <constraint firstItem="FIY-gp-AKF" firstAttribute="centerY" secondItem="5K0-Lz-tlC" secondAttribute="centerY" id="xZf-Fq-ufW"/>
  51. </constraints>
  52. </view>
  53. </subviews>
  54. <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
  55. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  56. <constraints>
  57. <constraint firstItem="x66-5e-kve" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="10" id="FGA-D0-s4O"/>
  58. <constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="x66-5e-kve" secondAttribute="trailing" constant="10" id="HFL-wI-1Jx"/>
  59. <constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="x66-5e-kve" secondAttribute="bottom" constant="9" id="PHD-Oa-f1G"/>
  60. </constraints>
  61. <nil key="simulatedTopBarMetrics"/>
  62. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  63. <connections>
  64. <outlet property="bgView" destination="x66-5e-kve" id="ZgC-K1-Bqj"/>
  65. <outlet property="searchImageView" destination="FIY-gp-AKF" id="4Yg-Ly-DLY"/>
  66. <outlet property="searchPlaceHolder" destination="5K0-Lz-tlC" id="wph-RP-Tup"/>
  67. <outlet property="textField" destination="plS-K9-9GY" id="2WR-BU-HXH"/>
  68. </connections>
  69. <point key="canvasLocation" x="138.75" y="141.5492957746479"/>
  70. </view>
  71. </objects>
  72. <resources>
  73. <image name="sousuo_icon" width="15" height="14"/>
  74. <systemColor name="systemBackgroundColor">
  75. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  76. </systemColor>
  77. </resources>
  78. </document>