-
-
Save sakiyamaK/482ab90295b0bb2b7d93aa7fed02566f to your computer and use it in GitHub Desktop.
脱初心者を目指すAutolayoutの制約の貼り方のサンプル02
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="9uY-Wo-bSy"> | |
<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> | |
<!--Sample02--> | |
<scene sceneID="wyx-11-wwm"> | |
<objects> | |
<viewController title="Sample02" id="9uY-Wo-bSy" sceneMemberID="viewController"> | |
<view key="view" contentMode="scaleToFill" id="fdv-CM-113"> | |
<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="Srm-ge-5UY"> | |
<rect key="frame" x="0.0" y="44" width="414" height="818"/> | |
<subviews> | |
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DyT-bk-qlO" userLabel="ContentsView"> | |
<rect key="frame" x="0.0" y="0.0" width="414" height="1636"/> | |
<subviews> | |
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fdM-rn-ym2" userLabel="RedView"> | |
<rect key="frame" x="41.5" y="359" width="331" height="100"/> | |
<color key="backgroundColor" systemColor="systemPinkColor"/> | |
<constraints> | |
<constraint firstAttribute="height" constant="100" id="OAd-xE-Tlc"/> | |
</constraints> | |
</view> | |
</subviews> | |
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | |
<constraints> | |
<constraint firstItem="fdM-rn-ym2" firstAttribute="centerX" secondItem="DyT-bk-qlO" secondAttribute="centerX" id="1Yn-lj-d5e"/> | |
<constraint firstItem="fdM-rn-ym2" firstAttribute="width" secondItem="DyT-bk-qlO" secondAttribute="width" multiplier="0.8" id="9F6-N6-qku"/> | |
<constraint firstItem="fdM-rn-ym2" firstAttribute="centerY" secondItem="DyT-bk-qlO" secondAttribute="centerY" multiplier="0.5" id="vRv-kJ-3xX"/> | |
</constraints> | |
</view> | |
</subviews> | |
<constraints> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="width" secondItem="e4w-al-Xqw" secondAttribute="width" id="bwf-AS-qGx"/> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="bottom" secondItem="nEq-vV-VhB" secondAttribute="bottom" id="cv1-oh-aox"/> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="height" secondItem="e4w-al-Xqw" secondAttribute="height" multiplier="2" id="prb-kM-Qgc"/> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="top" secondItem="nEq-vV-VhB" secondAttribute="top" id="xjT-pp-kOg"/> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="trailing" secondItem="nEq-vV-VhB" secondAttribute="trailing" id="ysO-7j-V1R"/> | |
<constraint firstItem="DyT-bk-qlO" firstAttribute="leading" secondItem="nEq-vV-VhB" secondAttribute="leading" id="zEP-GV-gWj"/> | |
</constraints> | |
<viewLayoutGuide key="contentLayoutGuide" id="nEq-vV-VhB"/> | |
<viewLayoutGuide key="frameLayoutGuide" id="e4w-al-Xqw"/> | |
</scrollView> | |
</subviews> | |
<viewLayoutGuide key="safeArea" id="Tld-0b-hPd"/> | |
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | |
<constraints> | |
<constraint firstItem="Srm-ge-5UY" firstAttribute="trailing" secondItem="Tld-0b-hPd" secondAttribute="trailing" id="B5p-U0-2d2"/> | |
<constraint firstItem="Srm-ge-5UY" firstAttribute="leading" secondItem="Tld-0b-hPd" secondAttribute="leading" id="W3v-xV-iko"/> | |
<constraint firstItem="Srm-ge-5UY" firstAttribute="bottom" secondItem="Tld-0b-hPd" secondAttribute="bottom" id="WlD-qe-awd"/> | |
<constraint firstItem="Srm-ge-5UY" firstAttribute="top" secondItem="Tld-0b-hPd" secondAttribute="top" id="ylB-Kt-uhl"/> | |
</constraints> | |
</view> | |
</viewController> | |
<placeholder placeholderIdentifier="IBFirstResponder" id="RmE-1U-JQH" 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> | |
<systemColor name="systemPinkColor"> | |
<color red="1" green="0.17647058823529413" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
</systemColor> | |
</resources> | |
</document> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment