THDatePickerViewController.xib 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="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="14283.14"/>
  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" customClass="THDatePickerViewController">
  13. <connections>
  14. <outlet property="calendarDaysView" destination="49" id="50"/>
  15. <outlet property="clearBtn" destination="7" id="66"/>
  16. <outlet property="closeBtn" destination="6" id="65"/>
  17. <outlet property="monthLabel" destination="12" id="51"/>
  18. <outlet property="nextMonthBtn" destination="7Cu-FS-eEE" id="aSI-OW-kKl"/>
  19. <outlet property="nextYearBtn" destination="11" id="65Z-3M-xNL"/>
  20. <outlet property="okBtn" destination="8" id="67"/>
  21. <outlet property="prevMonthBtn" destination="FBs-ue-0FL" id="r1e-o5-dpK"/>
  22. <outlet property="prevYearBtn" destination="9" id="eap-a6-4dN"/>
  23. <outlet property="titleLabel" destination="wv9-lp-lWG" id="6HO-dW-hLB"/>
  24. <outlet property="toolbarBackgroundView" destination="g6a-bo-Ej7" id="qL0-W5-WAM"/>
  25. <outlet property="view" destination="5" id="48"/>
  26. <outlet property="weekdaysView" destination="68" id="69"/>
  27. </connections>
  28. </placeholder>
  29. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  30. <view autoresizesSubviews="NO" contentMode="scaleToFill" id="5">
  31. <rect key="frame" x="0.0" y="0.0" width="320" height="320"/>
  32. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  33. <subviews>
  34. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jpp-kp-HO9" userLabel="BottomView">
  35. <rect key="frame" x="0.0" y="0.0" width="320" height="320"/>
  36. <subviews>
  37. <view alpha="0.29999999999999999" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g6a-bo-Ej7">
  38. <rect key="frame" x="0.0" y="0.0" width="320" height="40"/>
  39. <color key="backgroundColor" red="0.66666668653488159" green="0.66666668653488159" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  40. <constraints>
  41. <constraint firstAttribute="height" constant="40" id="oz9-qC-l6D"/>
  42. </constraints>
  43. </view>
  44. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="s0u-MY-tL4" userLabel="ControlView">
  45. <rect key="frame" x="0.0" y="0.0" width="320" height="320"/>
  46. <subviews>
  47. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6">
  48. <rect key="frame" x="0.0" y="3" width="50" height="36"/>
  49. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  50. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  51. <state key="normal" title="取消">
  52. <color key="titleColor" red="0.13725490200000001" green="0.62745098040000002" blue="0.89019607840000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  53. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  54. </state>
  55. <state key="highlighted">
  56. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  57. </state>
  58. <connections>
  59. <action selector="closePressed:" destination="-1" eventType="touchUpInside" id="60"/>
  60. </connections>
  61. </button>
  62. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9">
  63. <rect key="frame" x="0.0" y="42" width="37" height="37"/>
  64. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  65. <state key="normal" image="date_arrow_left">
  66. <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  67. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  68. </state>
  69. <state key="highlighted">
  70. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  71. </state>
  72. <connections>
  73. <action selector="prevYearPressed:" destination="-1" eventType="touchUpInside" id="kqc-B4-XPt"/>
  74. </connections>
  75. </button>
  76. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FBs-ue-0FL">
  77. <rect key="frame" x="50" y="42" width="37" height="37"/>
  78. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  79. <state key="normal" image="arrow_up">
  80. <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  81. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  82. </state>
  83. <state key="highlighted">
  84. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  85. </state>
  86. <connections>
  87. <action selector="prevMonthPressed:" destination="-1" eventType="touchUpInside" id="hnT-oW-HbF"/>
  88. </connections>
  89. </button>
  90. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="11">
  91. <rect key="frame" x="283" y="42" width="37" height="37"/>
  92. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  93. <state key="normal" image="date_arrow_right">
  94. <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  95. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  96. </state>
  97. <state key="highlighted">
  98. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  99. </state>
  100. <connections>
  101. <action selector="nextYearPressed:" destination="-1" eventType="touchUpInside" id="a0A-iD-HIW"/>
  102. </connections>
  103. </button>
  104. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7Cu-FS-eEE">
  105. <rect key="frame" x="246" y="42" width="37" height="37"/>
  106. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  107. <state key="normal" image="arrow_down">
  108. <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  109. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  110. </state>
  111. <state key="highlighted">
  112. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  113. </state>
  114. <connections>
  115. <action selector="nextMonthPressed:" destination="-1" eventType="touchUpInside" id="sms-WQ-l4b"/>
  116. </connections>
  117. </button>
  118. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="68">
  119. <rect key="frame" x="0.0" y="89" width="320" height="18"/>
  120. <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  121. </view>
  122. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="49">
  123. <rect key="frame" x="2" y="113" width="320" height="207"/>
  124. <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
  125. </view>
  126. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7">
  127. <rect key="frame" x="101" y="3" width="120" height="36"/>
  128. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  129. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  130. <state key="normal" image="dialog_clear">
  131. <color key="titleColor" red="0.13725490200000001" green="0.62745098040000002" blue="0.89019607840000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  132. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  133. </state>
  134. <state key="disabled" image="calendar_clear-disabled"/>
  135. <state key="highlighted">
  136. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  137. </state>
  138. <connections>
  139. <action selector="clearPressed:" destination="-1" eventType="touchUpInside" id="59"/>
  140. </connections>
  141. </button>
  142. <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8">
  143. <rect key="frame" x="270" y="3" width="50" height="36"/>
  144. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  145. <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
  146. <state key="normal" title="确认">
  147. <color key="titleColor" red="0.13725490200000001" green="0.62745098040000002" blue="0.89019607840000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  148. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  149. </state>
  150. <state key="disabled" image="calendar_ok-disabled"/>
  151. <state key="highlighted">
  152. <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  153. </state>
  154. <connections>
  155. <action selector="okPressed:" destination="-1" eventType="touchUpInside" id="61"/>
  156. </connections>
  157. </button>
  158. <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="12">
  159. <rect key="frame" x="135.5" y="40" width="49.5" height="41"/>
  160. <string key="text">Year
  161. Month</string>
  162. <fontDescription key="fontDescription" type="system" pointSize="17"/>
  163. <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
  164. <nil key="highlightedColor"/>
  165. </label>
  166. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wv9-lp-lWG">
  167. <rect key="frame" x="145" y="11" width="30" height="18"/>
  168. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  169. <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
  170. <nil key="highlightedColor"/>
  171. </label>
  172. </subviews>
  173. <constraints>
  174. <constraint firstAttribute="bottom" secondItem="12" secondAttribute="bottom" constant="239" id="2Jl-7G-Tgc"/>
  175. <constraint firstItem="7Cu-FS-eEE" firstAttribute="height" secondItem="9" secondAttribute="height" id="2Tb-sn-lc1"/>
  176. <constraint firstItem="49" firstAttribute="width" secondItem="s0u-MY-tL4" secondAttribute="width" id="4PU-ia-owg"/>
  177. <constraint firstItem="12" firstAttribute="top" secondItem="s0u-MY-tL4" secondAttribute="top" constant="40" id="5rh-If-VVz"/>
  178. <constraint firstItem="7Cu-FS-eEE" firstAttribute="width" secondItem="9" secondAttribute="width" id="8Qd-WG-Bnt"/>
  179. <constraint firstItem="wv9-lp-lWG" firstAttribute="top" secondItem="s0u-MY-tL4" secondAttribute="top" constant="11" id="BsT-EG-lC5"/>
  180. <constraint firstItem="49" firstAttribute="top" secondItem="s0u-MY-tL4" secondAttribute="top" constant="113" id="GLm-BB-v5S"/>
  181. <constraint firstItem="68" firstAttribute="width" secondItem="s0u-MY-tL4" secondAttribute="width" id="H2g-oq-w6S"/>
  182. <constraint firstAttribute="bottom" secondItem="68" secondAttribute="bottom" constant="213" id="NdA-QF-J1e"/>
  183. <constraint firstAttribute="bottom" secondItem="49" secondAttribute="bottom" id="O1h-xt-sfU"/>
  184. <constraint firstItem="FBs-ue-0FL" firstAttribute="leading" secondItem="9" secondAttribute="trailing" constant="13" id="PYS-2g-JkP"/>
  185. <constraint firstItem="49" firstAttribute="leading" secondItem="s0u-MY-tL4" secondAttribute="leading" constant="2" id="TzG-CE-iUu"/>
  186. <constraint firstItem="FBs-ue-0FL" firstAttribute="width" secondItem="9" secondAttribute="width" id="VOs-3s-ULJ"/>
  187. <constraint firstItem="68" firstAttribute="top" secondItem="s0u-MY-tL4" secondAttribute="top" constant="89" id="Z3T-gx-Kur"/>
  188. <constraint firstItem="11" firstAttribute="centerY" secondItem="12" secondAttribute="centerY" id="aMg-LX-Yet"/>
  189. <constraint firstItem="7Cu-FS-eEE" firstAttribute="centerY" secondItem="12" secondAttribute="centerY" id="aw9-73-UrK"/>
  190. <constraint firstItem="11" firstAttribute="height" secondItem="9" secondAttribute="height" id="bRa-TK-eTF"/>
  191. <constraint firstItem="FBs-ue-0FL" firstAttribute="height" secondItem="9" secondAttribute="height" id="cFX-fx-v3c"/>
  192. <constraint firstItem="11" firstAttribute="leading" secondItem="7Cu-FS-eEE" secondAttribute="trailing" id="cyj-Xn-ga0"/>
  193. <constraint firstItem="9" firstAttribute="centerY" secondItem="12" secondAttribute="centerY" id="ipK-96-QiU"/>
  194. <constraint firstItem="9" firstAttribute="leading" secondItem="s0u-MY-tL4" secondAttribute="leading" id="jbp-zt-cFi"/>
  195. <constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" id="jld-92-hmU"/>
  196. <constraint firstItem="wv9-lp-lWG" firstAttribute="centerX" secondItem="s0u-MY-tL4" secondAttribute="centerX" id="q0h-ME-a8Z"/>
  197. <constraint firstItem="12" firstAttribute="centerX" secondItem="s0u-MY-tL4" secondAttribute="centerX" id="q3n-bx-NPJ"/>
  198. <constraint firstItem="FBs-ue-0FL" firstAttribute="centerY" secondItem="12" secondAttribute="centerY" id="wEB-Mg-HQb"/>
  199. <constraint firstItem="11" firstAttribute="width" secondItem="9" secondAttribute="width" id="xZZ-UF-Dgi"/>
  200. <constraint firstItem="68" firstAttribute="leading" secondItem="s0u-MY-tL4" secondAttribute="leading" id="ydA-kz-e6w"/>
  201. </constraints>
  202. </view>
  203. </subviews>
  204. <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  205. <constraints>
  206. <constraint firstAttribute="centerX" secondItem="s0u-MY-tL4" secondAttribute="centerX" id="1tT-TN-bjo"/>
  207. <constraint firstAttribute="height" constant="320" id="Arj-FB-Tcv"/>
  208. <constraint firstItem="s0u-MY-tL4" firstAttribute="width" secondItem="Jpp-kp-HO9" secondAttribute="width" id="L0O-ot-vDK"/>
  209. <constraint firstItem="g6a-bo-Ej7" firstAttribute="leading" secondItem="Jpp-kp-HO9" secondAttribute="leading" id="Mf8-jj-tbF"/>
  210. <constraint firstAttribute="bottom" secondItem="s0u-MY-tL4" secondAttribute="bottom" id="QKd-6Q-2bt"/>
  211. <constraint firstAttribute="trailing" secondItem="g6a-bo-Ej7" secondAttribute="trailing" id="TUj-Ym-lCi"/>
  212. <constraint firstItem="g6a-bo-Ej7" firstAttribute="top" secondItem="Jpp-kp-HO9" secondAttribute="top" id="Ts5-Bk-YKE"/>
  213. <constraint firstItem="s0u-MY-tL4" firstAttribute="top" secondItem="Jpp-kp-HO9" secondAttribute="top" id="fvW-qI-UaB"/>
  214. </constraints>
  215. </view>
  216. </subviews>
  217. <constraints>
  218. <constraint firstAttribute="trailing" secondItem="Jpp-kp-HO9" secondAttribute="trailing" id="IVJ-wh-h8u"/>
  219. <constraint firstItem="Jpp-kp-HO9" firstAttribute="leading" secondItem="5" secondAttribute="leading" id="XhB-6E-W3s"/>
  220. <constraint firstAttribute="bottom" secondItem="Jpp-kp-HO9" secondAttribute="bottom" id="hgJ-JC-x30"/>
  221. </constraints>
  222. <nil key="simulatedStatusBarMetrics"/>
  223. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  224. <point key="canvasLocation" x="564.79999999999995" y="345.42728635682164"/>
  225. </view>
  226. </objects>
  227. <resources>
  228. <image name="arrow_down" width="37" height="37"/>
  229. <image name="arrow_up" width="37" height="37"/>
  230. <image name="calendar_clear-disabled" width="37" height="37"/>
  231. <image name="calendar_ok-disabled" width="37" height="37"/>
  232. <image name="date_arrow_left" width="37" height="37"/>
  233. <image name="date_arrow_right" width="37" height="37"/>
  234. <image name="dialog_clear" width="37" height="37"/>
  235. </resources>
  236. </document>