Skip to content

Commit 00247f8

Browse files
committed
Step 1 in PanoView tutorial.
1 parent 22513a1 commit 00247f8

File tree

9 files changed

+570
-0
lines changed

9 files changed

+570
-0
lines changed

PanoView.xcodeproj/project.pbxproj

Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
30B76AA11CD6C82300960E1E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30B76AA01CD6C82300960E1E /* AppDelegate.swift */; };
11+
30B76AA31CD6C82300960E1E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30B76AA21CD6C82300960E1E /* ViewController.swift */; };
12+
30B76AA61CD6C82300960E1E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 30B76AA41CD6C82300960E1E /* Main.storyboard */; };
13+
30B76AA81CD6C82300960E1E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 30B76AA71CD6C82300960E1E /* Assets.xcassets */; };
14+
30B76AAB1CD6C82300960E1E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 30B76AA91CD6C82300960E1E /* LaunchScreen.storyboard */; };
15+
30B76AC31CD6CD1700960E1E /* Hellbrunn25.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 30B76AC21CD6CD1700960E1E /* Hellbrunn25.jpg */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
30B76A9D1CD6C82300960E1E /* PanoView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PanoView.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
30B76AA01CD6C82300960E1E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
21+
30B76AA21CD6C82300960E1E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
22+
30B76AA51CD6C82300960E1E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
23+
30B76AA71CD6C82300960E1E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
24+
30B76AAA1CD6C82300960E1E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
25+
30B76AAC1CD6C82300960E1E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
26+
30B76AC21CD6CD1700960E1E /* Hellbrunn25.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Hellbrunn25.jpg; sourceTree = "<group>"; };
27+
/* End PBXFileReference section */
28+
29+
/* Begin PBXFrameworksBuildPhase section */
30+
30B76A9A1CD6C82300960E1E /* Frameworks */ = {
31+
isa = PBXFrameworksBuildPhase;
32+
buildActionMask = 2147483647;
33+
files = (
34+
);
35+
runOnlyForDeploymentPostprocessing = 0;
36+
};
37+
/* End PBXFrameworksBuildPhase section */
38+
39+
/* Begin PBXGroup section */
40+
30B76A941CD6C82300960E1E = {
41+
isa = PBXGroup;
42+
children = (
43+
30B76A9F1CD6C82300960E1E /* PanoView */,
44+
30B76A9E1CD6C82300960E1E /* Products */,
45+
);
46+
sourceTree = "<group>";
47+
};
48+
30B76A9E1CD6C82300960E1E /* Products */ = {
49+
isa = PBXGroup;
50+
children = (
51+
30B76A9D1CD6C82300960E1E /* PanoView.app */,
52+
);
53+
name = Products;
54+
sourceTree = "<group>";
55+
};
56+
30B76A9F1CD6C82300960E1E /* PanoView */ = {
57+
isa = PBXGroup;
58+
children = (
59+
30B76AC21CD6CD1700960E1E /* Hellbrunn25.jpg */,
60+
30B76AA01CD6C82300960E1E /* AppDelegate.swift */,
61+
30B76AA21CD6C82300960E1E /* ViewController.swift */,
62+
30B76AA41CD6C82300960E1E /* Main.storyboard */,
63+
30B76AA71CD6C82300960E1E /* Assets.xcassets */,
64+
30B76AA91CD6C82300960E1E /* LaunchScreen.storyboard */,
65+
30B76AAC1CD6C82300960E1E /* Info.plist */,
66+
);
67+
path = PanoView;
68+
sourceTree = "<group>";
69+
};
70+
/* End PBXGroup section */
71+
72+
/* Begin PBXNativeTarget section */
73+
30B76A9C1CD6C82300960E1E /* PanoView */ = {
74+
isa = PBXNativeTarget;
75+
buildConfigurationList = 30B76ABA1CD6C82300960E1E /* Build configuration list for PBXNativeTarget "PanoView" */;
76+
buildPhases = (
77+
30B76A991CD6C82300960E1E /* Sources */,
78+
30B76A9A1CD6C82300960E1E /* Frameworks */,
79+
30B76A9B1CD6C82300960E1E /* Resources */,
80+
);
81+
buildRules = (
82+
);
83+
dependencies = (
84+
);
85+
name = PanoView;
86+
productName = PanoView;
87+
productReference = 30B76A9D1CD6C82300960E1E /* PanoView.app */;
88+
productType = "com.apple.product-type.application";
89+
};
90+
/* End PBXNativeTarget section */
91+
92+
/* Begin PBXProject section */
93+
30B76A951CD6C82300960E1E /* Project object */ = {
94+
isa = PBXProject;
95+
attributes = {
96+
LastSwiftUpdateCheck = 0730;
97+
LastUpgradeCheck = 0730;
98+
ORGANIZATIONNAME = "iOS Developer Zone";
99+
TargetAttributes = {
100+
30B76A9C1CD6C82300960E1E = {
101+
CreatedOnToolsVersion = 7.3;
102+
};
103+
};
104+
};
105+
buildConfigurationList = 30B76A981CD6C82300960E1E /* Build configuration list for PBXProject "PanoView" */;
106+
compatibilityVersion = "Xcode 3.2";
107+
developmentRegion = English;
108+
hasScannedForEncodings = 0;
109+
knownRegions = (
110+
en,
111+
Base,
112+
);
113+
mainGroup = 30B76A941CD6C82300960E1E;
114+
productRefGroup = 30B76A9E1CD6C82300960E1E /* Products */;
115+
projectDirPath = "";
116+
projectRoot = "";
117+
targets = (
118+
30B76A9C1CD6C82300960E1E /* PanoView */,
119+
);
120+
};
121+
/* End PBXProject section */
122+
123+
/* Begin PBXResourcesBuildPhase section */
124+
30B76A9B1CD6C82300960E1E /* Resources */ = {
125+
isa = PBXResourcesBuildPhase;
126+
buildActionMask = 2147483647;
127+
files = (
128+
30B76AAB1CD6C82300960E1E /* LaunchScreen.storyboard in Resources */,
129+
30B76AC31CD6CD1700960E1E /* Hellbrunn25.jpg in Resources */,
130+
30B76AA81CD6C82300960E1E /* Assets.xcassets in Resources */,
131+
30B76AA61CD6C82300960E1E /* Main.storyboard in Resources */,
132+
);
133+
runOnlyForDeploymentPostprocessing = 0;
134+
};
135+
/* End PBXResourcesBuildPhase section */
136+
137+
/* Begin PBXSourcesBuildPhase section */
138+
30B76A991CD6C82300960E1E /* Sources */ = {
139+
isa = PBXSourcesBuildPhase;
140+
buildActionMask = 2147483647;
141+
files = (
142+
30B76AA31CD6C82300960E1E /* ViewController.swift in Sources */,
143+
30B76AA11CD6C82300960E1E /* AppDelegate.swift in Sources */,
144+
);
145+
runOnlyForDeploymentPostprocessing = 0;
146+
};
147+
/* End PBXSourcesBuildPhase section */
148+
149+
/* Begin PBXVariantGroup section */
150+
30B76AA41CD6C82300960E1E /* Main.storyboard */ = {
151+
isa = PBXVariantGroup;
152+
children = (
153+
30B76AA51CD6C82300960E1E /* Base */,
154+
);
155+
name = Main.storyboard;
156+
sourceTree = "<group>";
157+
};
158+
30B76AA91CD6C82300960E1E /* LaunchScreen.storyboard */ = {
159+
isa = PBXVariantGroup;
160+
children = (
161+
30B76AAA1CD6C82300960E1E /* Base */,
162+
);
163+
name = LaunchScreen.storyboard;
164+
sourceTree = "<group>";
165+
};
166+
/* End PBXVariantGroup section */
167+
168+
/* Begin XCBuildConfiguration section */
169+
30B76AB81CD6C82300960E1E /* Debug */ = {
170+
isa = XCBuildConfiguration;
171+
buildSettings = {
172+
ALWAYS_SEARCH_USER_PATHS = NO;
173+
CLANG_ANALYZER_NONNULL = YES;
174+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
175+
CLANG_CXX_LIBRARY = "libc++";
176+
CLANG_ENABLE_MODULES = YES;
177+
CLANG_ENABLE_OBJC_ARC = YES;
178+
CLANG_WARN_BOOL_CONVERSION = YES;
179+
CLANG_WARN_CONSTANT_CONVERSION = YES;
180+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181+
CLANG_WARN_EMPTY_BODY = YES;
182+
CLANG_WARN_ENUM_CONVERSION = YES;
183+
CLANG_WARN_INT_CONVERSION = YES;
184+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
185+
CLANG_WARN_UNREACHABLE_CODE = YES;
186+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
187+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
188+
COPY_PHASE_STRIP = NO;
189+
DEBUG_INFORMATION_FORMAT = dwarf;
190+
ENABLE_STRICT_OBJC_MSGSEND = YES;
191+
ENABLE_TESTABILITY = YES;
192+
GCC_C_LANGUAGE_STANDARD = gnu99;
193+
GCC_DYNAMIC_NO_PIC = NO;
194+
GCC_NO_COMMON_BLOCKS = YES;
195+
GCC_OPTIMIZATION_LEVEL = 0;
196+
GCC_PREPROCESSOR_DEFINITIONS = (
197+
"DEBUG=1",
198+
"$(inherited)",
199+
);
200+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
201+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
202+
GCC_WARN_UNDECLARED_SELECTOR = YES;
203+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
204+
GCC_WARN_UNUSED_FUNCTION = YES;
205+
GCC_WARN_UNUSED_VARIABLE = YES;
206+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
207+
MTL_ENABLE_DEBUG_INFO = YES;
208+
ONLY_ACTIVE_ARCH = YES;
209+
SDKROOT = iphoneos;
210+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
211+
TARGETED_DEVICE_FAMILY = "1,2";
212+
};
213+
name = Debug;
214+
};
215+
30B76AB91CD6C82300960E1E /* Release */ = {
216+
isa = XCBuildConfiguration;
217+
buildSettings = {
218+
ALWAYS_SEARCH_USER_PATHS = NO;
219+
CLANG_ANALYZER_NONNULL = YES;
220+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
221+
CLANG_CXX_LIBRARY = "libc++";
222+
CLANG_ENABLE_MODULES = YES;
223+
CLANG_ENABLE_OBJC_ARC = YES;
224+
CLANG_WARN_BOOL_CONVERSION = YES;
225+
CLANG_WARN_CONSTANT_CONVERSION = YES;
226+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
227+
CLANG_WARN_EMPTY_BODY = YES;
228+
CLANG_WARN_ENUM_CONVERSION = YES;
229+
CLANG_WARN_INT_CONVERSION = YES;
230+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
231+
CLANG_WARN_UNREACHABLE_CODE = YES;
232+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
233+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
234+
COPY_PHASE_STRIP = NO;
235+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
236+
ENABLE_NS_ASSERTIONS = NO;
237+
ENABLE_STRICT_OBJC_MSGSEND = YES;
238+
GCC_C_LANGUAGE_STANDARD = gnu99;
239+
GCC_NO_COMMON_BLOCKS = YES;
240+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
241+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
242+
GCC_WARN_UNDECLARED_SELECTOR = YES;
243+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
244+
GCC_WARN_UNUSED_FUNCTION = YES;
245+
GCC_WARN_UNUSED_VARIABLE = YES;
246+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
247+
MTL_ENABLE_DEBUG_INFO = NO;
248+
SDKROOT = iphoneos;
249+
TARGETED_DEVICE_FAMILY = "1,2";
250+
VALIDATE_PRODUCT = YES;
251+
};
252+
name = Release;
253+
};
254+
30B76ABB1CD6C82300960E1E /* Debug */ = {
255+
isa = XCBuildConfiguration;
256+
buildSettings = {
257+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
258+
INFOPLIST_FILE = PanoView/Info.plist;
259+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
260+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
261+
PRODUCT_BUNDLE_IDENTIFIER = com.iosdeveloperzone.PanoView;
262+
PRODUCT_NAME = "$(TARGET_NAME)";
263+
};
264+
name = Debug;
265+
};
266+
30B76ABC1CD6C82300960E1E /* Release */ = {
267+
isa = XCBuildConfiguration;
268+
buildSettings = {
269+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
270+
INFOPLIST_FILE = PanoView/Info.plist;
271+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
272+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
273+
PRODUCT_BUNDLE_IDENTIFIER = com.iosdeveloperzone.PanoView;
274+
PRODUCT_NAME = "$(TARGET_NAME)";
275+
};
276+
name = Release;
277+
};
278+
/* End XCBuildConfiguration section */
279+
280+
/* Begin XCConfigurationList section */
281+
30B76A981CD6C82300960E1E /* Build configuration list for PBXProject "PanoView" */ = {
282+
isa = XCConfigurationList;
283+
buildConfigurations = (
284+
30B76AB81CD6C82300960E1E /* Debug */,
285+
30B76AB91CD6C82300960E1E /* Release */,
286+
);
287+
defaultConfigurationIsVisible = 0;
288+
defaultConfigurationName = Release;
289+
};
290+
30B76ABA1CD6C82300960E1E /* Build configuration list for PBXNativeTarget "PanoView" */ = {
291+
isa = XCConfigurationList;
292+
buildConfigurations = (
293+
30B76ABB1CD6C82300960E1E /* Debug */,
294+
30B76ABC1CD6C82300960E1E /* Release */,
295+
);
296+
defaultConfigurationIsVisible = 0;
297+
defaultConfigurationName = Release;
298+
};
299+
/* End XCConfigurationList section */
300+
};
301+
rootObject = 30B76A951CD6C82300960E1E /* Project object */;
302+
}

PanoView.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PanoView/AppDelegate.swift

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// AppDelegate.swift
3+
// PanoView
4+
//
5+
// Created by idz on 5/1/16.
6+
// Copyright © 2016 iOS Developer Zone.
7+
// License: MIT https://raw.githubusercontent.com/iosdevzone/PanoView/master/LICENSE
8+
//
9+
10+
import UIKit
11+
12+
@UIApplicationMain
13+
class AppDelegate: UIResponder, UIApplicationDelegate {
14+
15+
var window: UIWindow?
16+
17+
18+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
19+
// Override point for customization after application launch.
20+
return true
21+
}
22+
23+
func applicationWillResignActive(application: UIApplication) {
24+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26+
}
27+
28+
func applicationDidEnterBackground(application: UIApplication) {
29+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31+
}
32+
33+
func applicationWillEnterForeground(application: UIApplication) {
34+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35+
}
36+
37+
func applicationDidBecomeActive(application: UIApplication) {
38+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39+
}
40+
41+
func applicationWillTerminate(application: UIApplication) {
42+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43+
}
44+
45+
46+
}
47+

0 commit comments

Comments
 (0)