Camera.storyboard 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina5_5" orientation="portrait">
  4. <adaptation id="fullscreen"/>
  5. </device>
  6. <dependencies>
  7. <deployment identifier="iOS"/>
  8. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
  9. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  10. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  11. </dependencies>
  12. <scenes>
  13. <!--Camera View Controller-->
  14. <scene sceneID="4sG-sz-uXW">
  15. <objects>
  16. <viewController storyboardIdentifier="RACameraViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="u3G-8E-Sj8" customClass="RACameraViewController" sceneMemberID="viewController">
  17. <view key="view" contentMode="scaleToFill" id="ZFi-1H-xB4">
  18. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  19. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  20. <subviews>
  21. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aIR-II-sqh">
  22. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  23. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  24. </view>
  25. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2cM-nE-ueF">
  26. <rect key="frame" x="0.0" y="20" width="414" height="716"/>
  27. <subviews>
  28. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Zmb-bI-WjK">
  29. <rect key="frame" x="177" y="626" width="60" height="60"/>
  30. <constraints>
  31. <constraint firstAttribute="width" constant="60" id="Jgr-Dk-QIx"/>
  32. <constraint firstAttribute="width" secondItem="Zmb-bI-WjK" secondAttribute="height" multiplier="1:1" id="MQN-fF-lQY"/>
  33. </constraints>
  34. <connections>
  35. <action selector="takePictureBtnClick:" destination="u3G-8E-Sj8" eventType="touchUpInside" id="1LX-1e-klr"/>
  36. </connections>
  37. </button>
  38. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mbh-f5-Pjk">
  39. <rect key="frame" x="10" y="20" width="30" height="30"/>
  40. <state key="normal" image="btn_return"/>
  41. <connections>
  42. <action selector="returnButtonClick:" destination="u3G-8E-Sj8" eventType="touchUpInside" id="HSh-Rt-lSF"/>
  43. </connections>
  44. </button>
  45. </subviews>
  46. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  47. <constraints>
  48. <constraint firstItem="Zmb-bI-WjK" firstAttribute="centerY" secondItem="2cM-nE-ueF" secondAttribute="centerY" id="5lq-gs-zZH"/>
  49. <constraint firstAttribute="bottom" secondItem="Zmb-bI-WjK" secondAttribute="bottom" constant="30" id="f8Y-IT-5Vo"/>
  50. <constraint firstItem="Zmb-bI-WjK" firstAttribute="centerX" secondItem="2cM-nE-ueF" secondAttribute="centerX" id="wR7-zz-eVK"/>
  51. <constraint firstAttribute="trailing" secondItem="Zmb-bI-WjK" secondAttribute="trailing" constant="30" id="yRs-XW-gWU"/>
  52. </constraints>
  53. <variation key="default">
  54. <mask key="constraints">
  55. <exclude reference="5lq-gs-zZH"/>
  56. <exclude reference="f8Y-IT-5Vo"/>
  57. <exclude reference="wR7-zz-eVK"/>
  58. <exclude reference="yRs-XW-gWU"/>
  59. </mask>
  60. </variation>
  61. <variation key="heightClass=compact-widthClass=compact">
  62. <mask key="constraints">
  63. <include reference="5lq-gs-zZH"/>
  64. <include reference="yRs-XW-gWU"/>
  65. </mask>
  66. </variation>
  67. <variation key="heightClass=compact-widthClass=regular">
  68. <mask key="constraints">
  69. <include reference="5lq-gs-zZH"/>
  70. <include reference="yRs-XW-gWU"/>
  71. </mask>
  72. </variation>
  73. <variation key="heightClass=regular-widthClass=compact">
  74. <mask key="constraints">
  75. <include reference="f8Y-IT-5Vo"/>
  76. <include reference="wR7-zz-eVK"/>
  77. </mask>
  78. </variation>
  79. <variation key="heightClass=regular-widthClass=regular">
  80. <mask key="constraints">
  81. <include reference="f8Y-IT-5Vo"/>
  82. <include reference="wR7-zz-eVK"/>
  83. </mask>
  84. </variation>
  85. </view>
  86. </subviews>
  87. <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  88. <constraints>
  89. <constraint firstItem="aIR-II-sqh" firstAttribute="leading" secondItem="ZFi-1H-xB4" secondAttribute="leading" id="1yp-i3-hXU"/>
  90. <constraint firstItem="aIR-II-sqh" firstAttribute="width" secondItem="ZFi-1H-xB4" secondAttribute="width" id="3jE-Zo-qAc"/>
  91. <constraint firstItem="fLT-zm-dh6" firstAttribute="bottom" secondItem="2cM-nE-ueF" secondAttribute="bottom" id="9Y0-7J-sXY"/>
  92. <constraint firstItem="2cM-nE-ueF" firstAttribute="leading" secondItem="fLT-zm-dh6" secondAttribute="leading" id="Igd-YW-xgj"/>
  93. <constraint firstItem="aIR-II-sqh" firstAttribute="top" secondItem="ZFi-1H-xB4" secondAttribute="top" id="c6A-tS-Txg"/>
  94. <constraint firstItem="mbh-f5-Pjk" firstAttribute="leading" secondItem="fLT-zm-dh6" secondAttribute="leading" constant="10" id="d8B-Ug-GS1"/>
  95. <constraint firstItem="2cM-nE-ueF" firstAttribute="top" secondItem="fLT-zm-dh6" secondAttribute="top" id="fox-Pf-jXw"/>
  96. <constraint firstItem="aIR-II-sqh" firstAttribute="height" secondItem="ZFi-1H-xB4" secondAttribute="height" id="k6W-n9-nE2"/>
  97. <constraint firstItem="fLT-zm-dh6" firstAttribute="trailing" secondItem="2cM-nE-ueF" secondAttribute="trailing" id="plK-cA-ZV1"/>
  98. <constraint firstItem="mbh-f5-Pjk" firstAttribute="top" secondItem="fLT-zm-dh6" secondAttribute="top" constant="20" id="vud-1w-6K9"/>
  99. </constraints>
  100. <viewLayoutGuide key="safeArea" id="fLT-zm-dh6"/>
  101. </view>
  102. <connections>
  103. <outlet property="backBtn" destination="mbh-f5-Pjk" id="h8n-RN-SL7"/>
  104. <outlet property="controlContanier" destination="2cM-nE-ueF" id="8g4-KY-DMK"/>
  105. <outlet property="previewContainer" destination="aIR-II-sqh" id="Xhl-yB-wfI"/>
  106. <outlet property="takePhotoBtn" destination="Zmb-bI-WjK" id="4ND-ng-dvs"/>
  107. </connections>
  108. </viewController>
  109. <placeholder placeholderIdentifier="IBFirstResponder" id="65S-tr-YKy" userLabel="First Responder" sceneMemberID="firstResponder"/>
  110. </objects>
  111. <point key="canvasLocation" x="-23" y="161"/>
  112. </scene>
  113. <!--Take Photo Preview Controller-->
  114. <scene sceneID="Y0T-nH-52O">
  115. <objects>
  116. <viewController storyboardIdentifier="RATakePhotoPreviewController" automaticallyAdjustsScrollViewInsets="NO" useStoryboardIdentifierAsRestorationIdentifier="YES" id="hfm-f2-DNT" customClass="RATakePhotoPreviewController" sceneMemberID="viewController">
  117. <layoutGuides>
  118. <viewControllerLayoutGuide type="top" id="JtE-cJ-OW0"/>
  119. <viewControllerLayoutGuide type="bottom" id="1aO-Vd-AQh"/>
  120. </layoutGuides>
  121. <view key="view" contentMode="scaleToFill" id="khP-jm-wId">
  122. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  123. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  124. <subviews>
  125. <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" maximumZoomScale="4" translatesAutoresizingMaskIntoConstraints="NO" id="w4v-z1-b7B">
  126. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  127. <subviews>
  128. <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z0q-fB-hKK">
  129. <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
  130. </imageView>
  131. </subviews>
  132. <constraints>
  133. <constraint firstAttribute="trailing" secondItem="Z0q-fB-hKK" secondAttribute="trailing" id="1DV-S9-kNZ"/>
  134. <constraint firstItem="Z0q-fB-hKK" firstAttribute="leading" secondItem="w4v-z1-b7B" secondAttribute="leading" id="3vl-RG-C7S"/>
  135. <constraint firstItem="Z0q-fB-hKK" firstAttribute="top" secondItem="w4v-z1-b7B" secondAttribute="top" id="U6T-ty-Pya"/>
  136. <constraint firstItem="Z0q-fB-hKK" firstAttribute="height" secondItem="w4v-z1-b7B" secondAttribute="height" id="Vy1-Qy-KOG"/>
  137. <constraint firstAttribute="bottom" secondItem="Z0q-fB-hKK" secondAttribute="bottom" id="iA1-6c-bee"/>
  138. <constraint firstItem="Z0q-fB-hKK" firstAttribute="width" secondItem="w4v-z1-b7B" secondAttribute="width" id="mYI-88-f5w"/>
  139. </constraints>
  140. <connections>
  141. <outlet property="delegate" destination="hfm-f2-DNT" id="0Kg-98-liP"/>
  142. </connections>
  143. </scrollView>
  144. <view hidden="YES" alpha="0.44999998807907099" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WfP-Fk-mo9">
  145. <rect key="frame" x="0.0" y="674" width="414" height="62"/>
  146. <color key="backgroundColor" white="0.33333333329999998" alpha="1" colorSpace="calibratedWhite"/>
  147. <constraints>
  148. <constraint firstAttribute="height" constant="62" id="cnn-ba-VJB"/>
  149. </constraints>
  150. </view>
  151. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XlI-8n-qRu">
  152. <rect key="frame" x="50" y="601" width="60" height="60"/>
  153. <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  154. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  155. <state key="normal" image="btn_photo_retake"/>
  156. <connections>
  157. <action selector="retakeBtnClick:" destination="hfm-f2-DNT" eventType="touchUpInside" id="7eA-Kj-Zq8"/>
  158. </connections>
  159. </button>
  160. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZBU-jX-GTo">
  161. <rect key="frame" x="304" y="601" width="60" height="60"/>
  162. <fontDescription key="fontDescription" type="system" pointSize="15"/>
  163. <state key="normal" image="btn_photo_assign"/>
  164. <connections>
  165. <action selector="usePhotoClick:" destination="hfm-f2-DNT" eventType="touchUpInside" id="3JY-Vk-Gu3"/>
  166. </connections>
  167. </button>
  168. </subviews>
  169. <color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
  170. <constraints>
  171. <constraint firstItem="1aO-Vd-AQh" firstAttribute="top" secondItem="WfP-Fk-mo9" secondAttribute="bottom" id="18i-Al-Ypd"/>
  172. <constraint firstItem="BrA-yF-F9H" firstAttribute="trailing" secondItem="ZBU-jX-GTo" secondAttribute="trailing" constant="50" id="1MK-Io-C0h"/>
  173. <constraint firstItem="1aO-Vd-AQh" firstAttribute="top" secondItem="XlI-8n-qRu" secondAttribute="bottom" constant="75" id="I6O-uF-hVL"/>
  174. <constraint firstItem="XlI-8n-qRu" firstAttribute="leading" secondItem="BrA-yF-F9H" secondAttribute="leading" constant="50" id="M5Y-yj-q9i"/>
  175. <constraint firstItem="WfP-Fk-mo9" firstAttribute="leading" secondItem="khP-jm-wId" secondAttribute="leading" id="MSv-jh-Kws"/>
  176. <constraint firstAttribute="bottom" secondItem="w4v-z1-b7B" secondAttribute="bottom" id="ZV0-ao-dGH"/>
  177. <constraint firstItem="w4v-z1-b7B" firstAttribute="leading" secondItem="khP-jm-wId" secondAttribute="leading" id="eWS-j0-eyB"/>
  178. <constraint firstAttribute="trailing" secondItem="w4v-z1-b7B" secondAttribute="trailing" id="qYR-pg-xfY"/>
  179. <constraint firstItem="ZBU-jX-GTo" firstAttribute="centerY" secondItem="XlI-8n-qRu" secondAttribute="centerY" id="uMc-9T-hZd"/>
  180. <constraint firstItem="w4v-z1-b7B" firstAttribute="top" secondItem="khP-jm-wId" secondAttribute="top" id="vBb-3e-ld9"/>
  181. <constraint firstAttribute="trailing" secondItem="WfP-Fk-mo9" secondAttribute="trailing" id="wKB-RK-2W0"/>
  182. </constraints>
  183. <viewLayoutGuide key="safeArea" id="BrA-yF-F9H"/>
  184. </view>
  185. <nil key="simulatedStatusBarMetrics"/>
  186. <nil key="simulatedTopBarMetrics"/>
  187. <nil key="simulatedBottomBarMetrics"/>
  188. <connections>
  189. <outlet property="previewPhotoView" destination="Z0q-fB-hKK" id="CuC-M7-vFP"/>
  190. <outlet property="previewScroll" destination="w4v-z1-b7B" id="mvQ-nK-wZW"/>
  191. <outlet property="retakeBtn" destination="XlI-8n-qRu" id="Og5-TY-dJU"/>
  192. <outlet property="toolBarView" destination="WfP-Fk-mo9" id="sdI-yW-TCC"/>
  193. <outlet property="usePhotoBtn" destination="ZBU-jX-GTo" id="c0Y-4b-GQ9"/>
  194. </connections>
  195. </viewController>
  196. <placeholder placeholderIdentifier="IBFirstResponder" id="ex0-03-0bJ" userLabel="First Responder" sceneMemberID="firstResponder"/>
  197. </objects>
  198. <point key="canvasLocation" x="2557.5999999999999" y="243.32833583208398"/>
  199. </scene>
  200. </scenes>
  201. <resources>
  202. <image name="btn_photo_assign" width="60" height="60"/>
  203. <image name="btn_photo_retake" width="60" height="60"/>
  204. <image name="btn_return" width="30" height="30"/>
  205. </resources>
  206. </document>