JCHATToolBar.xib 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
  3. <device id="retina4_7" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
  7. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  8. </dependencies>
  9. <objects>
  10. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="JCHATChatViewController"/>
  11. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  12. <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="JCHATToolBar">
  13. <rect key="frame" x="0.0" y="0.0" width="320" height="45"/>
  14. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  15. <subviews>
  16. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YCs-zm-hKL" userLabel="声音">
  17. <rect key="frame" x="8" y="7.5" width="30" height="30"/>
  18. <constraints>
  19. <constraint firstAttribute="height" constant="30" id="hqn-mr-WwU"/>
  20. <constraint firstAttribute="width" constant="30" id="pq5-AN-2Np"/>
  21. </constraints>
  22. <state key="normal">
  23. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  24. </state>
  25. <connections>
  26. <action selector="voiceBtnClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="jsz-Bu-lQG"/>
  27. </connections>
  28. </button>
  29. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VuO-mV-udy" userLabel="更多">
  30. <rect key="frame" x="282" y="7.5" width="30" height="30"/>
  31. <constraints>
  32. <constraint firstAttribute="width" constant="30" id="2Wr-HL-v6u"/>
  33. <constraint firstAttribute="height" constant="30" id="V4b-qe-SqG"/>
  34. </constraints>
  35. <state key="normal" image="chat_add.png">
  36. <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  37. </state>
  38. <state key="highlighted" image="add01_pre"/>
  39. <connections>
  40. <action selector="addBtnClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="pbb-SA-CQS"/>
  41. </connections>
  42. </button>
  43. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="grz-U4-Kvr" userLabel="表情">
  44. <rect key="frame" x="244" y="7.5" width="30" height="30"/>
  45. <constraints>
  46. <constraint firstAttribute="width" constant="30" id="vO7-1l-3OX"/>
  47. <constraint firstAttribute="width" secondItem="grz-U4-Kvr" secondAttribute="height" multiplier="1:1" id="ztY-ga-lP4"/>
  48. </constraints>
  49. <state key="normal" image="chat_face.png"/>
  50. <state key="selected" image="chat_keyboard@3x.png"/>
  51. <connections>
  52. <action selector="faceBtnClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="Iji-zj-3Li"/>
  53. </connections>
  54. </button>
  55. <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rpU-3b-2dD" userLabel="输入框" customClass="JCHATMessageTextView">
  56. <rect key="frame" x="46" y="5" width="190" height="36"/>
  57. <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  58. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  59. <textInputTraits key="textInputTraits" autocapitalizationType="sentences" returnKeyType="send" enablesReturnKeyAutomatically="YES"/>
  60. </textView>
  61. </subviews>
  62. <color key="backgroundColor" red="0.96862745100000003" green="0.96862745100000003" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  63. <constraints>
  64. <constraint firstItem="YCs-zm-hKL" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="3Sh-tX-tIC"/>
  65. <constraint firstItem="grz-U4-Kvr" firstAttribute="trailing" secondItem="VuO-mV-udy" secondAttribute="leading" constant="-8" id="7cs-Bw-FQU"/>
  66. <constraint firstItem="YCs-zm-hKL" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="8" id="SKu-EB-2Ey"/>
  67. <constraint firstItem="rpU-3b-2dD" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="5" id="W1Q-Gc-ke8"/>
  68. <constraint firstItem="grz-U4-Kvr" firstAttribute="centerY" secondItem="YCs-zm-hKL" secondAttribute="centerY" id="e3N-xr-iPL"/>
  69. <constraint firstAttribute="trailing" secondItem="VuO-mV-udy" secondAttribute="trailing" constant="8" id="fBX-Bl-jGB"/>
  70. <constraint firstItem="rpU-3b-2dD" firstAttribute="trailing" secondItem="grz-U4-Kvr" secondAttribute="leading" constant="-8" id="i9a-w4-AWE"/>
  71. <constraint firstItem="rpU-3b-2dD" firstAttribute="leading" secondItem="YCs-zm-hKL" secondAttribute="trailing" constant="8" id="o1K-RI-UVr"/>
  72. <constraint firstItem="VuO-mV-udy" firstAttribute="centerY" secondItem="YCs-zm-hKL" secondAttribute="centerY" id="vdD-XM-sKH"/>
  73. <constraint firstAttribute="bottom" secondItem="rpU-3b-2dD" secondAttribute="bottom" constant="4" id="xTF-p2-3ge"/>
  74. </constraints>
  75. <nil key="simulatedStatusBarMetrics"/>
  76. <nil key="simulatedTopBarMetrics"/>
  77. <nil key="simulatedBottomBarMetrics"/>
  78. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  79. <connections>
  80. <outlet property="addBtnWidth" destination="2Wr-HL-v6u" id="Acj-4B-D08"/>
  81. <outlet property="addButton" destination="VuO-mV-udy" id="3e8-Gt-fIU"/>
  82. <outlet property="faceBtn" destination="grz-U4-Kvr" id="P7L-3q-PxL"/>
  83. <outlet property="textView" destination="rpU-3b-2dD" id="VMC-2X-lFu"/>
  84. <outlet property="voiceButton" destination="YCs-zm-hKL" id="Q4z-sK-tmo"/>
  85. <outlet property="voideWidth" destination="pq5-AN-2Np" id="BBI-Iw-cRj"/>
  86. </connections>
  87. <point key="canvasLocation" x="1451.2" y="719.19040479760122"/>
  88. </view>
  89. </objects>
  90. <resources>
  91. <image name="add01_pre" width="22" height="22"/>
  92. <image name="chat_add.png" width="24" height="24"/>
  93. <image name="chat_face.png" width="24" height="24"/>
  94. <image name="chat_keyboard@3x.png" width="16" height="16"/>
  95. </resources>
  96. </document>