IMChatAudioView.xib 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" 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="16087"/>
  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"/>
  12. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  13. <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="IMChatAudioView" customModule="O2Platform" customModuleProvider="target">
  14. <rect key="frame" x="0.0" y="0.0" width="414" height="196"/>
  15. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  16. <subviews>
  17. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wVh-0l-AFu">
  18. <rect key="frame" x="158" y="49" width="98" height="98"/>
  19. <color key="backgroundColor" red="0.95294117649999999" green="0.95294117649999999" blue="0.95294117649999999" alpha="1" colorSpace="calibratedRGB"/>
  20. <constraints>
  21. <constraint firstAttribute="width" constant="98" id="4e9-hO-ccV"/>
  22. <constraint firstAttribute="height" constant="98" id="wuH-tw-j4k"/>
  23. </constraints>
  24. <state key="normal" image="chat_mic"/>
  25. <userDefinedRuntimeAttributes>
  26. <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
  27. <real key="value" value="49"/>
  28. </userDefinedRuntimeAttribute>
  29. </userDefinedRuntimeAttributes>
  30. </button>
  31. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="按住说话" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ofc-kF-lNX">
  32. <rect key="frame" x="182" y="14" width="50" height="15"/>
  33. <fontDescription key="fontDescription" type="system" pointSize="12"/>
  34. <color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  35. <nil key="highlightedColor"/>
  36. </label>
  37. </subviews>
  38. <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
  39. <constraints>
  40. <constraint firstItem="wVh-0l-AFu" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="6cB-Al-ASy"/>
  41. <constraint firstItem="Ofc-kF-lNX" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="SHl-b2-znG"/>
  42. <constraint firstItem="wVh-0l-AFu" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="tyc-Iy-wZR"/>
  43. <constraint firstItem="Ofc-kF-lNX" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="14" id="wVW-4b-Vj0"/>
  44. </constraints>
  45. <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
  46. <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
  47. <connections>
  48. <outlet property="audioRecordBtn" destination="wVh-0l-AFu" id="85j-KR-mnf"/>
  49. <outlet property="audioViewTitle" destination="Ofc-kF-lNX" id="K6i-qG-CmP"/>
  50. </connections>
  51. <point key="canvasLocation" x="-113" y="-1"/>
  52. </view>
  53. </objects>
  54. <resources>
  55. <image name="chat_mic" width="32" height="32"/>
  56. </resources>
  57. </document>