NumberEditText.xib 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina6_1" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
  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" customClass="IBNumberEditText" customModule="BPML" customModuleProvider="target">
  12. <connections>
  13. <outlet property="addBtn" destination="aWz-wl-ObB" id="ABg-uC-xHn"/>
  14. <outlet property="containerView" destination="iN0-l3-epB" id="EmQ-oK-TNk"/>
  15. <outlet property="minusBtn" destination="xJe-dy-UFG" id="sDG-dB-zf0"/>
  16. <outlet property="numberField" destination="qPR-PI-lbw" id="NEc-ii-9Nu"/>
  17. </connections>
  18. </placeholder>
  19. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  20. <view contentMode="scaleToFill" id="iN0-l3-epB">
  21. <rect key="frame" x="0.0" y="0.0" width="414" height="60"/>
  22. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  23. <subviews>
  24. <stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="M0d-xy-Enp">
  25. <rect key="frame" x="0.0" y="22" width="414" height="60"/>
  26. <subviews>
  27. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xJe-dy-UFG" customClass="IBButton" customModule="BPML" customModuleProvider="target">
  28. <rect key="frame" x="0.0" y="0.0" width="35" height="60"/>
  29. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  30. <constraints>
  31. <constraint firstAttribute="width" constant="35" id="djW-p4-TQh"/>
  32. </constraints>
  33. <state key="normal" title="-">
  34. <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  35. </state>
  36. <userDefinedRuntimeAttributes>
  37. <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
  38. <real key="value" value="1"/>
  39. </userDefinedRuntimeAttribute>
  40. <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
  41. <color key="value" red="0.80000000000000004" green="0.80000000000000004" blue="0.80000000000000004" alpha="1" colorSpace="calibratedRGB"/>
  42. </userDefinedRuntimeAttribute>
  43. <userDefinedRuntimeAttribute type="point" keyPath="圆角倍数">
  44. <point key="value" x="0.0" y="0.5"/>
  45. </userDefinedRuntimeAttribute>
  46. </userDefinedRuntimeAttributes>
  47. <connections>
  48. <action selector="onButtonPressed:" destination="-1" eventType="touchUpInside" id="ZDp-uF-eDu"/>
  49. </connections>
  50. </button>
  51. <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="qPR-PI-lbw" customClass="IBTextField" customModule="BPML" customModuleProvider="target">
  52. <rect key="frame" x="35" y="0.0" width="344" height="60"/>
  53. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  54. <color key="textColor" red="0.20000000000000001" green="0.51764705879999995" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/>
  55. <fontDescription key="fontDescription" type="system" pointSize="18"/>
  56. <textInputTraits key="textInputTraits" keyboardType="decimalPad"/>
  57. <connections>
  58. <outlet property="delegate" destination="-1" id="rh8-LB-bOU"/>
  59. </connections>
  60. </textField>
  61. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aWz-wl-ObB" customClass="IBButton" customModule="BPML" customModuleProvider="target">
  62. <rect key="frame" x="379" y="0.0" width="35" height="60"/>
  63. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  64. <constraints>
  65. <constraint firstAttribute="width" constant="35" id="Djf-Ke-PSy"/>
  66. </constraints>
  67. <state key="normal" title="+">
  68. <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  69. </state>
  70. <userDefinedRuntimeAttributes>
  71. <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
  72. <color key="value" red="0.80000000000000004" green="0.80000000000000004" blue="0.80000000000000004" alpha="1" colorSpace="calibratedRGB"/>
  73. </userDefinedRuntimeAttribute>
  74. <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
  75. <real key="value" value="1"/>
  76. </userDefinedRuntimeAttribute>
  77. <userDefinedRuntimeAttribute type="point" keyPath="圆角倍数">
  78. <point key="value" x="0.0" y="0.5"/>
  79. </userDefinedRuntimeAttribute>
  80. </userDefinedRuntimeAttributes>
  81. <connections>
  82. <action selector="onButtonPressed:" destination="-1" eventType="touchUpInside" id="jDm-6h-LH9"/>
  83. </connections>
  84. </button>
  85. </subviews>
  86. </stackView>
  87. </subviews>
  88. <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
  89. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  90. <constraints>
  91. <constraint firstItem="M0d-xy-Enp" firstAttribute="centerX" secondItem="vUN-kp-3ea" secondAttribute="centerX" id="AjQ-Fd-Euw"/>
  92. <constraint firstItem="M0d-xy-Enp" firstAttribute="width" secondItem="iN0-l3-epB" secondAttribute="width" id="MM9-0u-pQa"/>
  93. <constraint firstItem="M0d-xy-Enp" firstAttribute="height" secondItem="iN0-l3-epB" secondAttribute="height" id="WuT-ge-Nq7"/>
  94. <constraint firstItem="M0d-xy-Enp" firstAttribute="centerY" secondItem="vUN-kp-3ea" secondAttribute="centerY" id="dQN-yN-13v"/>
  95. </constraints>
  96. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  97. <point key="canvasLocation" x="-419" y="100"/>
  98. </view>
  99. </objects>
  100. <designables>
  101. <designable name="aWz-wl-ObB">
  102. <size key="intrinsicContentSize" width="30" height="30"/>
  103. </designable>
  104. <designable name="qPR-PI-lbw">
  105. <size key="intrinsicContentSize" width="5" height="23"/>
  106. </designable>
  107. <designable name="xJe-dy-UFG">
  108. <size key="intrinsicContentSize" width="30" height="30"/>
  109. </designable>
  110. </designables>
  111. </document>