Skip to content

Commit 634cf3b

Browse files
committed
Add AlertController project
1 parent 3fda365 commit 634cf3b

File tree

13 files changed

+965
-1
lines changed

13 files changed

+965
-1
lines changed
Lines changed: 304 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
5307C7D519B6245B00CFD37F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5307C7D419B6245B00CFD37F /* main.m */; };
11+
5307C7D819B6245B00CFD37F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5307C7D719B6245B00CFD37F /* AppDelegate.m */; };
12+
5307C7DB19B6245B00CFD37F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5307C7DA19B6245B00CFD37F /* ViewController.m */; };
13+
5307C7DE19B6245B00CFD37F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5307C7DC19B6245B00CFD37F /* Main.storyboard */; };
14+
5307C7E019B6245B00CFD37F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5307C7DF19B6245B00CFD37F /* Images.xcassets */; };
15+
53D5575019B66F5D005EAFDF /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 53D5574E19B66F5D005EAFDF /* Localizable.strings */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
5307C7CF19B6245B00CFD37F /* AlertController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AlertController.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
5307C7D319B6245B00CFD37F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
21+
5307C7D419B6245B00CFD37F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
22+
5307C7D619B6245B00CFD37F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
23+
5307C7D719B6245B00CFD37F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
24+
5307C7D919B6245B00CFD37F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
25+
5307C7DA19B6245B00CFD37F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
26+
5307C7DD19B6245B00CFD37F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
27+
5307C7DF19B6245B00CFD37F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
28+
53D5574F19B66F5D005EAFDF /* en */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
5307C7CC19B6245B00CFD37F /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
5307C7C619B6245B00CFD37F = {
43+
isa = PBXGroup;
44+
children = (
45+
5307C7D119B6245B00CFD37F /* AlertController */,
46+
5307C7D019B6245B00CFD37F /* Products */,
47+
);
48+
sourceTree = "<group>";
49+
};
50+
5307C7D019B6245B00CFD37F /* Products */ = {
51+
isa = PBXGroup;
52+
children = (
53+
5307C7CF19B6245B00CFD37F /* AlertController.app */,
54+
);
55+
name = Products;
56+
sourceTree = "<group>";
57+
};
58+
5307C7D119B6245B00CFD37F /* AlertController */ = {
59+
isa = PBXGroup;
60+
children = (
61+
5307C7D619B6245B00CFD37F /* AppDelegate.h */,
62+
5307C7D719B6245B00CFD37F /* AppDelegate.m */,
63+
5307C7D919B6245B00CFD37F /* ViewController.h */,
64+
5307C7DA19B6245B00CFD37F /* ViewController.m */,
65+
5307C7DC19B6245B00CFD37F /* Main.storyboard */,
66+
5307C7DF19B6245B00CFD37F /* Images.xcassets */,
67+
5307C7D219B6245B00CFD37F /* Supporting Files */,
68+
);
69+
path = AlertController;
70+
sourceTree = "<group>";
71+
};
72+
5307C7D219B6245B00CFD37F /* Supporting Files */ = {
73+
isa = PBXGroup;
74+
children = (
75+
5307C7D319B6245B00CFD37F /* Info.plist */,
76+
5307C7D419B6245B00CFD37F /* main.m */,
77+
53D5574E19B66F5D005EAFDF /* Localizable.strings */,
78+
);
79+
name = "Supporting Files";
80+
sourceTree = "<group>";
81+
};
82+
/* End PBXGroup section */
83+
84+
/* Begin PBXNativeTarget section */
85+
5307C7CE19B6245B00CFD37F /* AlertController */ = {
86+
isa = PBXNativeTarget;
87+
buildConfigurationList = 5307C7EF19B6245B00CFD37F /* Build configuration list for PBXNativeTarget "AlertController" */;
88+
buildPhases = (
89+
5307C7CB19B6245B00CFD37F /* Sources */,
90+
5307C7CC19B6245B00CFD37F /* Frameworks */,
91+
5307C7CD19B6245B00CFD37F /* Resources */,
92+
);
93+
buildRules = (
94+
);
95+
dependencies = (
96+
);
97+
name = AlertController;
98+
productName = AlertController;
99+
productReference = 5307C7CF19B6245B00CFD37F /* AlertController.app */;
100+
productType = "com.apple.product-type.application";
101+
};
102+
/* End PBXNativeTarget section */
103+
104+
/* Begin PBXProject section */
105+
5307C7C719B6245B00CFD37F /* Project object */ = {
106+
isa = PBXProject;
107+
attributes = {
108+
LastUpgradeCheck = 0600;
109+
ORGANIZATIONNAME = "Keith Harrison";
110+
TargetAttributes = {
111+
5307C7CE19B6245B00CFD37F = {
112+
CreatedOnToolsVersion = 6.0;
113+
};
114+
};
115+
};
116+
buildConfigurationList = 5307C7CA19B6245B00CFD37F /* Build configuration list for PBXProject "AlertController" */;
117+
compatibilityVersion = "Xcode 3.2";
118+
developmentRegion = English;
119+
hasScannedForEncodings = 0;
120+
knownRegions = (
121+
en,
122+
Base,
123+
);
124+
mainGroup = 5307C7C619B6245B00CFD37F;
125+
productRefGroup = 5307C7D019B6245B00CFD37F /* Products */;
126+
projectDirPath = "";
127+
projectRoot = "";
128+
targets = (
129+
5307C7CE19B6245B00CFD37F /* AlertController */,
130+
);
131+
};
132+
/* End PBXProject section */
133+
134+
/* Begin PBXResourcesBuildPhase section */
135+
5307C7CD19B6245B00CFD37F /* Resources */ = {
136+
isa = PBXResourcesBuildPhase;
137+
buildActionMask = 2147483647;
138+
files = (
139+
5307C7DE19B6245B00CFD37F /* Main.storyboard in Resources */,
140+
53D5575019B66F5D005EAFDF /* Localizable.strings in Resources */,
141+
5307C7E019B6245B00CFD37F /* Images.xcassets in Resources */,
142+
);
143+
runOnlyForDeploymentPostprocessing = 0;
144+
};
145+
/* End PBXResourcesBuildPhase section */
146+
147+
/* Begin PBXSourcesBuildPhase section */
148+
5307C7CB19B6245B00CFD37F /* Sources */ = {
149+
isa = PBXSourcesBuildPhase;
150+
buildActionMask = 2147483647;
151+
files = (
152+
5307C7DB19B6245B00CFD37F /* ViewController.m in Sources */,
153+
5307C7D819B6245B00CFD37F /* AppDelegate.m in Sources */,
154+
5307C7D519B6245B00CFD37F /* main.m in Sources */,
155+
);
156+
runOnlyForDeploymentPostprocessing = 0;
157+
};
158+
/* End PBXSourcesBuildPhase section */
159+
160+
/* Begin PBXVariantGroup section */
161+
5307C7DC19B6245B00CFD37F /* Main.storyboard */ = {
162+
isa = PBXVariantGroup;
163+
children = (
164+
5307C7DD19B6245B00CFD37F /* Base */,
165+
);
166+
name = Main.storyboard;
167+
sourceTree = "<group>";
168+
};
169+
53D5574E19B66F5D005EAFDF /* Localizable.strings */ = {
170+
isa = PBXVariantGroup;
171+
children = (
172+
53D5574F19B66F5D005EAFDF /* en */,
173+
);
174+
name = Localizable.strings;
175+
sourceTree = "<group>";
176+
};
177+
/* End PBXVariantGroup section */
178+
179+
/* Begin XCBuildConfiguration section */
180+
5307C7ED19B6245B00CFD37F /* Debug */ = {
181+
isa = XCBuildConfiguration;
182+
buildSettings = {
183+
ALWAYS_SEARCH_USER_PATHS = NO;
184+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
185+
CLANG_CXX_LIBRARY = "libc++";
186+
CLANG_ENABLE_MODULES = YES;
187+
CLANG_ENABLE_OBJC_ARC = YES;
188+
CLANG_WARN_BOOL_CONVERSION = YES;
189+
CLANG_WARN_CONSTANT_CONVERSION = YES;
190+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
191+
CLANG_WARN_EMPTY_BODY = YES;
192+
CLANG_WARN_ENUM_CONVERSION = YES;
193+
CLANG_WARN_INT_CONVERSION = YES;
194+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
195+
CLANG_WARN_UNREACHABLE_CODE = YES;
196+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
197+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
198+
COPY_PHASE_STRIP = NO;
199+
ENABLE_STRICT_OBJC_MSGSEND = YES;
200+
GCC_C_LANGUAGE_STANDARD = gnu99;
201+
GCC_DYNAMIC_NO_PIC = NO;
202+
GCC_OPTIMIZATION_LEVEL = 0;
203+
GCC_PREPROCESSOR_DEFINITIONS = (
204+
"DEBUG=1",
205+
"$(inherited)",
206+
);
207+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
208+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
209+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
210+
GCC_WARN_UNDECLARED_SELECTOR = YES;
211+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
212+
GCC_WARN_UNUSED_FUNCTION = YES;
213+
GCC_WARN_UNUSED_VARIABLE = YES;
214+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
215+
MTL_ENABLE_DEBUG_INFO = YES;
216+
ONLY_ACTIVE_ARCH = YES;
217+
SDKROOT = iphoneos;
218+
TARGETED_DEVICE_FAMILY = "1,2";
219+
};
220+
name = Debug;
221+
};
222+
5307C7EE19B6245B00CFD37F /* Release */ = {
223+
isa = XCBuildConfiguration;
224+
buildSettings = {
225+
ALWAYS_SEARCH_USER_PATHS = NO;
226+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
227+
CLANG_CXX_LIBRARY = "libc++";
228+
CLANG_ENABLE_MODULES = YES;
229+
CLANG_ENABLE_OBJC_ARC = YES;
230+
CLANG_WARN_BOOL_CONVERSION = YES;
231+
CLANG_WARN_CONSTANT_CONVERSION = YES;
232+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
233+
CLANG_WARN_EMPTY_BODY = YES;
234+
CLANG_WARN_ENUM_CONVERSION = YES;
235+
CLANG_WARN_INT_CONVERSION = YES;
236+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
237+
CLANG_WARN_UNREACHABLE_CODE = YES;
238+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
239+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
240+
COPY_PHASE_STRIP = YES;
241+
ENABLE_NS_ASSERTIONS = NO;
242+
ENABLE_STRICT_OBJC_MSGSEND = YES;
243+
GCC_C_LANGUAGE_STANDARD = gnu99;
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.0;
251+
MTL_ENABLE_DEBUG_INFO = NO;
252+
SDKROOT = iphoneos;
253+
TARGETED_DEVICE_FAMILY = "1,2";
254+
VALIDATE_PRODUCT = YES;
255+
};
256+
name = Release;
257+
};
258+
5307C7F019B6245B00CFD37F /* Debug */ = {
259+
isa = XCBuildConfiguration;
260+
buildSettings = {
261+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
262+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
263+
INFOPLIST_FILE = AlertController/Info.plist;
264+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
265+
PRODUCT_NAME = "$(TARGET_NAME)";
266+
};
267+
name = Debug;
268+
};
269+
5307C7F119B6245B00CFD37F /* Release */ = {
270+
isa = XCBuildConfiguration;
271+
buildSettings = {
272+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
273+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
274+
INFOPLIST_FILE = AlertController/Info.plist;
275+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
276+
PRODUCT_NAME = "$(TARGET_NAME)";
277+
};
278+
name = Release;
279+
};
280+
/* End XCBuildConfiguration section */
281+
282+
/* Begin XCConfigurationList section */
283+
5307C7CA19B6245B00CFD37F /* Build configuration list for PBXProject "AlertController" */ = {
284+
isa = XCConfigurationList;
285+
buildConfigurations = (
286+
5307C7ED19B6245B00CFD37F /* Debug */,
287+
5307C7EE19B6245B00CFD37F /* Release */,
288+
);
289+
defaultConfigurationIsVisible = 0;
290+
defaultConfigurationName = Release;
291+
};
292+
5307C7EF19B6245B00CFD37F /* Build configuration list for PBXNativeTarget "AlertController" */ = {
293+
isa = XCConfigurationList;
294+
buildConfigurations = (
295+
5307C7F019B6245B00CFD37F /* Debug */,
296+
5307C7F119B6245B00CFD37F /* Release */,
297+
);
298+
defaultConfigurationIsVisible = 0;
299+
defaultConfigurationName = Release;
300+
};
301+
/* End XCConfigurationList section */
302+
};
303+
rootObject = 5307C7C719B6245B00CFD37F /* Project object */;
304+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//
2+
// AppDelegate.h
3+
// AlertController
4+
//
5+
// Created by Keith Harrison http://useyourloaf.com
6+
// Copyright (c) 2014 Keith Harrison. All rights reserved.
7+
//
8+
// Redistribution and use in source and binary forms, with or without
9+
// modification, are permitted provided that the following conditions are met:
10+
//
11+
// 1. Redistributions of source code must retain the above copyright
12+
// notice, this list of conditions and the following disclaimer.
13+
//
14+
// 2. Redistributions in binary form must reproduce the above copyright
15+
// notice, this list of conditions and the following disclaimer in the
16+
// documentation and/or other materials provided with the distribution.
17+
//
18+
// 3. Neither the name of the copyright holder nor the names of its
19+
// contributors may be used to endorse or promote products derived from
20+
// this software without specific prior written permission.
21+
//
22+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26+
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29+
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30+
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
// POSSIBILITY OF SUCH DAMAGE.
33+
34+
35+
#import <UIKit/UIKit.h>
36+
37+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
38+
39+
@property (strong, nonatomic) UIWindow *window;
40+
41+
@end
42+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//
2+
// AppDelegate.m
3+
// AlertController
4+
//
5+
// Created by Keith Harrison http://useyourloaf.com
6+
// Copyright (c) 2014 Keith Harrison. All rights reserved.
7+
//
8+
// Redistribution and use in source and binary forms, with or without
9+
// modification, are permitted provided that the following conditions are met:
10+
//
11+
// 1. Redistributions of source code must retain the above copyright
12+
// notice, this list of conditions and the following disclaimer.
13+
//
14+
// 2. Redistributions in binary form must reproduce the above copyright
15+
// notice, this list of conditions and the following disclaimer in the
16+
// documentation and/or other materials provided with the distribution.
17+
//
18+
// 3. Neither the name of the copyright holder nor the names of its
19+
// contributors may be used to endorse or promote products derived from
20+
// this software without specific prior written permission.
21+
//
22+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26+
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29+
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30+
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
// POSSIBILITY OF SUCH DAMAGE.
33+
34+
35+
#import "AppDelegate.h"
36+
37+
@implementation AppDelegate
38+
39+
@end

0 commit comments

Comments
 (0)