SetMealCollectionItem.xib 7.6 KB

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