IMChatViewController.xib 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" 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="17505"/>
  7. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  8. <capability name="System colors in document resources" minToolsVersion="11.0"/>
  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="IMChatViewController" customModule="O2Platform" customModuleProvider="target">
  13. <connections>
  14. <outlet property="bottomBar" destination="sDg-us-Ed9" id="J1d-XZ-5Rt"/>
  15. <outlet property="bottomBarHeightConstraint" destination="qiu-7O-AwO" id="LWR-Ov-DMW"/>
  16. <outlet property="messageInputView" destination="8BW-XG-rBx" id="A8J-9I-MjT"/>
  17. <outlet property="tableView" destination="ZIb-3p-hnq" id="heR-v3-iUh"/>
  18. <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
  19. </connections>
  20. </placeholder>
  21. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  22. <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
  23. <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
  24. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  25. <subviews>
  26. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sDg-us-Ed9">
  27. <rect key="frame" x="0.0" y="798" width="414" height="98"/>
  28. <subviews>
  29. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dw7-Gt-B9S">
  30. <rect key="frame" x="12" y="12" width="36" height="36"/>
  31. <constraints>
  32. <constraint firstAttribute="width" constant="36" id="GzW-Dq-aKe"/>
  33. <constraint firstAttribute="height" constant="36" id="cBE-hT-EbX"/>
  34. </constraints>
  35. <state key="normal" image="icon_yuyin"/>
  36. <connections>
  37. <action selector="micBtnClick:" destination="-1" eventType="touchUpInside" id="qN7-d7-8AE"/>
  38. </connections>
  39. </button>
  40. <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入消息..." textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="8BW-XG-rBx">
  41. <rect key="frame" x="60" y="12" width="282" height="36"/>
  42. <constraints>
  43. <constraint firstAttribute="height" constant="36" id="qe1-5v-UaD"/>
  44. </constraints>
  45. <fontDescription key="fontDescription" type="system" pointSize="14"/>
  46. <textInputTraits key="textInputTraits" returnKeyType="send"/>
  47. </textField>
  48. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oTD-nU-xkE">
  49. <rect key="frame" x="366" y="12" width="36" height="36"/>
  50. <constraints>
  51. <constraint firstAttribute="width" constant="36" id="AzT-Gm-fHl"/>
  52. <constraint firstAttribute="height" constant="36" id="PqN-1z-eCd"/>
  53. </constraints>
  54. <state key="normal" image="chat_emoji"/>
  55. <connections>
  56. <action selector="clickEmojiBtn:" destination="-1" eventType="touchUpInside" id="hZk-xk-g8t"/>
  57. </connections>
  58. </button>
  59. <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="H2g-NL-0Ps">
  60. <rect key="frame" x="14" y="53" width="386" height="36"/>
  61. <subviews>
  62. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="maW-x1-6ob">
  63. <rect key="frame" x="0.0" y="2" width="96.5" height="32"/>
  64. <constraints>
  65. <constraint firstAttribute="height" constant="32" id="NCL-G0-g4l"/>
  66. </constraints>
  67. <state key="normal" image="icon_tupian"/>
  68. <connections>
  69. <action selector="imgBtnClick:" destination="-1" eventType="touchUpInside" id="Jbr-NQ-U7b"/>
  70. </connections>
  71. </button>
  72. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zj7-bo-0tf">
  73. <rect key="frame" x="96.5" y="2" width="96.5" height="32"/>
  74. <constraints>
  75. <constraint firstAttribute="height" constant="32" id="mDx-JV-z4Q"/>
  76. </constraints>
  77. <state key="normal" image="icon_xiangji"/>
  78. <connections>
  79. <action selector="cameraBtnClick:" destination="-1" eventType="touchUpInside" id="v70-6D-pKx"/>
  80. </connections>
  81. </button>
  82. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eXj-l2-Ioo">
  83. <rect key="frame" x="193" y="2" width="96.5" height="32"/>
  84. <constraints>
  85. <constraint firstAttribute="height" constant="32" id="Fae-3Q-Qrq"/>
  86. </constraints>
  87. <state key="normal" image="icon_ditu"/>
  88. <connections>
  89. <action selector="locationBtnClick:" destination="-1" eventType="touchUpInside" id="Jwe-pL-EpP"/>
  90. </connections>
  91. </button>
  92. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fhh-vq-sFO">
  93. <rect key="frame" x="289.5" y="2" width="96.5" height="32"/>
  94. <constraints>
  95. <constraint firstAttribute="height" constant="32" id="DaN-Av-kbe"/>
  96. </constraints>
  97. <state key="normal" image="chat_icon_file"/>
  98. <connections>
  99. <action selector="fileBtnClick:" destination="-1" eventType="touchUpInside" id="Y1b-Dm-nOu"/>
  100. </connections>
  101. </button>
  102. </subviews>
  103. <constraints>
  104. <constraint firstAttribute="height" constant="36" id="xmi-XZ-ezm"/>
  105. </constraints>
  106. </stackView>
  107. </subviews>
  108. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  109. <constraints>
  110. <constraint firstItem="H2g-NL-0Ps" firstAttribute="top" secondItem="8BW-XG-rBx" secondAttribute="bottom" constant="5" id="1hG-6h-KgV"/>
  111. <constraint firstAttribute="trailing" secondItem="oTD-nU-xkE" secondAttribute="trailing" constant="12" id="BtK-YW-2fb"/>
  112. <constraint firstItem="oTD-nU-xkE" firstAttribute="top" secondItem="sDg-us-Ed9" secondAttribute="top" constant="12" id="JKE-h8-gll"/>
  113. <constraint firstItem="oTD-nU-xkE" firstAttribute="leading" secondItem="8BW-XG-rBx" secondAttribute="trailing" constant="24" id="Mzm-dM-gqy"/>
  114. <constraint firstItem="H2g-NL-0Ps" firstAttribute="leading" secondItem="sDg-us-Ed9" secondAttribute="leading" constant="14" id="Nkm-xr-kRS"/>
  115. <constraint firstItem="dw7-Gt-B9S" firstAttribute="top" secondItem="sDg-us-Ed9" secondAttribute="top" constant="12" id="X95-JX-0VX"/>
  116. <constraint firstItem="8BW-XG-rBx" firstAttribute="leading" secondItem="dw7-Gt-B9S" secondAttribute="trailing" constant="12" id="eAE-rH-mv3"/>
  117. <constraint firstItem="8BW-XG-rBx" firstAttribute="top" secondItem="sDg-us-Ed9" secondAttribute="top" constant="12" id="hnf-bY-DYH"/>
  118. <constraint firstAttribute="trailing" secondItem="H2g-NL-0Ps" secondAttribute="trailing" constant="14" id="nDu-Mf-6te"/>
  119. <constraint firstItem="dw7-Gt-B9S" firstAttribute="leading" secondItem="sDg-us-Ed9" secondAttribute="leading" constant="12" id="pCQ-Fc-RzW"/>
  120. <constraint firstAttribute="height" constant="98" id="qiu-7O-AwO"/>
  121. </constraints>
  122. </view>
  123. <tableView clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="ZIb-3p-hnq">
  124. <rect key="frame" x="0.0" y="24" width="414" height="720"/>
  125. <color key="backgroundColor" red="0.95294117649999999" green="0.95294117649999999" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/>
  126. <color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  127. </tableView>
  128. </subviews>
  129. <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
  130. <color key="backgroundColor" systemColor="systemGray6Color"/>
  131. <constraints>
  132. <constraint firstItem="ZIb-3p-hnq" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="7kr-oh-NvU"/>
  133. <constraint firstAttribute="trailing" secondItem="sDg-us-Ed9" secondAttribute="trailing" id="SXj-Vg-GIC"/>
  134. <constraint firstAttribute="bottom" secondItem="sDg-us-Ed9" secondAttribute="bottom" id="ZjF-u3-yyV"/>
  135. <constraint firstItem="ZIb-3p-hnq" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="d3C-Up-hv7"/>
  136. <constraint firstItem="ZIb-3p-hnq" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="igh-CL-C1S"/>
  137. <constraint firstItem="sDg-us-Ed9" firstAttribute="top" secondItem="ZIb-3p-hnq" secondAttribute="bottom" id="rTN-Zh-8i6"/>
  138. <constraint firstItem="sDg-us-Ed9" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="rqK-P9-wyk"/>
  139. </constraints>
  140. <point key="canvasLocation" x="131.8840579710145" y="138.61607142857142"/>
  141. </view>
  142. </objects>
  143. <resources>
  144. <image name="chat_emoji" width="24" height="24"/>
  145. <image name="chat_icon_file" width="21.333333969116211" height="21.333333969116211"/>
  146. <image name="icon_ditu" width="22" height="22"/>
  147. <image name="icon_tupian" width="22" height="22"/>
  148. <image name="icon_xiangji" width="22" height="22"/>
  149. <image name="icon_yuyin" width="22" height="22"/>
  150. <systemColor name="systemGray6Color">
  151. <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  152. </systemColor>
  153. </resources>
  154. </document>