NYBlockExerciseCell.xib 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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_12" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
  7. <capability name="System colors in document resources" minToolsVersion="11.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="NYBlockExerciseCell">
  14. <rect key="frame" x="0.0" y="0.0" width="180" height="74"/>
  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="180" height="74"/>
  18. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  19. <subviews>
  20. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mjo-bx-vQo">
  21. <rect key="frame" x="0.0" y="0.0" width="180" height="74"/>
  22. <subviews>
  23. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cAn-FT-txL" userLabel="View-cent">
  24. <rect key="frame" x="10" y="10" width="160" height="54"/>
  25. <subviews>
  26. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="试题一" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sOd-Nb-6TC">
  27. <rect key="frame" x="15" y="11" width="50" height="18"/>
  28. <constraints>
  29. <constraint firstAttribute="width" constant="50" id="Nze-M3-HSL"/>
  30. <constraint firstAttribute="height" constant="18" id="ldY-eO-eAX"/>
  31. </constraints>
  32. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  33. <color key="textColor" red="0.039215686274509803" green="0.10196078431372549" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
  34. <nil key="highlightedColor"/>
  35. </label>
  36. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="i32-Dc-hkj">
  37. <rect key="frame" x="101" y="11" width="44" height="20"/>
  38. <color key="backgroundColor" red="0.88235294117647056" green="0.90588235294117647" blue="0.94117647058823528" alpha="1" colorSpace="calibratedRGB"/>
  39. <constraints>
  40. <constraint firstAttribute="width" constant="44" id="baB-qm-qRe"/>
  41. <constraint firstAttribute="height" constant="20" id="bqB-QK-yS4"/>
  42. </constraints>
  43. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  44. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  45. <state key="normal" title="待处理">
  46. <color key="titleColor" red="0.54117647058823526" green="0.56470588235294117" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
  47. </state>
  48. <state key="selected" title="已完成">
  49. <color key="titleColor" red="0.28627450980392155" green="0.55686274509803924" blue="0.96078431372549022" alpha="1" colorSpace="calibratedRGB"/>
  50. </state>
  51. <userDefinedRuntimeAttributes>
  52. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  53. <integer key="value" value="2"/>
  54. </userDefinedRuntimeAttribute>
  55. </userDefinedRuntimeAttributes>
  56. </button>
  57. <progressView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="750" progress="0.20000000000000001" translatesAutoresizingMaskIntoConstraints="NO" id="VqC-SB-L8h">
  58. <rect key="frame" x="15" y="40" width="87" height="4"/>
  59. <constraints>
  60. <constraint firstAttribute="height" constant="4" id="iRl-bO-jlV"/>
  61. </constraints>
  62. </progressView>
  63. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="12V-xt-B0y">
  64. <rect key="frame" x="110" y="35" width="35" height="14"/>
  65. <constraints>
  66. <constraint firstAttribute="width" constant="35" id="OEW-Cj-3Zj"/>
  67. <constraint firstAttribute="height" constant="14" id="cx5-8a-0t3"/>
  68. </constraints>
  69. <fontDescription key="fontDescription" type="system" pointSize="11"/>
  70. <color key="textColor" red="0.54117647058823526" green="0.56470588235294117" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
  71. <nil key="highlightedColor"/>
  72. </label>
  73. </subviews>
  74. <color key="backgroundColor" red="0.96862745098039216" green="0.97254901960784312" blue="0.98039215686274506" alpha="1" colorSpace="calibratedRGB"/>
  75. <constraints>
  76. <constraint firstItem="VqC-SB-L8h" firstAttribute="centerY" secondItem="12V-xt-B0y" secondAttribute="centerY" id="3P0-jl-3YS"/>
  77. <constraint firstItem="VqC-SB-L8h" firstAttribute="leading" secondItem="cAn-FT-txL" secondAttribute="leading" constant="15" id="3V1-zm-MYp"/>
  78. <constraint firstItem="sOd-Nb-6TC" firstAttribute="top" secondItem="cAn-FT-txL" secondAttribute="top" constant="11" id="94v-GA-dcb"/>
  79. <constraint firstItem="12V-xt-B0y" firstAttribute="top" secondItem="i32-Dc-hkj" secondAttribute="bottom" constant="4" id="Qtl-NS-dlf"/>
  80. <constraint firstAttribute="trailing" secondItem="i32-Dc-hkj" secondAttribute="trailing" constant="15" id="W3U-UR-Zlu"/>
  81. <constraint firstItem="12V-xt-B0y" firstAttribute="leading" secondItem="VqC-SB-L8h" secondAttribute="trailing" constant="8" symbolic="YES" id="e4d-PO-c9o"/>
  82. <constraint firstItem="sOd-Nb-6TC" firstAttribute="leading" secondItem="cAn-FT-txL" secondAttribute="leading" constant="15" id="hx9-DY-cSq"/>
  83. <constraint firstItem="i32-Dc-hkj" firstAttribute="top" secondItem="cAn-FT-txL" secondAttribute="top" constant="11" id="k9i-s7-YeR"/>
  84. <constraint firstAttribute="trailing" secondItem="12V-xt-B0y" secondAttribute="trailing" constant="15" id="nG7-u4-KDN"/>
  85. </constraints>
  86. <userDefinedRuntimeAttributes>
  87. <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
  88. <integer key="value" value="5"/>
  89. </userDefinedRuntimeAttribute>
  90. </userDefinedRuntimeAttributes>
  91. </view>
  92. </subviews>
  93. <color key="backgroundColor" systemColor="systemBackgroundColor"/>
  94. <constraints>
  95. <constraint firstItem="cAn-FT-txL" firstAttribute="top" secondItem="mjo-bx-vQo" secondAttribute="top" constant="10" id="Am0-lb-Vq9"/>
  96. <constraint firstItem="cAn-FT-txL" firstAttribute="leading" secondItem="mjo-bx-vQo" secondAttribute="leading" constant="10" id="IRU-Yg-SwS"/>
  97. <constraint firstAttribute="bottom" secondItem="cAn-FT-txL" secondAttribute="bottom" constant="10" id="OgB-gs-Qwg"/>
  98. <constraint firstAttribute="trailing" secondItem="cAn-FT-txL" secondAttribute="trailing" constant="10" id="YnN-0m-XVD"/>
  99. </constraints>
  100. </view>
  101. </subviews>
  102. </view>
  103. <constraints>
  104. <constraint firstAttribute="bottom" secondItem="mjo-bx-vQo" secondAttribute="bottom" id="AN0-Rm-ofy"/>
  105. <constraint firstAttribute="trailing" secondItem="mjo-bx-vQo" secondAttribute="trailing" id="DfN-99-x4m"/>
  106. <constraint firstItem="mjo-bx-vQo" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="eS6-Er-5s6"/>
  107. <constraint firstItem="mjo-bx-vQo" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="xo1-kI-P0s"/>
  108. </constraints>
  109. <connections>
  110. <outlet property="leftStr_label" destination="sOd-Nb-6TC" id="fuS-SV-3YP"/>
  111. <outlet property="progress_label" destination="12V-xt-B0y" id="yc8-hH-cbX"/>
  112. <outlet property="progress_view" destination="VqC-SB-L8h" id="bgb-F6-k95"/>
  113. <outlet property="right_btn" destination="i32-Dc-hkj" id="VlL-c5-hFC"/>
  114. </connections>
  115. <point key="canvasLocation" x="51.908396946564885" y="-12.67605633802817"/>
  116. </collectionViewCell>
  117. </objects>
  118. <resources>
  119. <systemColor name="systemBackgroundColor">
  120. <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  121. </systemColor>
  122. </resources>
  123. </document>