Camera.storyboard 17 KB

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