Skip to content

Commit 641e473

Browse files
committed
updated chapter 22 examples
1 parent 31ec2d6 commit 641e473

File tree

97 files changed

+795
-1088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+795
-1088
lines changed

bk2ch22p773location/ch35p1032location.xcodeproj/project.pbxproj

Lines changed: 16 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,20 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
32315068182E903500B03F54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32315067182E903500B03F54 /* Foundation.framework */; };
11-
3231506A182E903500B03F54 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32315069182E903500B03F54 /* CoreGraphics.framework */; };
12-
3231506C182E903500B03F54 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3231506B182E903500B03F54 /* UIKit.framework */; };
13-
32315072182E903500B03F54 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 32315070182E903500B03F54 /* InfoPlist.strings */; };
14-
32315074182E903500B03F54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 32315073182E903500B03F54 /* main.m */; };
15-
32315078182E903500B03F54 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 32315077182E903500B03F54 /* AppDelegate.m */; };
1610
3231507B182E903500B03F54 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32315079182E903500B03F54 /* Main.storyboard */; };
17-
32315080182E903500B03F54 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3231507F182E903500B03F54 /* Images.xcassets */; };
11+
32315080182E903500B03F54 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3231507F182E903500B03F54 /* Assets.xcassets */; };
12+
3267F4551BC8106600DF4F84 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3267F4541BC8106600DF4F84 /* LaunchScreen.storyboard */; settings = {ASSET_TAGS = (); }; };
13+
3267F4571BC8106A00DF4F84 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3267F4561BC8106A00DF4F84 /* AppDelegate.swift */; settings = {ASSET_TAGS = (); }; };
1814
32D6E5D719A8FE7000CA10C7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32D6E5D619A8FE7000CA10C7 /* ViewController.swift */; };
1915
/* End PBXBuildFile section */
2016

2117
/* Begin PBXFileReference section */
2218
32315064182E903500B03F54 /* ch35p1032location.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ch35p1032location.app; sourceTree = BUILT_PRODUCTS_DIR; };
23-
32315067182E903500B03F54 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
24-
32315069182E903500B03F54 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
25-
3231506B182E903500B03F54 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
2619
3231506F182E903500B03F54 /* ch35p1032location-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ch35p1032location-Info.plist"; sourceTree = "<group>"; };
27-
32315071182E903500B03F54 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
28-
32315073182E903500B03F54 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
29-
32315075182E903500B03F54 /* ch35p1032location-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ch35p1032location-Prefix.pch"; sourceTree = "<group>"; };
30-
32315076182E903500B03F54 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
31-
32315077182E903500B03F54 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
3220
3231507A182E903500B03F54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
33-
3231507F182E903500B03F54 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
34-
32315086182E903500B03F54 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
21+
3231507F182E903500B03F54 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
22+
3267F4541BC8106600DF4F84 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
23+
3267F4561BC8106A00DF4F84 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3524
32D6E5D619A8FE7000CA10C7 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
3625
/* End PBXFileReference section */
3726

@@ -40,9 +29,6 @@
4029
isa = PBXFrameworksBuildPhase;
4130
buildActionMask = 2147483647;
4231
files = (
43-
3231506A182E903500B03F54 /* CoreGraphics.framework in Frameworks */,
44-
3231506C182E903500B03F54 /* UIKit.framework in Frameworks */,
45-
32315068182E903500B03F54 /* Foundation.framework in Frameworks */,
4632
);
4733
runOnlyForDeploymentPostprocessing = 0;
4834
};
@@ -53,7 +39,6 @@
5339
isa = PBXGroup;
5440
children = (
5541
3231506D182E903500B03F54 /* ch35p1032location */,
56-
32315066182E903500B03F54 /* Frameworks */,
5742
32315065182E903500B03F54 /* Products */,
5843
);
5944
sourceTree = "<group>";
@@ -66,39 +51,17 @@
6651
name = Products;
6752
sourceTree = "<group>";
6853
};
69-
32315066182E903500B03F54 /* Frameworks */ = {
70-
isa = PBXGroup;
71-
children = (
72-
32315067182E903500B03F54 /* Foundation.framework */,
73-
32315069182E903500B03F54 /* CoreGraphics.framework */,
74-
3231506B182E903500B03F54 /* UIKit.framework */,
75-
32315086182E903500B03F54 /* XCTest.framework */,
76-
);
77-
name = Frameworks;
78-
sourceTree = "<group>";
79-
};
8054
3231506D182E903500B03F54 /* ch35p1032location */ = {
8155
isa = PBXGroup;
8256
children = (
83-
32315076182E903500B03F54 /* AppDelegate.h */,
84-
32315077182E903500B03F54 /* AppDelegate.m */,
57+
3267F4561BC8106A00DF4F84 /* AppDelegate.swift */,
8558
32315079182E903500B03F54 /* Main.storyboard */,
8659
32D6E5D619A8FE7000CA10C7 /* ViewController.swift */,
87-
3231507F182E903500B03F54 /* Images.xcassets */,
88-
3231506E182E903500B03F54 /* Supporting Files */,
89-
);
90-
path = ch35p1032location;
91-
sourceTree = "<group>";
92-
};
93-
3231506E182E903500B03F54 /* Supporting Files */ = {
94-
isa = PBXGroup;
95-
children = (
60+
3231507F182E903500B03F54 /* Assets.xcassets */,
61+
3267F4541BC8106600DF4F84 /* LaunchScreen.storyboard */,
9662
3231506F182E903500B03F54 /* ch35p1032location-Info.plist */,
97-
32315070182E903500B03F54 /* InfoPlist.strings */,
98-
32315073182E903500B03F54 /* main.m */,
99-
32315075182E903500B03F54 /* ch35p1032location-Prefix.pch */,
10063
);
101-
name = "Supporting Files";
64+
path = ch35p1032location;
10265
sourceTree = "<group>";
10366
};
10467
/* End PBXGroup section */
@@ -127,6 +90,7 @@
12790
3231505C182E903500B03F54 /* Project object */ = {
12891
isa = PBXProject;
12992
attributes = {
93+
LastSwiftUpdateCheck = 0700;
13094
LastUpgradeCheck = 0500;
13195
ORGANIZATIONNAME = "Matt Neuburg";
13296
TargetAttributes = {
@@ -162,8 +126,8 @@
162126
isa = PBXResourcesBuildPhase;
163127
buildActionMask = 2147483647;
164128
files = (
165-
32315080182E903500B03F54 /* Images.xcassets in Resources */,
166-
32315072182E903500B03F54 /* InfoPlist.strings in Resources */,
129+
3267F4551BC8106600DF4F84 /* LaunchScreen.storyboard in Resources */,
130+
32315080182E903500B03F54 /* Assets.xcassets in Resources */,
167131
3231507B182E903500B03F54 /* Main.storyboard in Resources */,
168132
);
169133
runOnlyForDeploymentPostprocessing = 0;
@@ -175,23 +139,14 @@
175139
isa = PBXSourcesBuildPhase;
176140
buildActionMask = 2147483647;
177141
files = (
178-
32315078182E903500B03F54 /* AppDelegate.m in Sources */,
142+
3267F4571BC8106A00DF4F84 /* AppDelegate.swift in Sources */,
179143
32D6E5D719A8FE7000CA10C7 /* ViewController.swift in Sources */,
180-
32315074182E903500B03F54 /* main.m in Sources */,
181144
);
182145
runOnlyForDeploymentPostprocessing = 0;
183146
};
184147
/* End PBXSourcesBuildPhase section */
185148

186149
/* Begin PBXVariantGroup section */
187-
32315070182E903500B03F54 /* InfoPlist.strings */ = {
188-
isa = PBXVariantGroup;
189-
children = (
190-
32315071182E903500B03F54 /* en */,
191-
);
192-
name = InfoPlist.strings;
193-
sourceTree = "<group>";
194-
};
195150
32315079182E903500B03F54 /* Main.storyboard */ = {
196151
isa = PBXVariantGroup;
197152
children = (
@@ -236,7 +191,7 @@
236191
GCC_WARN_UNINITIALIZED_AUTOS = YES;
237192
GCC_WARN_UNUSED_FUNCTION = YES;
238193
GCC_WARN_UNUSED_VARIABLE = YES;
239-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
194+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
240195
ONLY_ACTIVE_ARCH = YES;
241196
SDKROOT = iphoneos;
242197
};
@@ -269,7 +224,7 @@
269224
GCC_WARN_UNINITIALIZED_AUTOS = YES;
270225
GCC_WARN_UNUSED_FUNCTION = YES;
271226
GCC_WARN_UNUSED_VARIABLE = YES;
272-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
227+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
273228
SDKROOT = iphoneos;
274229
VALIDATE_PRODUCT = YES;
275230
};
@@ -280,7 +235,6 @@
280235
buildSettings = {
281236
ARCHS = "$(ARCHS_STANDARD)";
282237
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283-
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
284238
CLANG_ENABLE_MODULES = YES;
285239
GCC_PRECOMPILE_PREFIX_HEADER = YES;
286240
GCC_PREFIX_HEADER = "ch35p1032location/ch35p1032location-Prefix.pch";
@@ -298,7 +252,6 @@
298252
buildSettings = {
299253
ARCHS = "$(ARCHS_STANDARD)";
300254
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
301-
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
302255
CLANG_ENABLE_MODULES = YES;
303256
GCC_PRECOMPILE_PREFIX_HEADER = YES;
304257
GCC_PREFIX_HEADER = "ch35p1032location/ch35p1032location-Prefix.pch";

bk2ch22p773location/ch35p1032location/AppDelegate.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

bk2ch22p773location/ch35p1032location/AppDelegate.m

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import UIKit
2+
3+
@UIApplicationMain
4+
class AppDelegate : UIResponder, UIApplicationDelegate {
5+
var window : UIWindow?
6+
7+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
8+
9+
return true
10+
}
11+
}
12+

bk2ch22p780shake/ch35p1037shake/Images.xcassets/AppIcon.appiconset/Contents.json renamed to bk2ch22p773location/ch35p1032location/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,30 @@
55
"size" : "29x29",
66
"scale" : "2x"
77
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
813
{
914
"idiom" : "iphone",
1015
"size" : "40x40",
1116
"scale" : "2x"
1217
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
1323
{
1424
"idiom" : "iphone",
1525
"size" : "60x60",
1626
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
1732
}
1833
],
1934
"info" : {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
6+
</dependencies>
7+
<scenes>
8+
<!--View Controller-->
9+
<scene sceneID="EHf-IW-A2E">
10+
<objects>
11+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+
<layoutGuides>
13+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
14+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
15+
</layoutGuides>
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>

0 commit comments

Comments
 (0)