Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created December 11, 2013 22:33
Show Gist options
  • Save pbrewczynski/7919727 to your computer and use it in GitHub Desktop.
Save pbrewczynski/7919727 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="pCX-2V-Cdw">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<scenes>
<!--Card Game View Controller-->
<scene sceneID="RGL-OG-MdP">
<objects>
<viewController id="pCX-2V-Cdw" customClass="CardGameViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Da4-Kp-MVE"/>
<viewControllerLayoutGuide type="bottom" id="0eb-89-tLq"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="O6O-cd-V2q">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="plr-Y2-x08">
<rect key="frame" x="8" y="20" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="Beo-W4-ht2"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3jI-ru-ElA">
<rect key="frame" x="86" y="20" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="sal-vs-Qem"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2mP-XP-BBZ">
<rect key="frame" x="164" y="20" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="MXM-oT-1Vb"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="c02-G7-QHQ">
<rect key="frame" x="242" y="20" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="Hlw-O3-pTb"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="PPd-Ga-xUL">
<rect key="frame" x="8" y="136" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="C75-yo-jtM"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="a62-cg-0HZ">
<rect key="frame" x="86" y="136" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="7cP-Um-KFi"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bSg-G4-6RD">
<rect key="frame" x="164" y="136" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="kyF-WY-quJ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="13V-q8-oy0">
<rect key="frame" x="242" y="136" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="Vek-3i-7cL"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uo7-bE-Bet">
<rect key="frame" x="8" y="252" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="LY5-Dt-vhb"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ePu-ZP-jRg">
<rect key="frame" x="86" y="252" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="Ipi-x7-dTS"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ddx-Nx-dRU">
<rect key="frame" x="164" y="252" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="x8W-39-aey"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lrb-gU-z5D">
<!-- Here ID of button is id="lrb-gU-z5D" the same as outletCollection -->
<rect key="frame" x="242" y="252" width="70" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="46"/>
<state key="normal" backgroundImage="CardBackLogo">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="cardTouched:" destination="pCX-2V-Cdw" eventType="touchUpInside" id="8dY-2n-1md"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.0" green="0.50196081400000003" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
</view>
<connections>
<!-- the order is defined by order of those outletCollection elements
CHANGES IN ORDER HERE WILL BE REFLECTED IN CHANGES IN cardsButtons OutleCollection which is just NSArray !-->
<outletCollection property="cardsButtons" destination="3jI-ru-ElA" id="imv-Nh-KxG"/>
<outletCollection property="cardsButtons" destination="plr-Y2-x08" id="h4I-9N-sqP"/>
<outletCollection property="cardsButtons" destination="2mP-XP-BBZ" id="v8d-Xj-j7h"/>
<outletCollection property="cardsButtons" destination="c02-G7-QHQ" id="h4K-O1-0CG"/>
<outletCollection property="cardsButtons" destination="PPd-Ga-xUL" id="ZGZ-Ap-AP1"/>
<outletCollection property="cardsButtons" destination="a62-cg-0HZ" id="5Bs-vG-rEW"/>
<outletCollection property="cardsButtons" destination="bSg-G4-6RD" id="cQ8-Tn-K4P"/>
<outletCollection property="cardsButtons" destination="13V-q8-oy0" id="Pue-rt-rkM"/>
<outletCollection property="cardsButtons" destination="uo7-bE-Bet" id="ZUN-wR-jqo"/>
<outletCollection property="cardsButtons" destination="ePu-ZP-jRg" id="4Iv-Af-JRa"/>
<outletCollection property="cardsButtons" destination="Ddx-Nx-dRU" id="Aj9-O6-59m"/>
<outletCollection property="cardsButtons" destination="lrb-gU-z5D" id="jrH-aO-ZZQ"/>
<!-- You can identify them by the destination parameter which point to the id of view. SEE destination="lrb-gU-z5D" LOOK AT TOP -->
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Jz3-Zw-Spl" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="392" y="62"/>
</scene>
</scenes>
<resources>
<image name="CardBackLogo" width="150" height="230"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment