soknaly

Storyboard XML Sample

Aug 27th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.57 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
  3.     <dependencies>
  4.         <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
  5.     </dependencies>
  6.     <scenes>
  7.         <!--Login View Controller-->
  8.         <scene sceneID="tne-QT-ifu">
  9.             <objects>
  10.                 <viewController storyboardIdentifier="LoginViewController" id="BYZ-38-t0r" customClass="SMLoginViewController" sceneMemberID="viewController">
  11.                     <layoutGuides>
  12.                         <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
  13.                         <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
  14.                     </layoutGuides>
  15.                     <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
  16.                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  17.                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  18.                         <subviews>
  19.                             <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SMLightings Co, Ltd." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zpo-5G-55G">
  20.                                 <rect key="frame" x="203" y="112" width="195" height="26"/>
  21.                                 <fontDescription key="fontDescription" type="system" pointSize="21"/>
  22.                                 <color key="textColor" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  23.                                 <nil key="highlightedColor"/>
  24.                             </label>
  25.                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ndk-9T-M5Y">
  26.                                 <rect key="frame" x="16" y="184" width="568" height="250"/>
  27.                                 <subviews>
  28.                                     <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Username" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="IFE-R7-UYF" customClass="HoshiTextField" customModule="SMLightings" customModuleProvider="target">
  29.                                         <rect key="frame" x="8" y="0.0" width="552" height="60"/>
  30.                                         <constraints>
  31.                                             <constraint firstAttribute="height" constant="60" id="FNx-rC-sLk"/>
  32.                                         </constraints>
  33.                                         <fontDescription key="fontDescription" type="system" pointSize="16"/>
  34.                                         <textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" returnKeyType="next"/>
  35.                                         <userDefinedRuntimeAttributes>
  36.                                             <userDefinedRuntimeAttribute type="color" keyPath="borderInactiveColor">
  37.                                                 <color key="value" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
  38.                                             </userDefinedRuntimeAttribute>
  39.                                             <userDefinedRuntimeAttribute type="color" keyPath="borderActiveColor">
  40.                                                 <color key="value" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  41.                                             </userDefinedRuntimeAttribute>
  42.                                             <userDefinedRuntimeAttribute type="color" keyPath="placeholderColor">
  43.                                                 <color key="value" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  44.                                             </userDefinedRuntimeAttribute>
  45.                                         </userDefinedRuntimeAttributes>
  46.                                     </textField>
  47.                                     <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="S6M-xf-qDu">
  48.                                         <rect key="frame" x="8" y="190" width="552" height="40"/>
  49.                                         <color key="backgroundColor" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  50.                                         <constraints>
  51.                                             <constraint firstAttribute="height" constant="40" id="AuX-Tr-l5U"/>
  52.                                         </constraints>
  53.                                         <state key="normal" title="Sign In">
  54.                                             <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
  55.                                             <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
  56.                                         </state>
  57.                                         <connections>
  58.                                             <action selector="signInButtonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="bny-fT-2Aa"/>
  59.                                         </connections>
  60.                                     </button>
  61.                                     <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Password" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="cl8-U2-E8n" customClass="HoshiTextField" customModule="SMLightings" customModuleProvider="target">
  62.                                         <rect key="frame" x="8" y="100" width="552" height="60"/>
  63.                                         <constraints>
  64.                                             <constraint firstAttribute="height" constant="60" id="0xP-Uk-Rh5"/>
  65.                                         </constraints>
  66.                                         <fontDescription key="fontDescription" type="system" pointSize="14"/>
  67.                                         <textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" returnKeyType="done" secureTextEntry="YES"/>
  68.                                         <userDefinedRuntimeAttributes>
  69.                                             <userDefinedRuntimeAttribute type="color" keyPath="borderInactiveColor">
  70.                                                 <color key="value" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
  71.                                             </userDefinedRuntimeAttribute>
  72.                                             <userDefinedRuntimeAttribute type="color" keyPath="placeholderColor">
  73.                                                 <color key="value" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  74.                                             </userDefinedRuntimeAttribute>
  75.                                             <userDefinedRuntimeAttribute type="color" keyPath="borderActiveColor">
  76.                                                 <color key="value" red="0.074509803920000006" green="0.62352941179999999" blue="0.4039215686" alpha="1" colorSpace="calibratedRGB"/>
  77.                                             </userDefinedRuntimeAttribute>
  78.                                         </userDefinedRuntimeAttributes>
  79.                                     </textField>
  80.                                 </subviews>
  81.                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
  82.                                 <constraints>
  83.                                     <constraint firstItem="cl8-U2-E8n" firstAttribute="top" secondItem="IFE-R7-UYF" secondAttribute="bottom" constant="40" id="13k-4j-FAy"/>
  84.                                     <constraint firstItem="IFE-R7-UYF" firstAttribute="leading" secondItem="ndk-9T-M5Y" secondAttribute="leading" constant="8" id="4uw-5D-qx9"/>
  85.                                     <constraint firstItem="cl8-U2-E8n" firstAttribute="leading" secondItem="ndk-9T-M5Y" secondAttribute="leading" constant="8" id="Fgg-cR-Bmp"/>
  86.                                     <constraint firstAttribute="trailing" secondItem="cl8-U2-E8n" secondAttribute="trailing" constant="8" id="KnN-Ad-UMf"/>
  87.                                     <constraint firstItem="S6M-xf-qDu" firstAttribute="leading" secondItem="ndk-9T-M5Y" secondAttribute="leading" constant="8" id="jYN-d8-vSn"/>
  88.                                     <constraint firstAttribute="trailing" secondItem="IFE-R7-UYF" secondAttribute="trailing" constant="8" id="p9T-Id-osH"/>
  89.                                     <constraint firstItem="IFE-R7-UYF" firstAttribute="top" secondItem="ndk-9T-M5Y" secondAttribute="top" id="vq3-zY-UUg"/>
  90.                                     <constraint firstItem="S6M-xf-qDu" firstAttribute="top" secondItem="cl8-U2-E8n" secondAttribute="bottom" constant="30" id="vy6-3f-vMD"/>
  91.                                     <constraint firstAttribute="height" constant="250" id="xOD-y9-qP6"/>
  92.                                     <constraint firstAttribute="trailing" secondItem="S6M-xf-qDu" secondAttribute="trailing" constant="8" id="yIx-yA-4JB"/>
  93.                                 </constraints>
  94.                             </view>
  95.                         </subviews>
  96.                         <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  97.                         <constraints>
  98.                             <constraint firstAttribute="centerX" secondItem="zpo-5G-55G" secondAttribute="centerX" id="6dk-To-8yL"/>
  99.                             <constraint firstAttribute="trailing" secondItem="ndk-9T-M5Y" secondAttribute="trailing" constant="16" id="LND-oc-gR3"/>
  100.                             <constraint firstItem="ndk-9T-M5Y" firstAttribute="top" secondItem="zpo-5G-55G" secondAttribute="bottom" constant="46" id="ZZf-af-Ldt"/>
  101.                             <constraint firstItem="zpo-5G-55G" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="92" id="tmT-0G-inZ"/>
  102.                             <constraint firstItem="ndk-9T-M5Y" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="16" id="ydX-3g-Cv6"/>
  103.                         </constraints>
  104.                     </view>
  105.                     <connections>
  106.                         <outlet property="controlView" destination="ndk-9T-M5Y" id="fV3-3s-BZT"/>
  107.                         <outlet property="passwordTextField" destination="cl8-U2-E8n" id="MaZ-Jx-K2M"/>
  108.                         <outlet property="signInButton" destination="S6M-xf-qDu" id="uxI-wW-3JV"/>
  109.                         <outlet property="usernameTextField" destination="IFE-R7-UYF" id="pYF-Yy-FLu"/>
  110.                     </connections>
  111.                 </viewController>
  112.                 <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
  113.             </objects>
  114.             <point key="canvasLocation" x="605" y="454"/>
  115.         </scene>
  116.         <!--Products-->
  117.         <scene sceneID="FfE-lN-9Vi">
  118.             <objects>
  119.                 <viewController storyboardIdentifier="MainViewController" id="kJ4-oT-WfB" customClass="SMMainViewController" sceneMemberID="viewController">
  120.                     <layoutGuides>
  121.                         <viewControllerLayoutGuide type="top" id="pXy-8d-69R"/>
  122.                         <viewControllerLayoutGuide type="bottom" id="9AJ-yO-yZ4"/>
  123.                     </layoutGuides>
  124.                     <view key="view" contentMode="scaleToFill" id="WOY-i4-ShU">
  125.                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  126.                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  127.                         <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
  128.                     </view>
  129.                     <navigationItem key="navigationItem" title="Products" id="oK3-2x-DPX">
  130.                         <barButtonItem key="leftBarButtonItem" image="menu" id="gVY-cd-s8t"/>
  131.                     </navigationItem>
  132.                 </viewController>
  133.                 <placeholder placeholderIdentifier="IBFirstResponder" id="ljv-tq-xkH" userLabel="First Responder" sceneMemberID="firstResponder"/>
  134.             </objects>
  135.             <point key="canvasLocation" x="1908" y="454"/>
  136.         </scene>
  137.         <!--View Controller-->
  138.         <scene sceneID="39c-w4-Qe3">
  139.             <objects>
  140.                 <viewController storyboardIdentifier="SMViewController" id="mp1-gd-4cR" customClass="SMSMViewController" sceneMemberID="viewController">
  141.                     <layoutGuides>
  142.                         <viewControllerLayoutGuide type="top" id="0Mu-fV-zfd"/>
  143.                         <viewControllerLayoutGuide type="bottom" id="zbP-8s-h8Y"/>
  144.                     </layoutGuides>
  145.                     <view key="view" contentMode="scaleToFill" id="t2O-1U-KyR">
  146.                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  147.                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  148.                         <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
  149.                     </view>
  150.                 </viewController>
  151.                 <placeholder placeholderIdentifier="IBFirstResponder" id="5q4-Wk-GbI" userLabel="First Responder" sceneMemberID="firstResponder"/>
  152.             </objects>
  153.             <point key="canvasLocation" x="2528" y="456"/>
  154.         </scene>
  155.         <!--Lightings View Controller-->
  156.         <scene sceneID="sGu-d7-i5E">
  157.             <objects>
  158.                 <viewController storyboardIdentifier="SMLightingsViewController" id="XEd-gx-KPO" customClass="SMSMLightingsViewController" sceneMemberID="viewController">
  159.                     <layoutGuides>
  160.                         <viewControllerLayoutGuide type="top" id="wkh-bJ-3gi"/>
  161.                         <viewControllerLayoutGuide type="bottom" id="Fp3-LR-2jD"/>
  162.                     </layoutGuides>
  163.                     <view key="view" contentMode="scaleToFill" id="t77-ha-wmx">
  164.                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  165.                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  166.                         <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
  167.                     </view>
  168.                 </viewController>
  169.                 <placeholder placeholderIdentifier="IBFirstResponder" id="Hw7-aF-iXV" userLabel="First Responder" sceneMemberID="firstResponder"/>
  170.             </objects>
  171.             <point key="canvasLocation" x="3136" y="453"/>
  172.         </scene>
  173.         <!--Navigation Controller-->
  174.         <scene sceneID="duD-kW-DRu">
  175.             <objects>
  176.                 <navigationController automaticallyAdjustsScrollViewInsets="NO" id="wP4-ca-fGc" sceneMemberID="viewController">
  177.                     <toolbarItems/>
  178.                     <navigationBar key="navigationBar" contentMode="scaleToFill" id="r0U-z3-SZl">
  179.                         <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
  180.                         <autoresizingMask key="autoresizingMask"/>
  181.                     </navigationBar>
  182.                     <nil name="viewControllers"/>
  183.                     <connections>
  184.                         <segue destination="kJ4-oT-WfB" kind="relationship" relationship="rootViewController" id="4R7-n5-fa8"/>
  185.                     </connections>
  186.                 </navigationController>
  187.                 <placeholder placeholderIdentifier="IBFirstResponder" id="zOX-Nk-XsQ" userLabel="First Responder" sceneMemberID="firstResponder"/>
  188.             </objects>
  189.             <point key="canvasLocation" x="1257" y="454"/>
  190.         </scene>
  191.     </scenes>
  192.     <resources>
  193.         <image name="menu" width="18" height="12"/>
  194.     </resources>
  195. </document>
Advertisement
Add Comment
Please, Sign In to add comment