-
-
Save sakiyamaK/1a305b0b38d3292ddd257144c675ef4f to your computer and use it in GitHub Desktop.
脱初心者を目指すAutolayoutの制約の貼り方のサンプル01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="CX1-F4-84I"> | |
<device id="retina6_1" orientation="portrait" appearance="light"/> | |
<dependencies> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/> | |
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | |
<capability name="System colors in document resources" minToolsVersion="11.0"/> | |
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
</dependencies> | |
<scenes> | |
<!--01--> | |
<scene sceneID="vwB-Wv-L0H"> | |
<objects> | |
<viewController title="01" id="CX1-F4-84I" sceneMemberID="viewController"> | |
<view key="view" contentMode="scaleToFill" id="8gQ-Jk-A3Q"> | |
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> | |
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
<subviews> | |
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aiv-9m-Yh4"> | |
<rect key="frame" x="0.0" y="44" width="414" height="818"/> | |
<subviews> | |
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7vc-VO-bbH" userLabel="ContentsView"> | |
<rect key="frame" x="0.0" y="0.0" width="414" height="1636"/> | |
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | |
</view> | |
</subviews> | |
<constraints> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="trailing" secondItem="npv-Tp-wGA" secondAttribute="trailing" id="L1G-As-H8v"/> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="top" secondItem="npv-Tp-wGA" secondAttribute="top" id="QBA-hs-Soc"/> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="bottom" secondItem="npv-Tp-wGA" secondAttribute="bottom" id="TJG-qQ-vrp"/> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="height" secondItem="StM-Ea-jaY" secondAttribute="height" multiplier="2" id="jRG-q4-0zM"/> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="leading" secondItem="npv-Tp-wGA" secondAttribute="leading" id="pPM-cS-A4c"/> | |
<constraint firstItem="7vc-VO-bbH" firstAttribute="width" secondItem="StM-Ea-jaY" secondAttribute="width" id="wb3-h0-lhi"/> | |
</constraints> | |
<viewLayoutGuide key="contentLayoutGuide" id="npv-Tp-wGA"/> | |
<viewLayoutGuide key="frameLayoutGuide" id="StM-Ea-jaY"/> | |
</scrollView> | |
</subviews> | |
<viewLayoutGuide key="safeArea" id="jau-kp-m6a"/> | |
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | |
<constraints> | |
<constraint firstItem="aiv-9m-Yh4" firstAttribute="top" secondItem="jau-kp-m6a" secondAttribute="top" id="0y5-Nc-UcD"/> | |
<constraint firstItem="aiv-9m-Yh4" firstAttribute="leading" secondItem="jau-kp-m6a" secondAttribute="leading" id="gJE-UO-pe2"/> | |
<constraint firstItem="aiv-9m-Yh4" firstAttribute="trailing" secondItem="jau-kp-m6a" secondAttribute="trailing" id="lKF-9E-2Z0"/> | |
<constraint firstItem="aiv-9m-Yh4" firstAttribute="bottom" secondItem="jau-kp-m6a" secondAttribute="bottom" id="y9G-Lt-LD2"/> | |
</constraints> | |
</view> | |
</viewController> | |
<placeholder placeholderIdentifier="IBFirstResponder" id="iZs-dE-gn9" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/> | |
</objects> | |
<point key="canvasLocation" x="-1687" y="-627"/> | |
</scene> | |
</scenes> | |
<resources> | |
<systemColor name="systemBackgroundColor"> | |
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | |
</systemColor> | |
</resources> | |
</document> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment