Skip to content

Instantly share code, notes, and snippets.

@yellowskywing
Last active December 16, 2015 17:42
Show Gist options
  • Save yellowskywing/dde4efe202c0909ebe30 to your computer and use it in GitHub Desktop.
Save yellowskywing/dde4efe202c0909ebe30 to your computer and use it in GitHub Desktop.
S001582000 autolayout
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7Dg-Sj-rVp">
<rect key="frame" x="393" y="50" width="187" height="281"/>
<color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" secondItem="7Dg-Sj-rVp" secondAttribute="width" multiplier="3:2" id="lR1-dg-Yk5"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="7Dg-Sj-rVp" firstAttribute="width" secondItem="kh9-bI-dsS" secondAttribute="width" multiplier="5:16" id="HMQ-jx-bFf"/>
<constraint firstAttribute="trailing" secondItem="7Dg-Sj-rVp" secondAttribute="trailing" constant="20" id="Mg8-BK-hfX"/>
<constraint firstItem="7Dg-Sj-rVp" firstAttribute="top" secondItem="kh9-bI-dsS" secondAttribute="top" constant="50" id="ctB-iG-J4z"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="291" y="367"/>
</scene>
</scenes>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment