Create a gist now

Instantly share code, notes, and snippets.

What Xib files look like in XCode 5
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4471.1" systemVersion="12E55" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment defaultVersion="1552" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3697.3"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="1">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3">
<rect key="frame" x="0.0" y="0.0" width="320" height="300"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="19" userLabel="Left Button">
<rect key="frame" x="20" y="48" width="73" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.90980392160000001" green="0.90980392160000001" blue="0.90980392160000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="73" id="77"/>
<constraint firstAttribute="height" constant="44" id="87"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<state key="normal" title="Left">
<color key="titleColor" red="0.37254901959999998" green="0.37254901959999998" blue="0.37254901959999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<state key="highlighted">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="24" userLabel="Middle Button">
<rect key="frame" x="123" y="48" width="73" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.90980392160000001" green="0.90980392160000001" blue="0.90980392160000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="73" id="80"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<state key="normal" title="Center">
<color key="titleColor" red="0.37254901959999998" green="0.37254901959999998" blue="0.37254901959999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<state key="highlighted">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="29" userLabel="Right Button">
<rect key="frame" x="227" y="48" width="73" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.90980392160000001" green="0.90980392160000001" blue="0.90980392160000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="73" id="86"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<state key="normal" title="Right">
<color key="titleColor" red="0.37254901959999998" green="0.37254901959999998" blue="0.37254901959999998" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<state key="highlighted">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="34">
<rect key="frame" x="144" y="20" width="32" height="20"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<activityIndicatorView opaque="NO" contentMode="scaleToFill" style="gray" translatesAutoresizingMaskIntoConstraints="NO" id="50">
<rect key="frame" x="150" y="100" width="20" height="20"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</activityIndicatorView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="54" userLabel="Container">
<rect key="frame" x="80" y="128" width="160" height="140"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="140" id="55"/>
<constraint firstAttribute="width" constant="160" id="56"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.91764705879999997" green="0.34509803919999998" blue="0.35686274509999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="19" firstAttribute="leading" secondItem="3" secondAttribute="leading" constant="20" symbolic="YES" id="21"/>
<constraint firstItem="29" firstAttribute="leading" secondItem="3" secondAttribute="leading" constant="227" id="30"/>
<constraint firstAttribute="trailing" secondItem="29" secondAttribute="trailing" constant="20" symbolic="YES" id="33"/>
<constraint firstItem="34" firstAttribute="centerX" secondItem="24" secondAttribute="centerX" id="38"/>
<constraint firstItem="34" firstAttribute="top" secondItem="3" secondAttribute="top" constant="20" symbolic="YES" id="46"/>
<constraint firstItem="24" firstAttribute="top" secondItem="34" secondAttribute="bottom" constant="8" symbolic="YES" id="48"/>
<constraint firstItem="50" firstAttribute="top" secondItem="24" secondAttribute="bottom" constant="8" symbolic="YES" id="51"/>
<constraint firstItem="50" firstAttribute="centerX" secondItem="24" secondAttribute="centerX" id="53"/>
<constraint firstItem="54" firstAttribute="centerX" secondItem="3" secondAttribute="centerX" id="57"/>
<constraint firstItem="54" firstAttribute="centerX" secondItem="50" secondAttribute="centerX" id="60"/>
<constraint firstItem="54" firstAttribute="top" secondItem="50" secondAttribute="bottom" constant="8" symbolic="YES" id="76"/>
<constraint firstItem="19" firstAttribute="bottom" secondItem="24" secondAttribute="bottom" id="78"/>
<constraint firstAttribute="bottom" secondItem="54" secondAttribute="bottom" constant="11" id="81"/>
<constraint firstItem="29" firstAttribute="bottom" secondItem="24" secondAttribute="bottom" id="82"/>
<constraint firstItem="19" firstAttribute="top" secondItem="24" secondAttribute="top" id="83"/>
<constraint firstItem="24" firstAttribute="top" secondItem="29" secondAttribute="top" id="91"/>
</constraints>
</scrollView>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="This is a text view and here is its content." translatesAutoresizingMaskIntoConstraints="NO" id="9">
<rect key="frame" x="0.0" y="300" width="320" height="268"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="268" id="18"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="3" firstAttribute="trailing" secondItem="1" secondAttribute="trailing" id="5"/>
<constraint firstItem="3" firstAttribute="top" secondItem="1" secondAttribute="top" id="6"/>
<constraint firstItem="3" firstAttribute="leading" secondItem="1" secondAttribute="leading" id="7"/>
<constraint firstAttribute="bottom" secondItem="3" secondAttribute="bottom" constant="268" id="8"/>
<constraint firstItem="9" firstAttribute="leading" secondItem="1" secondAttribute="leading" id="14"/>
<constraint firstItem="9" firstAttribute="bottom" secondItem="1" secondAttribute="bottom" id="15"/>
<constraint firstItem="9" firstAttribute="trailing" secondItem="1" secondAttribute="trailing" id="17"/>
</constraints>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</view>
</objects>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment