Camera.storyboard 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="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="14088"/>
  9. <capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
  10. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  11. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  12. </dependencies>
  13. <scenes>
  14. <!--Camera View Controller-->
  15. <scene sceneID="4sG-sz-uXW">
  16. <objects>
  17. <viewController storyboardIdentifier="RACameraViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="u3G-8E-Sj8" customClass="RACameraViewController" sceneMemberID="viewController">
  18. <view key="view" contentMode="scaleToFill" id="ZFi-1H-xB4">
  19. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  20. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  21. <subviews>
  22. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aIR-II-sqh">
  23. <rect key="frame" x="0.0" y="20" width="375" height="647"/>
  24. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  25. </view>
  26. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2cM-nE-ueF">
  27. <rect key="frame" x="0.0" y="20" width="375" height="647"/>
  28. <subviews>
  29. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Zmb-bI-WjK">
  30. <rect key="frame" x="157.5" y="527" width="60" height="60"/>
  31. <constraints>
  32. <constraint firstAttribute="width" constant="60" id="Jgr-Dk-QIx"/>
  33. <constraint firstAttribute="width" secondItem="Zmb-bI-WjK" secondAttribute="height" multiplier="1:1" id="MQN-fF-lQY"/>
  34. </constraints>
  35. <connections>
  36. <action selector="takePictureBtnClick:" destination="u3G-8E-Sj8" eventType="touchUpInside" id="1LX-1e-klr"/>
  37. </connections>
  38. </button>
  39. </subviews>
  40. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  41. <constraints>
  42. <constraint firstAttribute="bottom" secondItem="Zmb-bI-WjK" secondAttribute="bottom" constant="60" id="f8Y-IT-5Vo"/>
  43. <constraint firstItem="Zmb-bI-WjK" firstAttribute="centerX" secondItem="2cM-nE-ueF" secondAttribute="centerX" id="wR7-zz-eVK"/>
  44. </constraints>
  45. </view>
  46. </subviews>
  47. <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  48. <constraints>
  49. <constraint firstItem="fLT-zm-dh6" firstAttribute="bottom" secondItem="2cM-nE-ueF" secondAttribute="bottom" id="9Y0-7J-sXY"/>
  50. <constraint firstItem="fLT-zm-dh6" firstAttribute="trailing" secondItem="aIR-II-sqh" secondAttribute="trailing" id="CZh-X5-9Zr"/>
  51. <constraint firstItem="2cM-nE-ueF" firstAttribute="leading" secondItem="fLT-zm-dh6" secondAttribute="leading" id="Igd-YW-xgj"/>
  52. <constraint firstItem="fLT-zm-dh6" firstAttribute="bottom" secondItem="aIR-II-sqh" secondAttribute="bottom" id="bSC-7H-ATA"/>
  53. <constraint firstItem="2cM-nE-ueF" firstAttribute="top" secondItem="fLT-zm-dh6" secondAttribute="top" id="fox-Pf-jXw"/>
  54. <constraint firstItem="aIR-II-sqh" firstAttribute="top" secondItem="fLT-zm-dh6" secondAttribute="top" id="iNS-Ag-rc8"/>
  55. <constraint firstItem="fLT-zm-dh6" firstAttribute="trailing" secondItem="2cM-nE-ueF" secondAttribute="trailing" id="plK-cA-ZV1"/>
  56. <constraint firstItem="aIR-II-sqh" firstAttribute="leading" secondItem="fLT-zm-dh6" secondAttribute="leading" id="yWd-lg-8xz"/>
  57. </constraints>
  58. <viewLayoutGuide key="safeArea" id="fLT-zm-dh6"/>
  59. </view>
  60. <connections>
  61. <outlet property="controlContanier" destination="2cM-nE-ueF" id="8g4-KY-DMK"/>
  62. <outlet property="previewContainer" destination="aIR-II-sqh" id="Xhl-yB-wfI"/>
  63. <outlet property="takePhotoBtn" destination="Zmb-bI-WjK" id="4ND-ng-dvs"/>
  64. </connections>
  65. </viewController>
  66. <placeholder placeholderIdentifier="IBFirstResponder" id="65S-tr-YKy" userLabel="First Responder" sceneMemberID="firstResponder"/>
  67. </objects>
  68. <point key="canvasLocation" x="-23" y="161"/>
  69. </scene>
  70. <!--Take Photo Preview Controller-->
  71. <scene sceneID="Y0T-nH-52O">
  72. <objects>
  73. <viewController storyboardIdentifier="RATakePhotoPreviewController" automaticallyAdjustsScrollViewInsets="NO" useStoryboardIdentifierAsRestorationIdentifier="YES" id="hfm-f2-DNT" customClass="RATakePhotoPreviewController" sceneMemberID="viewController">
  74. <layoutGuides>
  75. <viewControllerLayoutGuide type="top" id="JtE-cJ-OW0"/>
  76. <viewControllerLayoutGuide type="bottom" id="1aO-Vd-AQh"/>
  77. </layoutGuides>
  78. <view key="view" contentMode="scaleToFill" id="khP-jm-wId">
  79. <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  80. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  81. <subviews>
  82. <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" maximumZoomScale="4" translatesAutoresizingMaskIntoConstraints="NO" id="w4v-z1-b7B">
  83. <rect key="frame" x="0.0" y="20" width="375" height="647"/>
  84. <subviews>
  85. <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z0q-fB-hKK">
  86. <rect key="frame" x="0.0" y="0.0" width="375" height="647"/>
  87. </imageView>
  88. </subviews>
  89. <constraints>
  90. <constraint firstAttribute="trailing" secondItem="Z0q-fB-hKK" secondAttribute="trailing" id="1DV-S9-kNZ"/>
  91. <constraint firstItem="Z0q-fB-hKK" firstAttribute="leading" secondItem="w4v-z1-b7B" secondAttribute="leading" id="3vl-RG-C7S"/>
  92. <constraint firstItem="Z0q-fB-hKK" firstAttribute="top" secondItem="w4v-z1-b7B" secondAttribute="top" id="U6T-ty-Pya"/>
  93. <constraint firstItem="Z0q-fB-hKK" firstAttribute="height" secondItem="w4v-z1-b7B" secondAttribute="height" id="Vy1-Qy-KOG"/>
  94. <constraint firstAttribute="bottom" secondItem="Z0q-fB-hKK" secondAttribute="bottom" id="iA1-6c-bee"/>
  95. <constraint firstItem="Z0q-fB-hKK" firstAttribute="width" secondItem="w4v-z1-b7B" secondAttribute="width" id="mYI-88-f5w"/>
  96. </constraints>
  97. <connections>
  98. <outlet property="delegate" destination="hfm-f2-DNT" id="0Kg-98-liP"/>
  99. </connections>
  100. </scrollView>
  101. <view alpha="0.44999998807907104" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WfP-Fk-mo9">
  102. <rect key="frame" x="0.0" y="605" width="375" height="62"/>
  103. <subviews>
  104. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XlI-8n-qRu">
  105. <rect key="frame" x="20" y="16" width="47" height="30"/>
  106. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  107. <state key="normal" title="Retake"/>
  108. <connections>
  109. <action selector="retakeBtnClick:" destination="hfm-f2-DNT" eventType="touchUpInside" id="7eA-Kj-Zq8"/>
  110. </connections>
  111. </button>
  112. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZBU-jX-GTo">
  113. <rect key="frame" x="283" y="16" width="72" height="30"/>
  114. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  115. <state key="normal" title="Use Photo"/>
  116. <connections>
  117. <action selector="usePhotoClick:" destination="hfm-f2-DNT" eventType="touchUpInside" id="3JY-Vk-Gu3"/>
  118. </connections>
  119. </button>
  120. </subviews>
  121. <color key="backgroundColor" white="0.33333333329999998" alpha="1" colorSpace="calibratedWhite"/>
  122. <constraints>
  123. <constraint firstItem="ZBU-jX-GTo" firstAttribute="centerY" secondItem="WfP-Fk-mo9" secondAttribute="centerY" id="IPi-1Q-dac"/>
  124. <constraint firstItem="XlI-8n-qRu" firstAttribute="leading" secondItem="WfP-Fk-mo9" secondAttribute="leading" constant="20" id="PQS-SF-GaW"/>
  125. <constraint firstAttribute="trailing" secondItem="ZBU-jX-GTo" secondAttribute="trailing" constant="20" id="bwu-A0-IZQ"/>
  126. <constraint firstAttribute="height" constant="62" id="cnn-ba-VJB"/>
  127. <constraint firstItem="XlI-8n-qRu" firstAttribute="centerY" secondItem="WfP-Fk-mo9" secondAttribute="centerY" id="gCx-yd-g3m"/>
  128. </constraints>
  129. </view>
  130. </subviews>
  131. <color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
  132. <constraints>
  133. <constraint firstItem="1aO-Vd-AQh" firstAttribute="top" secondItem="WfP-Fk-mo9" secondAttribute="bottom" id="18i-Al-Ypd"/>
  134. <constraint firstItem="WfP-Fk-mo9" firstAttribute="leading" secondItem="khP-jm-wId" secondAttribute="leading" id="MSv-jh-Kws"/>
  135. <constraint firstItem="1aO-Vd-AQh" firstAttribute="top" secondItem="w4v-z1-b7B" secondAttribute="bottom" id="ZV0-ao-dGH"/>
  136. <constraint firstItem="w4v-z1-b7B" firstAttribute="leading" secondItem="khP-jm-wId" secondAttribute="leading" id="eWS-j0-eyB"/>
  137. <constraint firstAttribute="trailing" secondItem="w4v-z1-b7B" secondAttribute="trailing" id="qYR-pg-xfY"/>
  138. <constraint firstItem="w4v-z1-b7B" firstAttribute="top" secondItem="JtE-cJ-OW0" secondAttribute="bottom" id="vBb-3e-ld9"/>
  139. <constraint firstAttribute="trailing" secondItem="WfP-Fk-mo9" secondAttribute="trailing" id="wKB-RK-2W0"/>
  140. </constraints>
  141. <viewLayoutGuide key="safeArea" id="BrA-yF-F9H"/>
  142. </view>
  143. <nil key="simulatedStatusBarMetrics"/>
  144. <nil key="simulatedTopBarMetrics"/>
  145. <nil key="simulatedBottomBarMetrics"/>
  146. <connections>
  147. <outlet property="previewPhotoView" destination="Z0q-fB-hKK" id="CuC-M7-vFP"/>
  148. <outlet property="previewScroll" destination="w4v-z1-b7B" id="mvQ-nK-wZW"/>
  149. <outlet property="retakeBtn" destination="XlI-8n-qRu" id="Og5-TY-dJU"/>
  150. <outlet property="toolBarView" destination="WfP-Fk-mo9" id="sdI-yW-TCC"/>
  151. <outlet property="usePhotoBtn" destination="ZBU-jX-GTo" id="c0Y-4b-GQ9"/>
  152. </connections>
  153. </viewController>
  154. <placeholder placeholderIdentifier="IBFirstResponder" id="ex0-03-0bJ" userLabel="First Responder" sceneMemberID="firstResponder"/>
  155. </objects>
  156. <point key="canvasLocation" x="2557.5999999999999" y="243.32833583208398"/>
  157. </scene>
  158. </scenes>
  159. </document>