SearchView.xib 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina6_12" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22130"/>
  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 clipsSubviews="YES" contentMode="scaleToFill" id="Mgf-Tm-lzt" customClass="SearchView" customModule="ADHTuanCan" customModuleProvider="target">
  13. <rect key="frame" x="0.0" y="0.0" width="631" height="193"/>
  14. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  15. <subviews>
  16. <view alpha="0.29999999999999999" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HmM-qW-0fg">
  17. <rect key="frame" x="0.0" y="0.0" width="631" height="193"/>
  18. <color key="backgroundColor" red="0.63137254899999995" green="0.66274509800000003" blue="0.78039215689999997" alpha="1" colorSpace="calibratedRGB"/>
  19. <userDefinedRuntimeAttributes>
  20. <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
  21. <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
  22. </userDefinedRuntimeAttribute>
  23. <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
  24. <real key="value" value="0.5"/>
  25. </userDefinedRuntimeAttribute>
  26. </userDefinedRuntimeAttributes>
  27. </view>
  28. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="new_search_gray" translatesAutoresizingMaskIntoConstraints="NO" id="IDN-Pe-xUJ">
  29. <rect key="frame" x="12" y="84.666666666666671" width="24" height="24"/>
  30. </imageView>
  31. <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="搜索你想吃的..." textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="MK7-I8-h9y">
  32. <rect key="frame" x="46" y="0.0" width="585" height="193"/>
  33. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  34. <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  35. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  36. <textInputTraits key="textInputTraits"/>
  37. </textField>
  38. </subviews>
  39. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  40. <constraints>
  41. <constraint firstItem="MK7-I8-h9y" firstAttribute="leading" secondItem="IDN-Pe-xUJ" secondAttribute="trailing" constant="10" id="Cdq-9s-wdh"/>
  42. <constraint firstItem="IDN-Pe-xUJ" firstAttribute="centerY" secondItem="Mgf-Tm-lzt" secondAttribute="centerY" id="JYS-us-hRV"/>
  43. <constraint firstAttribute="bottom" secondItem="HmM-qW-0fg" secondAttribute="bottom" id="PBK-TN-0QZ"/>
  44. <constraint firstItem="MK7-I8-h9y" firstAttribute="top" secondItem="Mgf-Tm-lzt" secondAttribute="top" id="S0l-qc-lR7"/>
  45. <constraint firstAttribute="trailing" secondItem="MK7-I8-h9y" secondAttribute="trailing" id="VHg-K8-ct4"/>
  46. <constraint firstAttribute="trailing" secondItem="HmM-qW-0fg" secondAttribute="trailing" id="YYr-uB-qvY"/>
  47. <constraint firstItem="IDN-Pe-xUJ" firstAttribute="leading" secondItem="Mgf-Tm-lzt" secondAttribute="leading" constant="12" id="d5I-rk-1pm"/>
  48. <constraint firstItem="HmM-qW-0fg" firstAttribute="leading" secondItem="Mgf-Tm-lzt" secondAttribute="leading" id="gJ2-UQ-nqa"/>
  49. <constraint firstAttribute="bottom" secondItem="MK7-I8-h9y" secondAttribute="bottom" id="iCe-r4-UKe"/>
  50. <constraint firstItem="HmM-qW-0fg" firstAttribute="top" secondItem="Mgf-Tm-lzt" secondAttribute="top" id="kB2-WN-6Tj"/>
  51. <constraint firstItem="IDN-Pe-xUJ" firstAttribute="centerY" secondItem="Mgf-Tm-lzt" secondAttribute="centerY" id="ttp-J4-Fca"/>
  52. </constraints>
  53. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  54. <userDefinedRuntimeAttributes>
  55. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  56. <real key="value" value="16"/>
  57. </userDefinedRuntimeAttribute>
  58. </userDefinedRuntimeAttributes>
  59. <connections>
  60. <outlet property="searchField" destination="MK7-I8-h9y" id="87x-Jm-vTP"/>
  61. </connections>
  62. <point key="canvasLocation" x="144.27480916030532" y="-205.28169014084509"/>
  63. </view>
  64. </objects>
  65. <resources>
  66. <image name="new_search_gray" width="24" height="24"/>
  67. </resources>
  68. </document>