Skip to content

Commit a40ac9f

Browse files
committed
Session 3 추가 외.
1 parent 9847b4d commit a40ac9f

38 files changed

+1280
-43
lines changed

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,23 @@
1111

1212

1313
## [2. Swift Basic](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md)
14-
* [2-1. Swift 와 Playgrounds](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-1-swift-와-playgrounds)
15-
* [2-2. 기본 타입에 대한 let 과 var](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-2-기본-타입에-대한-let-과-var)
16-
* [2-3. Collections](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-3-collections)
17-
* 2-4. Control Flow
18-
* 2-5. Optional 소개
19-
* 2-6. Function
20-
* 2-6. Function Type
21-
* 2-7. Closure
22-
* 2-8. Structure
23-
* 2-9. Enumeration
24-
* 2-10. Class
25-
* 2-11. Value 타입과 Reference 타입
14+
* 2-1. [Swift](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-1-swift-와-playgrounds)
15+
* 2-2. [let 과 var](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-2-let-과-var)
16+
* 2-3. [기본 타입들](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-3-기본-타입들)
17+
* 2-4. [Tuple 타입](https://github.com/CodersHigh/iOS-App-Dev-Basics/blob/master/chapter2.md#2-4-Tuple-타입)
18+
* 2-5. Collections-1
19+
* 2-6. Collections-2
20+
* 2-7. Control Flow
21+
* 2-8. Optional-1
22+
* 2-9. Optional-2
23+
* 2-10. Optional-3
24+
* 2-11. Function
25+
* 2-12. Structure
26+
* 2-13. Class
27+
* 2-14. Enumeration
28+
* 2-15. Initialize-1
29+
* 2-16. Method
30+
* 2-17. Enum Associsted Value
2631

2732
## 3. Interaction
2833
* View & Control `샘플코드 : Money Converter`
Lines changed: 293 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
2C9AD9EF1C214348004D41FE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C9AD9EE1C214348004D41FE /* AppDelegate.swift */; };
11+
2C9AD9F11C214348004D41FE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C9AD9F01C214348004D41FE /* ViewController.swift */; };
12+
2C9AD9F41C214348004D41FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C9AD9F21C214348004D41FE /* Main.storyboard */; };
13+
2C9AD9F61C214348004D41FE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2C9AD9F51C214348004D41FE /* Assets.xcassets */; };
14+
2C9AD9F91C214348004D41FE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C9AD9F71C214348004D41FE /* LaunchScreen.storyboard */; };
15+
/* End PBXBuildFile section */
16+
17+
/* Begin PBXFileReference section */
18+
2C9AD9EB1C214347004D41FE /* MoneyConverter.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MoneyConverter.app; sourceTree = BUILT_PRODUCTS_DIR; };
19+
2C9AD9EE1C214348004D41FE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
20+
2C9AD9F01C214348004D41FE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
21+
2C9AD9F31C214348004D41FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
22+
2C9AD9F51C214348004D41FE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
23+
2C9AD9F81C214348004D41FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
24+
2C9AD9FA1C214348004D41FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
25+
/* End PBXFileReference section */
26+
27+
/* Begin PBXFrameworksBuildPhase section */
28+
2C9AD9E81C214347004D41FE /* Frameworks */ = {
29+
isa = PBXFrameworksBuildPhase;
30+
buildActionMask = 2147483647;
31+
files = (
32+
);
33+
runOnlyForDeploymentPostprocessing = 0;
34+
};
35+
/* End PBXFrameworksBuildPhase section */
36+
37+
/* Begin PBXGroup section */
38+
2C9AD9E21C214347004D41FE = {
39+
isa = PBXGroup;
40+
children = (
41+
2C9AD9ED1C214348004D41FE /* MoneyConverter */,
42+
2C9AD9EC1C214347004D41FE /* Products */,
43+
);
44+
sourceTree = "<group>";
45+
};
46+
2C9AD9EC1C214347004D41FE /* Products */ = {
47+
isa = PBXGroup;
48+
children = (
49+
2C9AD9EB1C214347004D41FE /* MoneyConverter.app */,
50+
);
51+
name = Products;
52+
sourceTree = "<group>";
53+
};
54+
2C9AD9ED1C214348004D41FE /* MoneyConverter */ = {
55+
isa = PBXGroup;
56+
children = (
57+
2C9AD9EE1C214348004D41FE /* AppDelegate.swift */,
58+
2C9AD9F01C214348004D41FE /* ViewController.swift */,
59+
2C9AD9F21C214348004D41FE /* Main.storyboard */,
60+
2C9AD9F51C214348004D41FE /* Assets.xcassets */,
61+
2C9AD9F71C214348004D41FE /* LaunchScreen.storyboard */,
62+
2C9AD9FA1C214348004D41FE /* Info.plist */,
63+
);
64+
path = MoneyConverter;
65+
sourceTree = "<group>";
66+
};
67+
/* End PBXGroup section */
68+
69+
/* Begin PBXNativeTarget section */
70+
2C9AD9EA1C214347004D41FE /* MoneyConverter */ = {
71+
isa = PBXNativeTarget;
72+
buildConfigurationList = 2C9AD9FD1C214348004D41FE /* Build configuration list for PBXNativeTarget "MoneyConverter" */;
73+
buildPhases = (
74+
2C9AD9E71C214347004D41FE /* Sources */,
75+
2C9AD9E81C214347004D41FE /* Frameworks */,
76+
2C9AD9E91C214347004D41FE /* Resources */,
77+
);
78+
buildRules = (
79+
);
80+
dependencies = (
81+
);
82+
name = MoneyConverter;
83+
productName = MoneyConverter;
84+
productReference = 2C9AD9EB1C214347004D41FE /* MoneyConverter.app */;
85+
productType = "com.apple.product-type.application";
86+
};
87+
/* End PBXNativeTarget section */
88+
89+
/* Begin PBXProject section */
90+
2C9AD9E31C214347004D41FE /* Project object */ = {
91+
isa = PBXProject;
92+
attributes = {
93+
LastSwiftUpdateCheck = 0710;
94+
LastUpgradeCheck = 0710;
95+
ORGANIZATIONNAME = CodersHigh;
96+
TargetAttributes = {
97+
2C9AD9EA1C214347004D41FE = {
98+
CreatedOnToolsVersion = 7.1;
99+
};
100+
};
101+
};
102+
buildConfigurationList = 2C9AD9E61C214347004D41FE /* Build configuration list for PBXProject "MoneyConverter" */;
103+
compatibilityVersion = "Xcode 3.2";
104+
developmentRegion = English;
105+
hasScannedForEncodings = 0;
106+
knownRegions = (
107+
en,
108+
Base,
109+
);
110+
mainGroup = 2C9AD9E21C214347004D41FE;
111+
productRefGroup = 2C9AD9EC1C214347004D41FE /* Products */;
112+
projectDirPath = "";
113+
projectRoot = "";
114+
targets = (
115+
2C9AD9EA1C214347004D41FE /* MoneyConverter */,
116+
);
117+
};
118+
/* End PBXProject section */
119+
120+
/* Begin PBXResourcesBuildPhase section */
121+
2C9AD9E91C214347004D41FE /* Resources */ = {
122+
isa = PBXResourcesBuildPhase;
123+
buildActionMask = 2147483647;
124+
files = (
125+
2C9AD9F91C214348004D41FE /* LaunchScreen.storyboard in Resources */,
126+
2C9AD9F61C214348004D41FE /* Assets.xcassets in Resources */,
127+
2C9AD9F41C214348004D41FE /* Main.storyboard in Resources */,
128+
);
129+
runOnlyForDeploymentPostprocessing = 0;
130+
};
131+
/* End PBXResourcesBuildPhase section */
132+
133+
/* Begin PBXSourcesBuildPhase section */
134+
2C9AD9E71C214347004D41FE /* Sources */ = {
135+
isa = PBXSourcesBuildPhase;
136+
buildActionMask = 2147483647;
137+
files = (
138+
2C9AD9F11C214348004D41FE /* ViewController.swift in Sources */,
139+
2C9AD9EF1C214348004D41FE /* AppDelegate.swift in Sources */,
140+
);
141+
runOnlyForDeploymentPostprocessing = 0;
142+
};
143+
/* End PBXSourcesBuildPhase section */
144+
145+
/* Begin PBXVariantGroup section */
146+
2C9AD9F21C214348004D41FE /* Main.storyboard */ = {
147+
isa = PBXVariantGroup;
148+
children = (
149+
2C9AD9F31C214348004D41FE /* Base */,
150+
);
151+
name = Main.storyboard;
152+
sourceTree = "<group>";
153+
};
154+
2C9AD9F71C214348004D41FE /* LaunchScreen.storyboard */ = {
155+
isa = PBXVariantGroup;
156+
children = (
157+
2C9AD9F81C214348004D41FE /* Base */,
158+
);
159+
name = LaunchScreen.storyboard;
160+
sourceTree = "<group>";
161+
};
162+
/* End PBXVariantGroup section */
163+
164+
/* Begin XCBuildConfiguration section */
165+
2C9AD9FB1C214348004D41FE /* Debug */ = {
166+
isa = XCBuildConfiguration;
167+
buildSettings = {
168+
ALWAYS_SEARCH_USER_PATHS = NO;
169+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
170+
CLANG_CXX_LIBRARY = "libc++";
171+
CLANG_ENABLE_MODULES = YES;
172+
CLANG_ENABLE_OBJC_ARC = YES;
173+
CLANG_WARN_BOOL_CONVERSION = YES;
174+
CLANG_WARN_CONSTANT_CONVERSION = YES;
175+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
176+
CLANG_WARN_EMPTY_BODY = YES;
177+
CLANG_WARN_ENUM_CONVERSION = YES;
178+
CLANG_WARN_INT_CONVERSION = YES;
179+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
180+
CLANG_WARN_UNREACHABLE_CODE = YES;
181+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
182+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
183+
COPY_PHASE_STRIP = NO;
184+
DEBUG_INFORMATION_FORMAT = dwarf;
185+
ENABLE_STRICT_OBJC_MSGSEND = YES;
186+
ENABLE_TESTABILITY = YES;
187+
GCC_C_LANGUAGE_STANDARD = gnu99;
188+
GCC_DYNAMIC_NO_PIC = NO;
189+
GCC_NO_COMMON_BLOCKS = YES;
190+
GCC_OPTIMIZATION_LEVEL = 0;
191+
GCC_PREPROCESSOR_DEFINITIONS = (
192+
"DEBUG=1",
193+
"$(inherited)",
194+
);
195+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
196+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
197+
GCC_WARN_UNDECLARED_SELECTOR = YES;
198+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
199+
GCC_WARN_UNUSED_FUNCTION = YES;
200+
GCC_WARN_UNUSED_VARIABLE = YES;
201+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
202+
MTL_ENABLE_DEBUG_INFO = YES;
203+
ONLY_ACTIVE_ARCH = YES;
204+
SDKROOT = iphoneos;
205+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
206+
TARGETED_DEVICE_FAMILY = "1,2";
207+
};
208+
name = Debug;
209+
};
210+
2C9AD9FC1C214348004D41FE /* Release */ = {
211+
isa = XCBuildConfiguration;
212+
buildSettings = {
213+
ALWAYS_SEARCH_USER_PATHS = NO;
214+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
215+
CLANG_CXX_LIBRARY = "libc++";
216+
CLANG_ENABLE_MODULES = YES;
217+
CLANG_ENABLE_OBJC_ARC = YES;
218+
CLANG_WARN_BOOL_CONVERSION = YES;
219+
CLANG_WARN_CONSTANT_CONVERSION = YES;
220+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
221+
CLANG_WARN_EMPTY_BODY = YES;
222+
CLANG_WARN_ENUM_CONVERSION = YES;
223+
CLANG_WARN_INT_CONVERSION = YES;
224+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
225+
CLANG_WARN_UNREACHABLE_CODE = YES;
226+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
227+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
228+
COPY_PHASE_STRIP = NO;
229+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
230+
ENABLE_NS_ASSERTIONS = NO;
231+
ENABLE_STRICT_OBJC_MSGSEND = YES;
232+
GCC_C_LANGUAGE_STANDARD = gnu99;
233+
GCC_NO_COMMON_BLOCKS = YES;
234+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
235+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
236+
GCC_WARN_UNDECLARED_SELECTOR = YES;
237+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
238+
GCC_WARN_UNUSED_FUNCTION = YES;
239+
GCC_WARN_UNUSED_VARIABLE = YES;
240+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
241+
MTL_ENABLE_DEBUG_INFO = NO;
242+
SDKROOT = iphoneos;
243+
TARGETED_DEVICE_FAMILY = "1,2";
244+
VALIDATE_PRODUCT = YES;
245+
};
246+
name = Release;
247+
};
248+
2C9AD9FE1C214348004D41FE /* Debug */ = {
249+
isa = XCBuildConfiguration;
250+
buildSettings = {
251+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
252+
INFOPLIST_FILE = MoneyConverter/Info.plist;
253+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
254+
PRODUCT_BUNDLE_IDENTIFIER = com.codershigh.MoneyConverter;
255+
PRODUCT_NAME = "$(TARGET_NAME)";
256+
};
257+
name = Debug;
258+
};
259+
2C9AD9FF1C214348004D41FE /* Release */ = {
260+
isa = XCBuildConfiguration;
261+
buildSettings = {
262+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
263+
INFOPLIST_FILE = MoneyConverter/Info.plist;
264+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
265+
PRODUCT_BUNDLE_IDENTIFIER = com.codershigh.MoneyConverter;
266+
PRODUCT_NAME = "$(TARGET_NAME)";
267+
};
268+
name = Release;
269+
};
270+
/* End XCBuildConfiguration section */
271+
272+
/* Begin XCConfigurationList section */
273+
2C9AD9E61C214347004D41FE /* Build configuration list for PBXProject "MoneyConverter" */ = {
274+
isa = XCConfigurationList;
275+
buildConfigurations = (
276+
2C9AD9FB1C214348004D41FE /* Debug */,
277+
2C9AD9FC1C214348004D41FE /* Release */,
278+
);
279+
defaultConfigurationIsVisible = 0;
280+
defaultConfigurationName = Release;
281+
};
282+
2C9AD9FD1C214348004D41FE /* Build configuration list for PBXNativeTarget "MoneyConverter" */ = {
283+
isa = XCConfigurationList;
284+
buildConfigurations = (
285+
2C9AD9FE1C214348004D41FE /* Debug */,
286+
2C9AD9FF1C214348004D41FE /* Release */,
287+
);
288+
defaultConfigurationIsVisible = 0;
289+
};
290+
/* End XCConfigurationList section */
291+
};
292+
rootObject = 2C9AD9E31C214347004D41FE /* Project object */;
293+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// AppDelegate.swift
3+
// MoneyConverter
4+
//
5+
// Created by Lingostar on 2015. 12. 16..
6+
// Copyright © 2015년 CodersHigh. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
17+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18+
// Override point for customization after application launch.
19+
return true
20+
}
21+
22+
func applicationWillResignActive(application: UIApplication) {
23+
// 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.
24+
// 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.
25+
}
26+
27+
func applicationDidEnterBackground(application: UIApplication) {
28+
// 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.
29+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30+
}
31+
32+
func applicationWillEnterForeground(application: UIApplication) {
33+
// 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.
34+
}
35+
36+
func applicationDidBecomeActive(application: UIApplication) {
37+
// 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.
38+
}
39+
40+
func applicationWillTerminate(application: UIApplication) {
41+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42+
}
43+
44+
45+
}
46+

0 commit comments

Comments
 (0)