Skip to content

Commit 20a048a

Browse files
committed
still even more example code from the first book yet already even more
1 parent 75884ba commit 20a048a

File tree

31 files changed

+2054
-0
lines changed

31 files changed

+2054
-0
lines changed
Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
32DA398B1AFD1BE300488C42 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32DA398A1AFD1BE300488C42 /* AppDelegate.swift */; };
11+
32DA398D1AFD1BE300488C42 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32DA398C1AFD1BE300488C42 /* ViewController.swift */; };
12+
32DA39901AFD1BE300488C42 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32DA398E1AFD1BE300488C42 /* Main.storyboard */; };
13+
32DA39921AFD1BE300488C42 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32DA39911AFD1BE300488C42 /* Images.xcassets */; };
14+
32DA39951AFD1BE300488C42 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 32DA39931AFD1BE300488C42 /* LaunchScreen.xib */; };
15+
32DA39AB1AFD1C0D00488C42 /* View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 32DA39AA1AFD1C0D00488C42 /* View.xib */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
32DA39851AFD1BE300488C42 /* bk1ch07p321nibLoading.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = bk1ch07p321nibLoading.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
32DA39891AFD1BE300488C42 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
21+
32DA398A1AFD1BE300488C42 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
22+
32DA398C1AFD1BE300488C42 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
23+
32DA398F1AFD1BE300488C42 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
24+
32DA39911AFD1BE300488C42 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
25+
32DA39941AFD1BE300488C42 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
26+
32DA39AA1AFD1C0D00488C42 /* View.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View.xib; sourceTree = "<group>"; };
27+
/* End PBXFileReference section */
28+
29+
/* Begin PBXFrameworksBuildPhase section */
30+
32DA39821AFD1BE300488C42 /* Frameworks */ = {
31+
isa = PBXFrameworksBuildPhase;
32+
buildActionMask = 2147483647;
33+
files = (
34+
);
35+
runOnlyForDeploymentPostprocessing = 0;
36+
};
37+
/* End PBXFrameworksBuildPhase section */
38+
39+
/* Begin PBXGroup section */
40+
32DA397C1AFD1BE300488C42 = {
41+
isa = PBXGroup;
42+
children = (
43+
32DA39871AFD1BE300488C42 /* bk1ch07p321nibLoading */,
44+
32DA39861AFD1BE300488C42 /* Products */,
45+
);
46+
sourceTree = "<group>";
47+
};
48+
32DA39861AFD1BE300488C42 /* Products */ = {
49+
isa = PBXGroup;
50+
children = (
51+
32DA39851AFD1BE300488C42 /* bk1ch07p321nibLoading.app */,
52+
);
53+
name = Products;
54+
sourceTree = "<group>";
55+
};
56+
32DA39871AFD1BE300488C42 /* bk1ch07p321nibLoading */ = {
57+
isa = PBXGroup;
58+
children = (
59+
32DA398A1AFD1BE300488C42 /* AppDelegate.swift */,
60+
32DA39AA1AFD1C0D00488C42 /* View.xib */,
61+
32DA398C1AFD1BE300488C42 /* ViewController.swift */,
62+
32DA398E1AFD1BE300488C42 /* Main.storyboard */,
63+
32DA39911AFD1BE300488C42 /* Images.xcassets */,
64+
32DA39931AFD1BE300488C42 /* LaunchScreen.xib */,
65+
32DA39881AFD1BE300488C42 /* Supporting Files */,
66+
);
67+
path = bk1ch07p321nibLoading;
68+
sourceTree = "<group>";
69+
};
70+
32DA39881AFD1BE300488C42 /* Supporting Files */ = {
71+
isa = PBXGroup;
72+
children = (
73+
32DA39891AFD1BE300488C42 /* Info.plist */,
74+
);
75+
name = "Supporting Files";
76+
sourceTree = "<group>";
77+
};
78+
/* End PBXGroup section */
79+
80+
/* Begin PBXNativeTarget section */
81+
32DA39841AFD1BE300488C42 /* bk1ch07p321nibLoading */ = {
82+
isa = PBXNativeTarget;
83+
buildConfigurationList = 32DA39A41AFD1BE300488C42 /* Build configuration list for PBXNativeTarget "bk1ch07p321nibLoading" */;
84+
buildPhases = (
85+
32DA39811AFD1BE300488C42 /* Sources */,
86+
32DA39821AFD1BE300488C42 /* Frameworks */,
87+
32DA39831AFD1BE300488C42 /* Resources */,
88+
);
89+
buildRules = (
90+
);
91+
dependencies = (
92+
);
93+
name = bk1ch07p321nibLoading;
94+
productName = bk1ch07p321nibLoading;
95+
productReference = 32DA39851AFD1BE300488C42 /* bk1ch07p321nibLoading.app */;
96+
productType = "com.apple.product-type.application";
97+
};
98+
/* End PBXNativeTarget section */
99+
100+
/* Begin PBXProject section */
101+
32DA397D1AFD1BE300488C42 /* Project object */ = {
102+
isa = PBXProject;
103+
attributes = {
104+
LastUpgradeCheck = 0630;
105+
ORGANIZATIONNAME = "Matt Neuburg";
106+
TargetAttributes = {
107+
32DA39841AFD1BE300488C42 = {
108+
CreatedOnToolsVersion = 6.3.1;
109+
};
110+
};
111+
};
112+
buildConfigurationList = 32DA39801AFD1BE300488C42 /* Build configuration list for PBXProject "bk1ch07p321nibLoading" */;
113+
compatibilityVersion = "Xcode 3.2";
114+
developmentRegion = English;
115+
hasScannedForEncodings = 0;
116+
knownRegions = (
117+
en,
118+
Base,
119+
);
120+
mainGroup = 32DA397C1AFD1BE300488C42;
121+
productRefGroup = 32DA39861AFD1BE300488C42 /* Products */;
122+
projectDirPath = "";
123+
projectRoot = "";
124+
targets = (
125+
32DA39841AFD1BE300488C42 /* bk1ch07p321nibLoading */,
126+
);
127+
};
128+
/* End PBXProject section */
129+
130+
/* Begin PBXResourcesBuildPhase section */
131+
32DA39831AFD1BE300488C42 /* Resources */ = {
132+
isa = PBXResourcesBuildPhase;
133+
buildActionMask = 2147483647;
134+
files = (
135+
32DA39AB1AFD1C0D00488C42 /* View.xib in Resources */,
136+
32DA39901AFD1BE300488C42 /* Main.storyboard in Resources */,
137+
32DA39951AFD1BE300488C42 /* LaunchScreen.xib in Resources */,
138+
32DA39921AFD1BE300488C42 /* Images.xcassets in Resources */,
139+
);
140+
runOnlyForDeploymentPostprocessing = 0;
141+
};
142+
/* End PBXResourcesBuildPhase section */
143+
144+
/* Begin PBXSourcesBuildPhase section */
145+
32DA39811AFD1BE300488C42 /* Sources */ = {
146+
isa = PBXSourcesBuildPhase;
147+
buildActionMask = 2147483647;
148+
files = (
149+
32DA398D1AFD1BE300488C42 /* ViewController.swift in Sources */,
150+
32DA398B1AFD1BE300488C42 /* AppDelegate.swift in Sources */,
151+
);
152+
runOnlyForDeploymentPostprocessing = 0;
153+
};
154+
/* End PBXSourcesBuildPhase section */
155+
156+
/* Begin PBXVariantGroup section */
157+
32DA398E1AFD1BE300488C42 /* Main.storyboard */ = {
158+
isa = PBXVariantGroup;
159+
children = (
160+
32DA398F1AFD1BE300488C42 /* Base */,
161+
);
162+
name = Main.storyboard;
163+
sourceTree = "<group>";
164+
};
165+
32DA39931AFD1BE300488C42 /* LaunchScreen.xib */ = {
166+
isa = PBXVariantGroup;
167+
children = (
168+
32DA39941AFD1BE300488C42 /* Base */,
169+
);
170+
name = LaunchScreen.xib;
171+
sourceTree = "<group>";
172+
};
173+
/* End PBXVariantGroup section */
174+
175+
/* Begin XCBuildConfiguration section */
176+
32DA39A21AFD1BE300488C42 /* Debug */ = {
177+
isa = XCBuildConfiguration;
178+
buildSettings = {
179+
ALWAYS_SEARCH_USER_PATHS = NO;
180+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
181+
CLANG_CXX_LIBRARY = "libc++";
182+
CLANG_ENABLE_MODULES = YES;
183+
CLANG_ENABLE_OBJC_ARC = YES;
184+
CLANG_WARN_BOOL_CONVERSION = YES;
185+
CLANG_WARN_CONSTANT_CONVERSION = YES;
186+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
187+
CLANG_WARN_EMPTY_BODY = YES;
188+
CLANG_WARN_ENUM_CONVERSION = YES;
189+
CLANG_WARN_INT_CONVERSION = YES;
190+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191+
CLANG_WARN_UNREACHABLE_CODE = YES;
192+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
193+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
194+
COPY_PHASE_STRIP = NO;
195+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
196+
ENABLE_STRICT_OBJC_MSGSEND = YES;
197+
GCC_C_LANGUAGE_STANDARD = gnu99;
198+
GCC_DYNAMIC_NO_PIC = NO;
199+
GCC_NO_COMMON_BLOCKS = YES;
200+
GCC_OPTIMIZATION_LEVEL = 0;
201+
GCC_PREPROCESSOR_DEFINITIONS = (
202+
"DEBUG=1",
203+
"$(inherited)",
204+
);
205+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
206+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
207+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
208+
GCC_WARN_UNDECLARED_SELECTOR = YES;
209+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
210+
GCC_WARN_UNUSED_FUNCTION = YES;
211+
GCC_WARN_UNUSED_VARIABLE = YES;
212+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
213+
MTL_ENABLE_DEBUG_INFO = YES;
214+
ONLY_ACTIVE_ARCH = YES;
215+
SDKROOT = iphoneos;
216+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
217+
};
218+
name = Debug;
219+
};
220+
32DA39A31AFD1BE300488C42 /* Release */ = {
221+
isa = XCBuildConfiguration;
222+
buildSettings = {
223+
ALWAYS_SEARCH_USER_PATHS = NO;
224+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
225+
CLANG_CXX_LIBRARY = "libc++";
226+
CLANG_ENABLE_MODULES = YES;
227+
CLANG_ENABLE_OBJC_ARC = YES;
228+
CLANG_WARN_BOOL_CONVERSION = YES;
229+
CLANG_WARN_CONSTANT_CONVERSION = YES;
230+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
231+
CLANG_WARN_EMPTY_BODY = YES;
232+
CLANG_WARN_ENUM_CONVERSION = YES;
233+
CLANG_WARN_INT_CONVERSION = YES;
234+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
235+
CLANG_WARN_UNREACHABLE_CODE = YES;
236+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
237+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
238+
COPY_PHASE_STRIP = NO;
239+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
240+
ENABLE_NS_ASSERTIONS = NO;
241+
ENABLE_STRICT_OBJC_MSGSEND = YES;
242+
GCC_C_LANGUAGE_STANDARD = gnu99;
243+
GCC_NO_COMMON_BLOCKS = YES;
244+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246+
GCC_WARN_UNDECLARED_SELECTOR = YES;
247+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248+
GCC_WARN_UNUSED_FUNCTION = YES;
249+
GCC_WARN_UNUSED_VARIABLE = YES;
250+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
251+
MTL_ENABLE_DEBUG_INFO = NO;
252+
SDKROOT = iphoneos;
253+
VALIDATE_PRODUCT = YES;
254+
};
255+
name = Release;
256+
};
257+
32DA39A51AFD1BE300488C42 /* Debug */ = {
258+
isa = XCBuildConfiguration;
259+
buildSettings = {
260+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
261+
INFOPLIST_FILE = bk1ch07p321nibLoading/Info.plist;
262+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
263+
PRODUCT_NAME = "$(TARGET_NAME)";
264+
};
265+
name = Debug;
266+
};
267+
32DA39A61AFD1BE300488C42 /* Release */ = {
268+
isa = XCBuildConfiguration;
269+
buildSettings = {
270+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
271+
INFOPLIST_FILE = bk1ch07p321nibLoading/Info.plist;
272+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
273+
PRODUCT_NAME = "$(TARGET_NAME)";
274+
};
275+
name = Release;
276+
};
277+
/* End XCBuildConfiguration section */
278+
279+
/* Begin XCConfigurationList section */
280+
32DA39801AFD1BE300488C42 /* Build configuration list for PBXProject "bk1ch07p321nibLoading" */ = {
281+
isa = XCConfigurationList;
282+
buildConfigurations = (
283+
32DA39A21AFD1BE300488C42 /* Debug */,
284+
32DA39A31AFD1BE300488C42 /* Release */,
285+
);
286+
defaultConfigurationIsVisible = 0;
287+
defaultConfigurationName = Release;
288+
};
289+
32DA39A41AFD1BE300488C42 /* Build configuration list for PBXNativeTarget "bk1ch07p321nibLoading" */ = {
290+
isa = XCConfigurationList;
291+
buildConfigurations = (
292+
32DA39A51AFD1BE300488C42 /* Debug */,
293+
32DA39A61AFD1BE300488C42 /* Release */,
294+
);
295+
defaultConfigurationIsVisible = 0;
296+
};
297+
/* End XCConfigurationList section */
298+
};
299+
rootObject = 32DA397D1AFD1BE300488C42 /* Project object */;
300+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
import UIKit
4+
5+
@UIApplicationMain
6+
class AppDelegate: UIResponder, UIApplicationDelegate {
7+
8+
var window: UIWindow?
9+
10+
11+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
12+
// Override point for customization after application launch.
13+
return true
14+
}
15+
16+
}
17+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
5+
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
6+
</dependencies>
7+
<objects>
8+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
9+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
10+
<view contentMode="scaleToFill" id="iN0-l3-epB">
11+
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
12+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
13+
<subviews>
14+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 Matt Neuburg. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
15+
<rect key="frame" x="20" y="439" width="441" height="21"/>
16+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
17+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
18+
<nil key="highlightedColor"/>
19+
</label>
20+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="bk1ch07p321nibLoading" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
21+
<rect key="frame" x="20" y="140" width="441" height="43"/>
22+
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
23+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
24+
<nil key="highlightedColor"/>
25+
</label>
26+
</subviews>
27+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
28+
<constraints>
29+
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
30+
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
31+
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
32+
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
33+
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
34+
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
35+
</constraints>
36+
<nil key="simulatedStatusBarMetrics"/>
37+
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
38+
<point key="canvasLocation" x="548" y="455"/>
39+
</view>
40+
</objects>
41+
</document>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
5+
</dependencies>
6+
<scenes>
7+
<!--View Controller-->
8+
<scene sceneID="ufC-wZ-h7g">
9+
<objects>
10+
<viewController id="vXZ-lx-hvc" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
11+
<layoutGuides>
12+
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
13+
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
14+
</layoutGuides>
15+
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
16+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
17+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
18+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
19+
</view>
20+
</viewController>
21+
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
22+
</objects>
23+
</scene>
24+
</scenes>
25+
</document>

0 commit comments

Comments
 (0)