HomeFoodItem.xib 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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="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"/>
  12. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  13. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="HomeFoodItem" customModule="ADHTuanCan" customModuleProvider="target">
  14. <rect key="frame" x="0.0" y="0.0" width="164" height="223"/>
  15. <autoresizingMask key="autoresizingMask"/>
  16. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  17. <rect key="frame" x="0.0" y="0.0" width="164" height="223"/>
  18. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  19. <subviews>
  20. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U2u-46-ylv">
  21. <rect key="frame" x="0.0" y="0.0" width="164" height="223"/>
  22. <subviews>
  23. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="海鲜套餐" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vbK-nw-OZ9">
  24. <rect key="frame" x="12.000000000000004" y="162.33333333333334" width="57.333333333333343" height="17"/>
  25. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
  26. <color key="textColor" red="0.10980392160000001" green="0.18823529410000001" blue="0.30980392159999998" alpha="1" colorSpace="calibratedRGB"/>
  27. <nil key="highlightedColor"/>
  28. </label>
  29. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="s$ 29.00" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="i1Z-vb-kIT">
  30. <rect key="frame" x="12" y="187.33333333333334" width="65.666666666666671" height="19.333333333333343"/>
  31. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
  32. <color key="textColor" red="0.77647058820000003" green="0.1333333333" blue="0.13725490200000001" alpha="1" colorSpace="calibratedRGB"/>
  33. <nil key="highlightedColor"/>
  34. </label>
  35. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bia-Xw-5r2">
  36. <rect key="frame" x="92" y="185" width="60" height="24"/>
  37. <color key="backgroundColor" red="0.77647058820000003" green="0.1333333333" blue="0.13725490200000001" alpha="1" colorSpace="calibratedRGB"/>
  38. <constraints>
  39. <constraint firstAttribute="height" constant="24" id="AaE-Ww-irG"/>
  40. <constraint firstAttribute="width" constant="60" id="Rqh-FO-ebV"/>
  41. </constraints>
  42. <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
  43. <inset key="contentEdgeInsets" minX="5" minY="0.0" maxX="5" maxY="0.0"/>
  44. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  45. <state key="normal" title="选规格"/>
  46. <userDefinedRuntimeAttributes>
  47. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  48. <real key="value" value="2"/>
  49. </userDefinedRuntimeAttribute>
  50. </userDefinedRuntimeAttributes>
  51. </button>
  52. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="分类菜品尺寸" translatesAutoresizingMaskIntoConstraints="NO" id="ijZ-6a-yaD">
  53. <rect key="frame" x="32" y="20" width="100" height="100"/>
  54. <constraints>
  55. <constraint firstAttribute="height" constant="100" id="UWY-X8-T3R"/>
  56. <constraint firstAttribute="width" constant="100" id="z9m-kW-O6a"/>
  57. </constraints>
  58. <userDefinedRuntimeAttributes>
  59. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  60. <real key="value" value="50"/>
  61. </userDefinedRuntimeAttribute>
  62. </userDefinedRuntimeAttributes>
  63. </imageView>
  64. </subviews>
  65. <color key="backgroundColor" red="0.98039215690000003" green="0.97254901959999995" blue="0.96862745100000003" alpha="1" colorSpace="calibratedRGB"/>
  66. <constraints>
  67. <constraint firstItem="bia-Xw-5r2" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="i1Z-vb-kIT" secondAttribute="trailing" constant="8" symbolic="YES" id="8Zv-wW-eEd"/>
  68. <constraint firstItem="i1Z-vb-kIT" firstAttribute="leading" secondItem="U2u-46-ylv" secondAttribute="leading" constant="12" id="9Md-KN-gJN"/>
  69. <constraint firstAttribute="bottom" secondItem="bia-Xw-5r2" secondAttribute="bottom" constant="14" id="AaM-AS-IpW"/>
  70. <constraint firstAttribute="trailing" secondItem="bia-Xw-5r2" secondAttribute="trailing" constant="12" id="CXh-y6-Ooj"/>
  71. <constraint firstItem="vbK-nw-OZ9" firstAttribute="leading" secondItem="U2u-46-ylv" secondAttribute="leading" constant="12" id="GQL-1g-ngz"/>
  72. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="vbK-nw-OZ9" secondAttribute="trailing" constant="20" symbolic="YES" id="StM-17-sSW"/>
  73. <constraint firstItem="i1Z-vb-kIT" firstAttribute="top" secondItem="vbK-nw-OZ9" secondAttribute="bottom" constant="8" id="T0s-0N-Cjr"/>
  74. <constraint firstItem="i1Z-vb-kIT" firstAttribute="centerY" secondItem="bia-Xw-5r2" secondAttribute="centerY" id="UaQ-ux-qEl"/>
  75. <constraint firstItem="ijZ-6a-yaD" firstAttribute="centerX" secondItem="U2u-46-ylv" secondAttribute="centerX" id="ruZ-ds-LRy"/>
  76. <constraint firstItem="ijZ-6a-yaD" firstAttribute="top" secondItem="U2u-46-ylv" secondAttribute="top" constant="20" id="uXa-Ar-MUC"/>
  77. </constraints>
  78. <userDefinedRuntimeAttributes>
  79. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  80. <real key="value" value="4"/>
  81. </userDefinedRuntimeAttribute>
  82. </userDefinedRuntimeAttributes>
  83. </view>
  84. </subviews>
  85. </view>
  86. <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
  87. <constraints>
  88. <constraint firstAttribute="bottom" secondItem="U2u-46-ylv" secondAttribute="bottom" id="ABf-zz-rP8"/>
  89. <constraint firstItem="U2u-46-ylv" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="HEp-Wi-b5j"/>
  90. <constraint firstItem="U2u-46-ylv" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="X7n-Za-c63"/>
  91. <constraint firstAttribute="trailing" secondItem="U2u-46-ylv" secondAttribute="trailing" id="YUu-yd-6ub"/>
  92. </constraints>
  93. <size key="customSize" width="164" height="223"/>
  94. <connections>
  95. <outlet property="foodImg" destination="ijZ-6a-yaD" id="eYB-yG-peE"/>
  96. <outlet property="nameLab" destination="vbK-nw-OZ9" id="rTc-Mg-jJI"/>
  97. <outlet property="priceLab" destination="i1Z-vb-kIT" id="vfj-fT-qf8"/>
  98. </connections>
  99. <point key="canvasLocation" x="158.77862595419847" y="81.338028169014095"/>
  100. </collectionViewCell>
  101. </objects>
  102. <resources>
  103. <image name="分类菜品尺寸" width="100" height="100"/>
  104. </resources>
  105. </document>