YYSearchView.xib 5.73 KB
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
    <device id="retina6_5" orientation="portrait">
        <adaptation id="fullscreen"/>
    </device>
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYSearchView">
            <rect key="frame" x="0.0" y="0.0" width="375" height="45"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" heightSizable="YES"/>
            <subviews>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B00-J0-E6d">
                    <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
                    <subviews>
                        <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="搜索" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="64n-dO-3yg">
                            <rect key="frame" x="8" y="5" width="312" height="35"/>
                            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                            <fontDescription key="fontDescription" type="system" pointSize="14"/>
                            <textInputTraits key="textInputTraits"/>
                        </textField>
                    </subviews>
                    <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
                    <constraints>
                        <constraint firstAttribute="bottom" secondItem="64n-dO-3yg" secondAttribute="bottom" constant="5" id="1uW-M5-NoS"/>
                        <constraint firstItem="64n-dO-3yg" firstAttribute="top" secondItem="B00-J0-E6d" secondAttribute="top" constant="5" id="FlZ-Gk-v8U"/>
                        <constraint firstAttribute="width" constant="375" id="HxI-H4-xUi"/>
                        <constraint firstItem="64n-dO-3yg" firstAttribute="leading" secondItem="B00-J0-E6d" secondAttribute="leading" constant="8" id="afA-zJ-ohc"/>
                        <constraint firstAttribute="height" constant="44" id="o3k-1G-iMW"/>
                    </constraints>
                </view>
                <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5p1-hy-o2t">
                    <rect key="frame" x="323" y="5" width="50" height="34"/>
                    <constraints>
                        <constraint firstAttribute="width" constant="50" id="Elo-pu-jVL"/>
                    </constraints>
                    <fontDescription key="fontDescription" type="system" pointSize="18"/>
                    <state key="normal" title="取消">
                        <color key="titleColor" red="0.12941176470588234" green="0.38823529411764707" blue="0.72156862745098038" alpha="1" colorSpace="calibratedRGB"/>
                    </state>
                    <connections>
                        <action selector="YYCancel:" destination="iN0-l3-epB" eventType="touchUpInside" id="8Hd-hZ-T5g"/>
                    </connections>
                </button>
            </subviews>
            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
            <constraints>
                <constraint firstAttribute="bottom" secondItem="B00-J0-E6d" secondAttribute="bottom" id="6TQ-dZ-4JT"/>
                <constraint firstItem="B00-J0-E6d" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="6Wc-U3-XFF"/>
                <constraint firstItem="B00-J0-E6d" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="DaE-cg-pi4"/>
                <constraint firstAttribute="trailing" secondItem="B00-J0-E6d" secondAttribute="trailing" id="aEM-Tb-10S"/>
                <constraint firstAttribute="trailing" secondItem="5p1-hy-o2t" secondAttribute="trailing" constant="16" id="bC0-ug-Cig"/>
                <constraint firstAttribute="bottom" secondItem="5p1-hy-o2t" secondAttribute="bottom" constant="5" id="e3N-Fe-Xxa"/>
                <constraint firstItem="5p1-hy-o2t" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="5" id="e5p-gp-NIW"/>
                <constraint firstItem="5p1-hy-o2t" firstAttribute="leading" secondItem="64n-dO-3yg" secondAttribute="trailing" constant="3" id="edv-FQ-xhj"/>
            </constraints>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <connections>
                <outlet property="YYBgView" destination="B00-J0-E6d" id="eZY-yM-Ms0"/>
                <outlet property="YYSearch" destination="64n-dO-3yg" id="fB8-c3-VtD"/>
                <outlet property="cancel" destination="5p1-hy-o2t" id="vKh-CD-pgk"/>
            </connections>
            <point key="canvasLocation" x="-89.130434782608702" y="-1.6741071428571428"/>
        </view>
    </objects>
</document>