-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMain.storyboard
More file actions
161 lines (161 loc) · 12.8 KB
/
Main.storyboard
File metadata and controls
161 lines (161 loc) · 12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5053" systemVersion="13C64" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="INF-sx-8CY">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<scenes>
<!--Master View Controller-->
<scene sceneID="3xf-CV-b2Z">
<objects>
<collectionViewController storyboardIdentifier="Master View Controller" autoresizesArchivedViewToFullSize="NO" id="UH6-2k-Soh" customClass="CGTAMasterViewController" sceneMemberID="viewController">
<collectionView key="view" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" minimumZoomScale="0.0" maximumZoomScale="0.0" dataMode="prototypes" id="Ckj-MB-u4F">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="0.0" minimumInteritemSpacing="0.0" id="A42-Go-8PB">
<size key="itemSize" width="160" height="160"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="Image Cell" id="mZg-o6-U32" customClass="CGTAFlagCollectionViewCell">
<rect key="frame" x="0.0" y="64" width="160" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="160" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="USA" translatesAutoresizingMaskIntoConstraints="NO" id="LPM-aq-eVP">
<rect key="frame" x="0.0" y="0.0" width="160" height="160"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<constraints>
<constraint firstAttribute="bottom" secondItem="LPM-aq-eVP" secondAttribute="bottom" id="3dC-zy-EKj"/>
<constraint firstItem="LPM-aq-eVP" firstAttribute="leading" secondItem="mZg-o6-U32" secondAttribute="leading" id="CUC-Zi-AO2"/>
<constraint firstAttribute="trailing" secondItem="LPM-aq-eVP" secondAttribute="trailing" id="eON-IQ-OZe"/>
<constraint firstItem="LPM-aq-eVP" firstAttribute="top" secondItem="mZg-o6-U32" secondAttribute="top" id="rr5-Ix-vFh"/>
</constraints>
<connections>
<outlet property="imageView" destination="LPM-aq-eVP" id="4Wu-rt-zSB"/>
<segue destination="Ah7-4n-0Wa" kind="push" identifier="Tap on Flag" id="e5Y-SN-UWY"/>
</connections>
</collectionViewCell>
</cells>
<connections>
<outlet property="dataSource" destination="UH6-2k-Soh" id="m1v-tP-KJh"/>
<outlet property="delegate" destination="UH6-2k-Soh" id="b0C-Mp-1P8"/>
</connections>
</collectionView>
<navigationItem key="navigationItem" id="teh-qR-8dZ">
<nil key="title"/>
<slider key="titleView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="120" minValue="0.0" maxValue="160" id="sg9-qZ-59e">
<rect key="frame" x="8" y="8" width="304" height="29"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="minimumTrackTintColor" red="0.0" green="0.74117648601531982" blue="0.64313727617263794" alpha="1" colorSpace="deviceRGB"/>
<connections>
<action selector="sliderValueChanged:" destination="UH6-2k-Soh" eventType="valueChanged" id="Tfs-NO-5oy"/>
</connections>
</slider>
</navigationItem>
<connections>
<outlet property="cellSizeSlider" destination="sg9-qZ-59e" id="gwU-KP-c6P"/>
</connections>
</collectionViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="eQs-he-B5Z" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="881" y="64"/>
</scene>
<!--Detail View Controller - Detail-->
<scene sceneID="Cn3-H9-jdl">
<objects>
<viewController storyboardIdentifier="Detail View Controller" title="Detail" id="Ah7-4n-0Wa" customClass="CGTADetailViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="EK1-eN-tCq"/>
<viewControllerLayoutGuide type="bottom" id="wQM-DP-Tgk"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="MMQ-IT-qOo">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="cK7-Bz-0X1">
<rect key="frame" x="0.0" y="1" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<gestureRecognizers/>
<connections>
<outletCollection property="gestureRecognizers" destination="7Ox-9Z-jyy" appends="YES" id="tVL-VO-d0n"/>
</connections>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Country Name" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D8d-Ff-nf5">
<rect key="frame" x="58" y="493" width="205" height="39"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="32"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tap to view name" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XA9-HU-Mx0">
<rect key="frame" x="93" y="84" width="134" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="centerX" secondItem="D8d-Ff-nf5" secondAttribute="centerX" id="6Ei-aD-kBS"/>
<constraint firstItem="XA9-HU-Mx0" firstAttribute="top" secondItem="EK1-eN-tCq" secondAttribute="bottom" constant="20" id="IoW-zC-bSQ"/>
<constraint firstAttribute="centerX" secondItem="XA9-HU-Mx0" secondAttribute="centerX" id="Y6M-Ux-1qK"/>
<constraint firstItem="wQM-DP-Tgk" firstAttribute="top" secondItem="D8d-Ff-nf5" secondAttribute="top" constant="75" id="pjb-U5-Ai8"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Detail" id="cra-N8-TIN"/>
<connections>
<outlet property="countryNameLabel" destination="D8d-Ff-nf5" id="h5l-XS-5ac"/>
<outlet property="countryNameTopConstraint" destination="pjb-U5-Ai8" id="UrE-La-Oyg"/>
<outlet property="imageView" destination="cK7-Bz-0X1" id="dbA-f5-cQY"/>
<outlet property="tapLabel" destination="XA9-HU-Mx0" id="INt-97-ZiP"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="lrm-kH-fPn" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="7Ox-9Z-jyy">
<connections>
<action selector="imageTapped:" destination="Ah7-4n-0Wa" id="MLH-Hq-MSG"/>
</connections>
</tapGestureRecognizer>
</objects>
<point key="canvasLocation" x="1428" y="64"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="Gwc-n1-nXR">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="INF-sx-8CY" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="rje-BN-VLD">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" red="0.0" green="0.74117648601531982" blue="0.64313727617263794" alpha="1" colorSpace="deviceRGB"/>
<textAttributes key="titleTextAttributes">
<color key="textColor" red="0.0" green="0.74117648601531982" blue="0.64313727617263794" alpha="1" colorSpace="deviceRGB"/>
</textAttributes>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="UH6-2k-Soh" kind="relationship" relationship="rootViewController" id="2pt-sd-z5Z"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dXu-Dv-wXY" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="478" y="64"/>
</scene>
</scenes>
<resources>
<image name="USA" width="128" height="128"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>