SetMealCollectionItem.xib 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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="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. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="SetMealCollectionItem" customModule="ADHTuanCan" customModuleProvider="target">
  15. <rect key="frame" x="0.0" y="0.0" width="100" height="117"/>
  16. <autoresizingMask key="autoresizingMask"/>
  17. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  18. <rect key="frame" x="0.0" y="0.0" width="100" height="117"/>
  19. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  20. <subviews>
  21. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NlV-vI-ng7">
  22. <rect key="frame" x="0.0" y="0.0" width="100" height="117"/>
  23. <subviews>
  24. <imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="右下角选中" translatesAutoresizingMaskIntoConstraints="NO" id="CWj-b9-SSh">
  25. <rect key="frame" x="76" y="93" width="24" height="24"/>
  26. <constraints>
  27. <constraint firstAttribute="width" constant="24" id="WYu-d5-bJ5"/>
  28. <constraint firstAttribute="height" constant="24" id="s9d-Kk-7ML"/>
  29. </constraints>
  30. </imageView>
  31. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="烤面包" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IrJ-P7-rSe">
  32. <rect key="frame" x="30" y="85" width="40" height="32"/>
  33. <fontDescription key="fontDescription" type="system" pointSize="13"/>
  34. <color key="textColor" red="0.10980392160000001" green="0.18823529410000001" blue="0.30980392159999998" alpha="1" colorSpace="calibratedRGB"/>
  35. <nil key="highlightedColor"/>
  36. </label>
  37. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="分类菜品尺寸" translatesAutoresizingMaskIntoConstraints="NO" id="zJK-0e-48L">
  38. <rect key="frame" x="13" y="8" width="74" height="74"/>
  39. <constraints>
  40. <constraint firstAttribute="height" constant="74" id="6CA-i8-G82"/>
  41. <constraint firstAttribute="width" constant="74" id="vVW-hQ-WWg"/>
  42. </constraints>
  43. <userDefinedRuntimeAttributes>
  44. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  45. <real key="value" value="37"/>
  46. </userDefinedRuntimeAttribute>
  47. </userDefinedRuntimeAttributes>
  48. </imageView>
  49. </subviews>
  50. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  51. <constraints>
  52. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="IrJ-P7-rSe" secondAttribute="trailing" constant="5" id="0iB-gI-z3n"/>
  53. <constraint firstItem="IrJ-P7-rSe" firstAttribute="centerX" secondItem="NlV-vI-ng7" secondAttribute="centerX" id="7Nj-7v-g8z"/>
  54. <constraint firstItem="IrJ-P7-rSe" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="NlV-vI-ng7" secondAttribute="leading" constant="1" id="CZr-aJ-xOi"/>
  55. <constraint firstItem="zJK-0e-48L" firstAttribute="top" secondItem="NlV-vI-ng7" secondAttribute="top" constant="8" id="U2z-QO-5nE"/>
  56. <constraint firstAttribute="bottom" secondItem="IrJ-P7-rSe" secondAttribute="bottom" id="ZBK-l8-VSA"/>
  57. <constraint firstItem="zJK-0e-48L" firstAttribute="centerX" secondItem="NlV-vI-ng7" secondAttribute="centerX" id="l5T-B4-LGu"/>
  58. <constraint firstAttribute="bottom" secondItem="CWj-b9-SSh" secondAttribute="bottom" id="n6S-dq-rOE"/>
  59. <constraint firstAttribute="trailing" secondItem="CWj-b9-SSh" secondAttribute="trailing" id="uIQ-yA-j40"/>
  60. <constraint firstItem="IrJ-P7-rSe" firstAttribute="top" secondItem="zJK-0e-48L" secondAttribute="bottom" constant="3" id="ufe-Jm-yi5"/>
  61. </constraints>
  62. </view>
  63. </subviews>
  64. </view>
  65. <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
  66. <constraints>
  67. <constraint firstItem="NlV-vI-ng7" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="DkX-3w-Cbs"/>
  68. <constraint firstAttribute="trailing" secondItem="NlV-vI-ng7" secondAttribute="trailing" id="Gzv-Dr-S8S"/>
  69. <constraint firstItem="NlV-vI-ng7" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="MHZ-QB-fpu"/>
  70. <constraint firstAttribute="bottom" secondItem="NlV-vI-ng7" secondAttribute="bottom" id="gGu-dj-fYS"/>
  71. </constraints>
  72. <size key="customSize" width="100" height="117"/>
  73. <userDefinedRuntimeAttributes>
  74. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  75. <real key="value" value="6"/>
  76. </userDefinedRuntimeAttribute>
  77. </userDefinedRuntimeAttributes>
  78. <connections>
  79. <outlet property="foodImg" destination="zJK-0e-48L" id="pUG-hM-sV6"/>
  80. <outlet property="nameLab" destination="IrJ-P7-rSe" id="FT2-Qk-VOB"/>
  81. <outlet property="selectImg" destination="CWj-b9-SSh" id="NRh-6S-cgk"/>
  82. </connections>
  83. <point key="canvasLocation" x="218.32061068702288" y="23.591549295774648"/>
  84. </collectionViewCell>
  85. </objects>
  86. <resources>
  87. <image name="分类菜品尺寸" width="100" height="100"/>
  88. <image name="右下角选中" width="24" height="24"/>
  89. <systemColor name="systemBackgroundColor">
  90. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  91. </systemColor>
  92. </resources>
  93. </document>