OOPersonCollectionViewCell.xib 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina4_7" orientation="portrait">
  4. <adaptation id="fullscreen"/>
  5. </device>
  6. <dependencies>
  7. <deployment identifier="iOS"/>
  8. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
  9. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  10. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  11. </dependencies>
  12. <objects>
  13. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  14. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  15. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="personItemCell" id="gTV-IL-0wX" customClass="OOPersonCollectionViewCell" customModule="O2Platform" customModuleProvider="target">
  16. <rect key="frame" x="0.0" y="0.0" width="60" height="60"/>
  17. <autoresizingMask key="autoresizingMask"/>
  18. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  19. <rect key="frame" x="0.0" y="0.0" width="60" height="60"/>
  20. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  21. <subviews>
  22. <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="personDefaultIcon" translatesAutoresizingMaskIntoConstraints="NO" id="Zhu-mD-3mn">
  23. <rect key="frame" x="15" y="6" width="30" height="30"/>
  24. <constraints>
  25. <constraint firstAttribute="height" constant="30" id="pu9-yC-S23"/>
  26. <constraint firstAttribute="width" constant="30" id="qS1-L6-OAs"/>
  27. </constraints>
  28. </imageView>
  29. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aDG-K3-eiH">
  30. <rect key="frame" x="0.0" y="40" width="60" height="19"/>
  31. <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
  32. <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  33. <nil key="highlightedColor"/>
  34. </label>
  35. </subviews>
  36. </view>
  37. <constraints>
  38. <constraint firstItem="aDG-K3-eiH" firstAttribute="top" secondItem="Zhu-mD-3mn" secondAttribute="bottom" constant="4" id="3R1-rI-MJG"/>
  39. <constraint firstAttribute="trailing" secondItem="aDG-K3-eiH" secondAttribute="trailing" id="4Sq-55-kjS"/>
  40. <constraint firstItem="Zhu-mD-3mn" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="6" id="CAj-II-k0b"/>
  41. <constraint firstItem="aDG-K3-eiH" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="auY-xM-nv7"/>
  42. <constraint firstItem="Zhu-mD-3mn" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="h3w-rM-JFj"/>
  43. <constraint firstAttribute="bottom" secondItem="aDG-K3-eiH" secondAttribute="bottom" constant="1" id="pOo-Pe-AUS"/>
  44. </constraints>
  45. <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
  46. <connections>
  47. <outlet property="iconImageView" destination="Zhu-mD-3mn" id="Tgr-Ab-KaI"/>
  48. <outlet property="nameLabel" destination="aDG-K3-eiH" id="LxM-i6-EpT"/>
  49. </connections>
  50. <point key="canvasLocation" x="-157" y="-318"/>
  51. </collectionViewCell>
  52. </objects>
  53. <resources>
  54. <image name="personDefaultIcon" width="24" height="24"/>
  55. </resources>
  56. </document>