Jelajahi Sumber

1.新增Cam Scan IPhone视图。

Pen Li 9 tahun lalu
induk
melakukan
7af587c071
1 mengubah file dengan 131 tambahan dan 3 penghapusan
  1. 131 3
      common/cam_scan.storyboard

+ 131 - 3
common/cam_scan.storyboard

@@ -1,10 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="ipad9_7" orientation="portrait">
         <adaptation id="fullscreen"/>
     </device>
     <dependencies>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <scenes>
@@ -61,7 +62,134 @@
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="hQT-6P-tva" userLabel="First Responder" sceneMemberID="firstResponder"/>
             </objects>
-            <point key="canvasLocation" x="2844" y="-4325"/>
+            <point key="canvasLocation" x="2777" y="-4303"/>
+        </scene>
+        <!--Scanner View Controller-->
+        <scene sceneID="SH4-Uh-XKh">
+            <objects>
+                <viewController storyboardIdentifier="NewScannerViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="tcU-ug-x8T" customClass="ScannerViewController" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="vJh-sb-kj6"/>
+                        <viewControllerLayoutGuide type="bottom" id="8tU-AM-64o"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="Jbd-IF-zOk">
+                        <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ym0-7Q-YSA" customClass="ScannerControllerView">
+                                <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
+                                <subviews>
+                                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pick_bg" translatesAutoresizingMaskIntoConstraints="NO" id="AWN-OI-m1R">
+                                        <rect key="frame" x="284" y="412" width="200" height="200"/>
+                                        <color key="backgroundColor" red="0.064155410240000002" green="1" blue="0.59383154270000005" alpha="1" colorSpace="calibratedRGB"/>
+                                        <constraints>
+                                            <constraint firstAttribute="height" constant="200" id="38l-YS-3Mf"/>
+                                            <constraint firstAttribute="width" constant="200" id="J44-fN-4A7"/>
+                                        </constraints>
+                                    </imageView>
+                                    <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="wordWrap" translatesAutoresizingMaskIntoConstraints="NO" id="V66-PS-hiP" userLabel="Button scan">
+                                        <rect key="frame" x="668" y="924" width="80" height="80"/>
+                                        <color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <constraints>
+                                            <constraint firstAttribute="width" constant="80" id="NqQ-6g-9PW"/>
+                                            <constraint firstAttribute="height" constant="80" id="bJd-iL-CJN"/>
+                                        </constraints>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <state key="normal">
+                                            <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                            <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        </state>
+                                        <userDefinedRuntimeAttributes>
+                                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
+                                                <integer key="value" value="40"/>
+                                            </userDefinedRuntimeAttribute>
+                                        </userDefinedRuntimeAttributes>
+                                        <connections>
+                                            <action selector="ScanButtonClick:" destination="kVd-Bz-inR" eventType="touchUpInside" id="pnM-dE-N0i"/>
+                                        </connections>
+                                    </button>
+                                </subviews>
+                                <color key="backgroundColor" red="0.25435081980000002" green="0.75957768849999996" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                <constraints>
+                                    <constraint firstAttribute="trailing" secondItem="V66-PS-hiP" secondAttribute="trailing" constant="20" id="aGy-Ut-mhz"/>
+                                    <constraint firstItem="AWN-OI-m1R" firstAttribute="centerX" secondItem="ym0-7Q-YSA" secondAttribute="centerX" id="dnB-Xj-nye"/>
+                                    <constraint firstItem="AWN-OI-m1R" firstAttribute="centerY" secondItem="ym0-7Q-YSA" secondAttribute="centerY" id="ijX-CV-tZ4"/>
+                                    <constraint firstAttribute="bottom" secondItem="V66-PS-hiP" secondAttribute="bottom" constant="20" id="rm6-2h-eOb"/>
+                                </constraints>
+                            </view>
+                        </subviews>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                        <constraints>
+                            <constraint firstItem="ym0-7Q-YSA" firstAttribute="height" secondItem="Jbd-IF-zOk" secondAttribute="height" id="7Za-Ed-bwH"/>
+                            <constraint firstItem="ym0-7Q-YSA" firstAttribute="centerY" secondItem="Jbd-IF-zOk" secondAttribute="centerY" id="F9k-u4-ag8"/>
+                            <constraint firstItem="ym0-7Q-YSA" firstAttribute="centerX" secondItem="Jbd-IF-zOk" secondAttribute="centerX" id="n7A-j9-HUz"/>
+                            <constraint firstItem="ym0-7Q-YSA" firstAttribute="width" secondItem="Jbd-IF-zOk" secondAttribute="width" id="znP-vL-ANH"/>
+                        </constraints>
+                    </view>
+                    <connections>
+                        <outlet property="backgroundView" destination="ym0-7Q-YSA" id="8hJ-Zg-WKK"/>
+                        <outlet property="focusZone" destination="AWN-OI-m1R" id="IaT-gr-33p"/>
+                        <outlet property="scanButton" destination="V66-PS-hiP" id="8db-eA-TEF"/>
+                    </connections>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="Xqj-1h-Bmj" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="3545.3125" y="-4286.71875"/>
+        </scene>
+        <!--ScannerViewController-->
+        <scene sceneID="ZZQ-hs-Ddc">
+            <objects>
+                <viewController storyboardIdentifier="ScannerViewController_iphone" title="ScannerViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="W5h-sy-voL" customClass="ScannerViewController" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="GXm-rU-QLH"/>
+                        <viewControllerLayoutGuide type="bottom" id="zUX-g0-Hkz"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="eYG-aJ-mn9">
+                        <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                        <subviews>
+                            <view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eLP-bM-zQa" customClass="ScannerControllerView">
+                                <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                <subviews>
+                                    <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="wordWrap" translatesAutoresizingMaskIntoConstraints="NO" id="ZFh-Hp-cqD" userLabel="Button scan">
+                                        <rect key="frame" x="613" y="694" width="108" height="108"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
+                                        <color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <state key="normal">
+                                            <color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                            <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                        </state>
+                                        <userDefinedRuntimeAttributes>
+                                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
+                                                <integer key="value" value="54"/>
+                                            </userDefinedRuntimeAttribute>
+                                        </userDefinedRuntimeAttributes>
+                                        <connections>
+                                            <action selector="ScanButtonClick:" destination="W5h-sy-voL" eventType="touchUpInside" id="Wtj-5g-isM"/>
+                                        </connections>
+                                    </button>
+                                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="pick_bg" translatesAutoresizingMaskIntoConstraints="NO" id="oc0-9C-Kwa">
+                                        <rect key="frame" x="134" y="362" width="500" height="300"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
+                                    </imageView>
+                                </subviews>
+                                <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
+                            </view>
+                        </subviews>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    </view>
+                    <navigationItem key="navigationItem" title="Scanner" id="5ze-4v-lO2"/>
+                    <connections>
+                        <outlet property="backgroundView" destination="eLP-bM-zQa" id="sXn-0Z-dFl"/>
+                        <outlet property="focusZone" destination="oc0-9C-Kwa" id="n3h-0p-HCr"/>
+                        <outlet property="scanButton" destination="ZFh-Hp-cqD" id="WD0-SO-tvT"/>
+                    </connections>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="XcQ-aO-Vmu" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="4319" y="-4286"/>
         </scene>
     </scenes>
     <resources>