HomeNavView.xib 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
  3. <device id="retina6_1" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
  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 contentMode="scaleToFill" id="iN0-l3-epB" customClass="HomeNavView">
  13. <rect key="frame" x="0.0" y="0.0" width="414" height="110"/>
  14. <autoresizingMask key="autoresizingMask"/>
  15. <subviews>
  16. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vOh-9c-b3r">
  17. <rect key="frame" x="0.0" y="66" width="414" height="44"/>
  18. <subviews>
  19. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qSz-FE-UVP">
  20. <rect key="frame" x="360" y="0.0" width="44" height="44"/>
  21. <constraints>
  22. <constraint firstAttribute="height" constant="44" id="HjW-kK-ydS"/>
  23. <constraint firstAttribute="width" constant="44" id="bCd-Ui-00e"/>
  24. </constraints>
  25. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  26. <state key="normal" image="home_message"/>
  27. <connections>
  28. <action selector="navAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="2kT-N5-FZa"/>
  29. </connections>
  30. </button>
  31. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="t1J-uq-ROg">
  32. <rect key="frame" x="390" y="10" width="8" height="8"/>
  33. <subviews>
  34. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g4A-fh-p63">
  35. <rect key="frame" x="1" y="1" width="6" height="6"/>
  36. <color key="backgroundColor" red="0.97254901960784312" green="0.31372549019607843" blue="0.2627450980392157" alpha="1" colorSpace="calibratedRGB"/>
  37. <userDefinedRuntimeAttributes>
  38. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  39. <real key="value" value="3"/>
  40. </userDefinedRuntimeAttribute>
  41. </userDefinedRuntimeAttributes>
  42. </view>
  43. </subviews>
  44. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  45. <constraints>
  46. <constraint firstAttribute="width" constant="8" id="3sx-CM-JcA"/>
  47. <constraint firstItem="g4A-fh-p63" firstAttribute="leading" secondItem="t1J-uq-ROg" secondAttribute="leading" constant="1" id="VBX-fM-czg"/>
  48. <constraint firstItem="g4A-fh-p63" firstAttribute="top" secondItem="t1J-uq-ROg" secondAttribute="top" constant="1" id="fBv-6Z-Ybj"/>
  49. <constraint firstAttribute="bottom" secondItem="g4A-fh-p63" secondAttribute="bottom" constant="1" id="lGI-2F-0Fe"/>
  50. <constraint firstAttribute="trailing" secondItem="g4A-fh-p63" secondAttribute="trailing" constant="1" id="oCk-Dn-uBC"/>
  51. <constraint firstAttribute="height" constant="8" id="tef-yS-uM1"/>
  52. </constraints>
  53. <userDefinedRuntimeAttributes>
  54. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  55. <real key="value" value="4"/>
  56. </userDefinedRuntimeAttribute>
  57. </userDefinedRuntimeAttributes>
  58. </view>
  59. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="q6l-Iv-Tbq">
  60. <rect key="frame" x="311" y="0.0" width="44" height="44"/>
  61. <constraints>
  62. <constraint firstAttribute="height" constant="44" id="5RK-8c-0uc"/>
  63. <constraint firstAttribute="width" constant="44" id="UNi-JF-ydf"/>
  64. </constraints>
  65. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  66. <state key="normal" image="home_scan"/>
  67. <connections>
  68. <action selector="scanAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="Gqi-Yj-iGI"/>
  69. </connections>
  70. </button>
  71. <view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="iHm-QI-SCg">
  72. <rect key="frame" x="14" y="8" width="45" height="27"/>
  73. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  74. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  75. </view>
  76. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="游客" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xSC-vm-098">
  77. <rect key="frame" x="25" y="10" width="38.5" height="24"/>
  78. <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="20"/>
  79. <color key="textColor" red="0.1019607843" green="0.1019607843" blue="0.1019607843" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  80. <nil key="highlightedColor"/>
  81. </label>
  82. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="752" translatesAutoresizingMaskIntoConstraints="NO" id="030-NP-gEA">
  83. <rect key="frame" x="69.5" y="13" width="39" height="18"/>
  84. <constraints>
  85. <constraint firstAttribute="height" constant="18" id="8P2-Ec-bnf"/>
  86. <constraint firstAttribute="width" secondItem="030-NP-gEA" secondAttribute="height" multiplier="39:18" id="fcB-wh-8ad"/>
  87. </constraints>
  88. </imageView>
  89. </subviews>
  90. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  91. <constraints>
  92. <constraint firstItem="qSz-FE-UVP" firstAttribute="leading" secondItem="q6l-Iv-Tbq" secondAttribute="trailing" constant="5" id="38X-Iz-sbM"/>
  93. <constraint firstItem="030-NP-gEA" firstAttribute="centerY" secondItem="xSC-vm-098" secondAttribute="centerY" id="7kq-St-SzI"/>
  94. <constraint firstAttribute="trailing" secondItem="t1J-uq-ROg" secondAttribute="trailing" constant="16" id="81p-OQ-M7S"/>
  95. <constraint firstItem="q6l-Iv-Tbq" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="030-NP-gEA" secondAttribute="trailing" constant="10" id="FJ1-Sk-w0G"/>
  96. <constraint firstItem="t1J-uq-ROg" firstAttribute="top" secondItem="vOh-9c-b3r" secondAttribute="top" constant="10" id="FcH-GF-jbv"/>
  97. <constraint firstAttribute="trailing" secondItem="qSz-FE-UVP" secondAttribute="trailing" constant="10" id="Hpm-xn-doL"/>
  98. <constraint firstItem="qSz-FE-UVP" firstAttribute="centerY" secondItem="q6l-Iv-Tbq" secondAttribute="centerY" id="Tpt-zB-iEz"/>
  99. <constraint firstItem="030-NP-gEA" firstAttribute="leading" secondItem="xSC-vm-098" secondAttribute="trailing" constant="6" id="X56-N6-R6Q"/>
  100. <constraint firstAttribute="height" constant="44" id="cj7-26-Plu"/>
  101. <constraint firstItem="qSz-FE-UVP" firstAttribute="top" secondItem="vOh-9c-b3r" secondAttribute="top" id="dgb-Bb-S6e"/>
  102. <constraint firstItem="q6l-Iv-Tbq" firstAttribute="centerY" secondItem="xSC-vm-098" secondAttribute="centerY" id="haf-Ki-Dhr"/>
  103. <constraint firstItem="xSC-vm-098" firstAttribute="leading" secondItem="vOh-9c-b3r" secondAttribute="leading" constant="25" id="twJ-Hw-Msg"/>
  104. </constraints>
  105. </view>
  106. </subviews>
  107. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  108. <constraints>
  109. <constraint firstAttribute="bottom" secondItem="vOh-9c-b3r" secondAttribute="bottom" id="Bgb-BU-i0N"/>
  110. <constraint firstAttribute="trailing" secondItem="vOh-9c-b3r" secondAttribute="trailing" id="NcR-aG-WNX"/>
  111. <constraint firstItem="vOh-9c-b3r" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="vZH-oi-0Tt"/>
  112. </constraints>
  113. <nil key="simulatedTopBarMetrics"/>
  114. <nil key="simulatedBottomBarMetrics"/>
  115. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  116. <connections>
  117. <outlet property="dotView" destination="t1J-uq-ROg" id="p7q-S3-Sqq"/>
  118. <outlet property="nameLabel" destination="xSC-vm-098" id="zne-RH-aKq"/>
  119. <outlet property="viperImage" destination="030-NP-gEA" id="EbE-u1-D15"/>
  120. </connections>
  121. <point key="canvasLocation" x="350.72463768115944" y="-130.58035714285714"/>
  122. </view>
  123. </objects>
  124. <resources>
  125. <image name="home_message" width="24" height="24"/>
  126. <image name="home_scan" width="26" height="26"/>
  127. </resources>
  128. </document>