secminhr 65582f0842 Use MVVM style
Finish login part
2018-07-06 23:01:43 +08:00

143 lines
13 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="rri-3c-Ev2">
<device id="retina5_5" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene sceneID="iks-VI-BDd">
<objects>
<navigationController id="rri-3c-Ev2" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translucent="NO" id="xZn-kE-rxp">
<rect key="frame" x="0.0" y="20" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" red="0.80784313725490198" green="0.77254901960784317" blue="0.86274509803921573" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="barTintColor" red="0.80784313725490198" green="0.77254901960784317" blue="0.86274509803921573" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</navigationBar>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="B3Z-yC-lfb"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wXr-SM-2lL" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1105" y="-12"/>
</scene>
<!--夢駝林-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="LoginViewController" customModule="StudyCK" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="672"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="帳號" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="H2y-Q3-tQ8">
<rect key="frame" x="77.666666666666686" y="237" width="259" height="30"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="259" id="AI2-08-G3u"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" returnKeyType="next" enablesReturnKeyAutomatically="YES" textContentType="username"/>
<connections>
<action selector="loginFieldChanged:" destination="BYZ-38-t0r" eventType="editingChanged" id="gty-uy-om3"/>
</connections>
</textField>
<textField opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="密碼" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="ycA-mV-AIB">
<rect key="frame" x="77.666666666666686" y="267" width="259" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="259" id="iC3-zF-5UN"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" returnKeyType="go" enablesReturnKeyAutomatically="YES" secureTextEntry="YES" textContentType="password"/>
<connections>
<action selector="loginFieldChanged:" destination="BYZ-38-t0r" eventType="editingChanged" id="tq6-Sn-dby"/>
</connections>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="請先登入" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vsn-x8-d9a">
<rect key="frame" x="172" y="143" width="70" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gsp-Sh-Qg6">
<rect key="frame" x="77.666666666666686" y="307" width="259" height="30"/>
<color key="backgroundColor" red="0.49437394281736569" green="0.47342670436823042" blue="0.52517083768786699" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="259" id="G3f-KU-PO4"/>
</constraints>
<fontDescription key="fontDescription" name="HelveticaNeue-Bold" family="Helvetica Neue" pointSize="15"/>
<state key="normal" title="登入">
<color key="titleColor" red="0.99999600649999998" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="loginButtonClicked" destination="BYZ-38-t0r" eventType="touchUpInside" id="LEo-KG-oIl"/>
</connections>
</button>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="white" translatesAutoresizingMaskIntoConstraints="NO" id="yGw-0D-gkU">
<rect key="frame" x="233.66666666666666" y="312" width="20" height="20"/>
</activityIndicatorView>
</subviews>
<color key="backgroundColor" red="0.80784313725490198" green="0.77254901960784317" blue="0.85882352941176465" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="gsp-Sh-Qg6" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="4Z6-Fp-jZS"/>
<constraint firstItem="Vsn-x8-d9a" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="143" id="ELK-wz-bun"/>
<constraint firstItem="ycA-mV-AIB" firstAttribute="top" secondItem="H2y-Q3-tQ8" secondAttribute="bottom" id="Ee6-Ta-j4e"/>
<constraint firstItem="H2y-Q3-tQ8" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="IvQ-qe-CWj"/>
<constraint firstItem="ycA-mV-AIB" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="Lsk-5u-Oil"/>
<constraint firstItem="yGw-0D-gkU" firstAttribute="centerY" secondItem="gsp-Sh-Qg6" secondAttribute="centerY" id="M2L-J8-hDh"/>
<constraint firstItem="gsp-Sh-Qg6" firstAttribute="top" secondItem="ycA-mV-AIB" secondAttribute="bottom" constant="10" id="fGg-NJ-h7T"/>
<constraint firstItem="Vsn-x8-d9a" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="sbc-Eu-vXL"/>
<constraint firstItem="yGw-0D-gkU" firstAttribute="leading" secondItem="gsp-Sh-Qg6" secondAttribute="trailing" constant="-103" id="spG-Ph-lfm"/>
<constraint firstItem="H2y-Q3-tQ8" firstAttribute="top" secondItem="Vsn-x8-d9a" secondAttribute="bottom" constant="73" id="xeu-BM-Cge"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<navigationItem key="navigationItem" title="夢駝林" id="FiP-ub-A86"/>
<connections>
<outlet property="loginIndicator" destination="yGw-0D-gkU" id="DIp-iA-grp"/>
<segue destination="2Lr-EI-56s" kind="show" id="Ym1-E9-RDg"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-362.39999999999998" y="-12.561576354679804"/>
</scene>
<!--Table View Controller-->
<scene sceneID="O1P-xZ-ktC">
<objects>
<tableViewController id="2Lr-EI-56s" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="DAj-3H-Ix0">
<rect key="frame" x="0.0" y="0.0" width="414" height="672"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="vxr-wL-rAf">
<rect key="frame" x="0.0" y="28" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="vxr-wL-rAf" id="TFk-cM-I0Q">
<rect key="frame" x="0.0" y="0.0" width="414" height="43.666666666666664"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="2Lr-EI-56s" id="SQM-kS-chI"/>
<outlet property="delegate" destination="2Lr-EI-56s" id="8Lj-ab-PiK"/>
</connections>
</tableView>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4bz-Gh-OxZ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="444" y="-11"/>
</scene>
</scenes>
</document>