Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Starting chapter 1

  • Loading branch information...
commit d7dbed19caed6687b5cfb1afc81b04b334134f8c 1 parent ab10005
Thibaut Barrère authored
282 01/Quiz/Quiz.xcodeproj/project.pbxproj
... ... @@ -0,0 +1,282 @@
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 46;
  7 + objects = {
  8 +
  9 +/* Begin PBXBuildFile section */
  10 + E63BFD38155903310081BCCB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E63BFD37155903310081BCCB /* UIKit.framework */; };
  11 + E63BFD3A155903310081BCCB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E63BFD39155903310081BCCB /* Foundation.framework */; };
  12 + E63BFD3C155903310081BCCB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E63BFD3B155903310081BCCB /* CoreGraphics.framework */; };
  13 + E63BFD42155903310081BCCB /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E63BFD40155903310081BCCB /* InfoPlist.strings */; };
  14 + E63BFD44155903310081BCCB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E63BFD43155903310081BCCB /* main.m */; };
  15 + E63BFD48155903310081BCCB /* QuizAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E63BFD47155903310081BCCB /* QuizAppDelegate.m */; };
  16 + E63BFD4B155903310081BCCB /* QuizViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E63BFD4A155903310081BCCB /* QuizViewController.m */; };
  17 + E63BFD4E155903310081BCCB /* QuizViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E63BFD4C155903310081BCCB /* QuizViewController.xib */; };
  18 +/* End PBXBuildFile section */
  19 +
  20 +/* Begin PBXFileReference section */
  21 + E63BFD33155903310081BCCB /* Quiz.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Quiz.app; sourceTree = BUILT_PRODUCTS_DIR; };
  22 + E63BFD37155903310081BCCB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  23 + E63BFD39155903310081BCCB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  24 + E63BFD3B155903310081BCCB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  25 + E63BFD3F155903310081BCCB /* Quiz-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Quiz-Info.plist"; sourceTree = "<group>"; };
  26 + E63BFD41155903310081BCCB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  27 + E63BFD43155903310081BCCB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  28 + E63BFD45155903310081BCCB /* Quiz-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Quiz-Prefix.pch"; sourceTree = "<group>"; };
  29 + E63BFD46155903310081BCCB /* QuizAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = QuizAppDelegate.h; sourceTree = "<group>"; };
  30 + E63BFD47155903310081BCCB /* QuizAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = QuizAppDelegate.m; sourceTree = "<group>"; };
  31 + E63BFD49155903310081BCCB /* QuizViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = QuizViewController.h; sourceTree = "<group>"; };
  32 + E63BFD4A155903310081BCCB /* QuizViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = QuizViewController.m; sourceTree = "<group>"; };
  33 + E63BFD4D155903310081BCCB /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/QuizViewController.xib; sourceTree = "<group>"; };
  34 +/* End PBXFileReference section */
  35 +
  36 +/* Begin PBXFrameworksBuildPhase section */
  37 + E63BFD30155903310081BCCB /* Frameworks */ = {
  38 + isa = PBXFrameworksBuildPhase;
  39 + buildActionMask = 2147483647;
  40 + files = (
  41 + E63BFD38155903310081BCCB /* UIKit.framework in Frameworks */,
  42 + E63BFD3A155903310081BCCB /* Foundation.framework in Frameworks */,
  43 + E63BFD3C155903310081BCCB /* CoreGraphics.framework in Frameworks */,
  44 + );
  45 + runOnlyForDeploymentPostprocessing = 0;
  46 + };
  47 +/* End PBXFrameworksBuildPhase section */
  48 +
  49 +/* Begin PBXGroup section */
  50 + E63BFD28155903310081BCCB = {
  51 + isa = PBXGroup;
  52 + children = (
  53 + E63BFD3D155903310081BCCB /* Quiz */,
  54 + E63BFD36155903310081BCCB /* Frameworks */,
  55 + E63BFD34155903310081BCCB /* Products */,
  56 + );
  57 + sourceTree = "<group>";
  58 + };
  59 + E63BFD34155903310081BCCB /* Products */ = {
  60 + isa = PBXGroup;
  61 + children = (
  62 + E63BFD33155903310081BCCB /* Quiz.app */,
  63 + );
  64 + name = Products;
  65 + sourceTree = "<group>";
  66 + };
  67 + E63BFD36155903310081BCCB /* Frameworks */ = {
  68 + isa = PBXGroup;
  69 + children = (
  70 + E63BFD37155903310081BCCB /* UIKit.framework */,
  71 + E63BFD39155903310081BCCB /* Foundation.framework */,
  72 + E63BFD3B155903310081BCCB /* CoreGraphics.framework */,
  73 + );
  74 + name = Frameworks;
  75 + sourceTree = "<group>";
  76 + };
  77 + E63BFD3D155903310081BCCB /* Quiz */ = {
  78 + isa = PBXGroup;
  79 + children = (
  80 + E63BFD46155903310081BCCB /* QuizAppDelegate.h */,
  81 + E63BFD47155903310081BCCB /* QuizAppDelegate.m */,
  82 + E63BFD49155903310081BCCB /* QuizViewController.h */,
  83 + E63BFD4A155903310081BCCB /* QuizViewController.m */,
  84 + E63BFD4C155903310081BCCB /* QuizViewController.xib */,
  85 + E63BFD3E155903310081BCCB /* Supporting Files */,
  86 + );
  87 + path = Quiz;
  88 + sourceTree = "<group>";
  89 + };
  90 + E63BFD3E155903310081BCCB /* Supporting Files */ = {
  91 + isa = PBXGroup;
  92 + children = (
  93 + E63BFD3F155903310081BCCB /* Quiz-Info.plist */,
  94 + E63BFD40155903310081BCCB /* InfoPlist.strings */,
  95 + E63BFD43155903310081BCCB /* main.m */,
  96 + E63BFD45155903310081BCCB /* Quiz-Prefix.pch */,
  97 + );
  98 + name = "Supporting Files";
  99 + sourceTree = "<group>";
  100 + };
  101 +/* End PBXGroup section */
  102 +
  103 +/* Begin PBXNativeTarget section */
  104 + E63BFD32155903310081BCCB /* Quiz */ = {
  105 + isa = PBXNativeTarget;
  106 + buildConfigurationList = E63BFD51155903310081BCCB /* Build configuration list for PBXNativeTarget "Quiz" */;
  107 + buildPhases = (
  108 + E63BFD2F155903310081BCCB /* Sources */,
  109 + E63BFD30155903310081BCCB /* Frameworks */,
  110 + E63BFD31155903310081BCCB /* Resources */,
  111 + );
  112 + buildRules = (
  113 + );
  114 + dependencies = (
  115 + );
  116 + name = Quiz;
  117 + productName = Quiz;
  118 + productReference = E63BFD33155903310081BCCB /* Quiz.app */;
  119 + productType = "com.apple.product-type.application";
  120 + };
  121 +/* End PBXNativeTarget section */
  122 +
  123 +/* Begin PBXProject section */
  124 + E63BFD2A155903310081BCCB /* Project object */ = {
  125 + isa = PBXProject;
  126 + attributes = {
  127 + LastUpgradeCheck = 0420;
  128 + ORGANIZATIONNAME = LoGeek;
  129 + };
  130 + buildConfigurationList = E63BFD2D155903310081BCCB /* Build configuration list for PBXProject "Quiz" */;
  131 + compatibilityVersion = "Xcode 3.2";
  132 + developmentRegion = English;
  133 + hasScannedForEncodings = 0;
  134 + knownRegions = (
  135 + en,
  136 + );
  137 + mainGroup = E63BFD28155903310081BCCB;
  138 + productRefGroup = E63BFD34155903310081BCCB /* Products */;
  139 + projectDirPath = "";
  140 + projectRoot = "";
  141 + targets = (
  142 + E63BFD32155903310081BCCB /* Quiz */,
  143 + );
  144 + };
  145 +/* End PBXProject section */
  146 +
  147 +/* Begin PBXResourcesBuildPhase section */
  148 + E63BFD31155903310081BCCB /* Resources */ = {
  149 + isa = PBXResourcesBuildPhase;
  150 + buildActionMask = 2147483647;
  151 + files = (
  152 + E63BFD42155903310081BCCB /* InfoPlist.strings in Resources */,
  153 + E63BFD4E155903310081BCCB /* QuizViewController.xib in Resources */,
  154 + );
  155 + runOnlyForDeploymentPostprocessing = 0;
  156 + };
  157 +/* End PBXResourcesBuildPhase section */
  158 +
  159 +/* Begin PBXSourcesBuildPhase section */
  160 + E63BFD2F155903310081BCCB /* Sources */ = {
  161 + isa = PBXSourcesBuildPhase;
  162 + buildActionMask = 2147483647;
  163 + files = (
  164 + E63BFD44155903310081BCCB /* main.m in Sources */,
  165 + E63BFD48155903310081BCCB /* QuizAppDelegate.m in Sources */,
  166 + E63BFD4B155903310081BCCB /* QuizViewController.m in Sources */,
  167 + );
  168 + runOnlyForDeploymentPostprocessing = 0;
  169 + };
  170 +/* End PBXSourcesBuildPhase section */
  171 +
  172 +/* Begin PBXVariantGroup section */
  173 + E63BFD40155903310081BCCB /* InfoPlist.strings */ = {
  174 + isa = PBXVariantGroup;
  175 + children = (
  176 + E63BFD41155903310081BCCB /* en */,
  177 + );
  178 + name = InfoPlist.strings;
  179 + sourceTree = "<group>";
  180 + };
  181 + E63BFD4C155903310081BCCB /* QuizViewController.xib */ = {
  182 + isa = PBXVariantGroup;
  183 + children = (
  184 + E63BFD4D155903310081BCCB /* en */,
  185 + );
  186 + name = QuizViewController.xib;
  187 + sourceTree = "<group>";
  188 + };
  189 +/* End PBXVariantGroup section */
  190 +
  191 +/* Begin XCBuildConfiguration section */
  192 + E63BFD4F155903310081BCCB /* Debug */ = {
  193 + isa = XCBuildConfiguration;
  194 + buildSettings = {
  195 + ALWAYS_SEARCH_USER_PATHS = NO;
  196 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  197 + CLANG_ENABLE_OBJC_ARC = YES;
  198 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  199 + COPY_PHASE_STRIP = NO;
  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_VERSION = com.apple.compilers.llvm.clang.1_0;
  209 + GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  210 + GCC_WARN_ABOUT_RETURN_TYPE = YES;
  211 + GCC_WARN_UNUSED_VARIABLE = YES;
  212 + IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  213 + SDKROOT = iphoneos;
  214 + };
  215 + name = Debug;
  216 + };
  217 + E63BFD50155903310081BCCB /* Release */ = {
  218 + isa = XCBuildConfiguration;
  219 + buildSettings = {
  220 + ALWAYS_SEARCH_USER_PATHS = NO;
  221 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  222 + CLANG_ENABLE_OBJC_ARC = YES;
  223 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  224 + COPY_PHASE_STRIP = YES;
  225 + GCC_C_LANGUAGE_STANDARD = gnu99;
  226 + GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
  227 + GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  228 + GCC_WARN_ABOUT_RETURN_TYPE = YES;
  229 + GCC_WARN_UNUSED_VARIABLE = YES;
  230 + IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  231 + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
  232 + SDKROOT = iphoneos;
  233 + VALIDATE_PRODUCT = YES;
  234 + };
  235 + name = Release;
  236 + };
  237 + E63BFD52155903310081BCCB /* Debug */ = {
  238 + isa = XCBuildConfiguration;
  239 + buildSettings = {
  240 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  241 + GCC_PREFIX_HEADER = "Quiz/Quiz-Prefix.pch";
  242 + INFOPLIST_FILE = "Quiz/Quiz-Info.plist";
  243 + PRODUCT_NAME = "$(TARGET_NAME)";
  244 + WRAPPER_EXTENSION = app;
  245 + };
  246 + name = Debug;
  247 + };
  248 + E63BFD53155903310081BCCB /* Release */ = {
  249 + isa = XCBuildConfiguration;
  250 + buildSettings = {
  251 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  252 + GCC_PREFIX_HEADER = "Quiz/Quiz-Prefix.pch";
  253 + INFOPLIST_FILE = "Quiz/Quiz-Info.plist";
  254 + PRODUCT_NAME = "$(TARGET_NAME)";
  255 + WRAPPER_EXTENSION = app;
  256 + };
  257 + name = Release;
  258 + };
  259 +/* End XCBuildConfiguration section */
  260 +
  261 +/* Begin XCConfigurationList section */
  262 + E63BFD2D155903310081BCCB /* Build configuration list for PBXProject "Quiz" */ = {
  263 + isa = XCConfigurationList;
  264 + buildConfigurations = (
  265 + E63BFD4F155903310081BCCB /* Debug */,
  266 + E63BFD50155903310081BCCB /* Release */,
  267 + );
  268 + defaultConfigurationIsVisible = 0;
  269 + defaultConfigurationName = Release;
  270 + };
  271 + E63BFD51155903310081BCCB /* Build configuration list for PBXNativeTarget "Quiz" */ = {
  272 + isa = XCConfigurationList;
  273 + buildConfigurations = (
  274 + E63BFD52155903310081BCCB /* Debug */,
  275 + E63BFD53155903310081BCCB /* Release */,
  276 + );
  277 + defaultConfigurationIsVisible = 0;
  278 + };
  279 +/* End XCConfigurationList section */
  280 + };
  281 + rootObject = E63BFD2A155903310081BCCB /* Project object */;
  282 +}
7 01/Quiz/Quiz.xcodeproj/project.xcworkspace/contents.xcworkspacedata
... ... @@ -0,0 +1,7 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "self:Quiz.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
40 01/Quiz/Quiz/Quiz-Info.plist
... ... @@ -0,0 +1,40 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>en</string>
  7 + <key>CFBundleDisplayName</key>
  8 + <string>${PRODUCT_NAME}</string>
  9 + <key>CFBundleExecutable</key>
  10 + <string>${EXECUTABLE_NAME}</string>
  11 + <key>CFBundleIconFiles</key>
  12 + <array/>
  13 + <key>CFBundleIdentifier</key>
  14 + <string>com.logeek.${PRODUCT_NAME:rfc1034identifier}</string>
  15 + <key>CFBundleInfoDictionaryVersion</key>
  16 + <string>6.0</string>
  17 + <key>CFBundleName</key>
  18 + <string>${PRODUCT_NAME}</string>
  19 + <key>CFBundlePackageType</key>
  20 + <string>APPL</string>
  21 + <key>CFBundleShortVersionString</key>
  22 + <string>1.0</string>
  23 + <key>CFBundleSignature</key>
  24 + <string>????</string>
  25 + <key>CFBundleVersion</key>
  26 + <string>1.0</string>
  27 + <key>LSRequiresIPhoneOS</key>
  28 + <true/>
  29 + <key>UIRequiredDeviceCapabilities</key>
  30 + <array>
  31 + <string>armv7</string>
  32 + </array>
  33 + <key>UISupportedInterfaceOrientations</key>
  34 + <array>
  35 + <string>UIInterfaceOrientationPortrait</string>
  36 + <string>UIInterfaceOrientationLandscapeLeft</string>
  37 + <string>UIInterfaceOrientationLandscapeRight</string>
  38 + </array>
  39 +</dict>
  40 +</plist>
14 01/Quiz/Quiz/Quiz-Prefix.pch
... ... @@ -0,0 +1,14 @@
  1 +//
  2 +// Prefix header for all source files of the 'Quiz' target in the 'Quiz' project
  3 +//
  4 +
  5 +#import <Availability.h>
  6 +
  7 +#ifndef __IPHONE_4_0
  8 +#warning "This project uses features only available in iOS SDK 4.0 and later."
  9 +#endif
  10 +
  11 +#ifdef __OBJC__
  12 + #import <UIKit/UIKit.h>
  13 + #import <Foundation/Foundation.h>
  14 +#endif
19 01/Quiz/Quiz/QuizAppDelegate.h
... ... @@ -0,0 +1,19 @@
  1 +//
  2 +// QuizAppDelegate.h
  3 +// Quiz
  4 +//
  5 +// Created by Thibaut Barrère on 5/8/12.
  6 +// Copyright (c) 2012 LoGeek. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +@class QuizViewController;
  12 +
  13 +@interface QuizAppDelegate : UIResponder <UIApplicationDelegate>
  14 +
  15 +@property (strong, nonatomic) UIWindow *window;
  16 +
  17 +@property (strong, nonatomic) QuizViewController *viewController;
  18 +
  19 +@end
67 01/Quiz/Quiz/QuizAppDelegate.m
... ... @@ -0,0 +1,67 @@
  1 +//
  2 +// QuizAppDelegate.m
  3 +// Quiz
  4 +//
  5 +// Created by Thibaut Barrère on 5/8/12.
  6 +// Copyright (c) 2012 LoGeek. All rights reserved.
  7 +//
  8 +
  9 +#import "QuizAppDelegate.h"
  10 +
  11 +#import "QuizViewController.h"
  12 +
  13 +@implementation QuizAppDelegate
  14 +
  15 +@synthesize window = _window;
  16 +@synthesize viewController = _viewController;
  17 +
  18 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  19 +{
  20 + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  21 + // Override point for customization after application launch.
  22 + self.viewController = [[QuizViewController alloc] initWithNibName:@"QuizViewController" bundle:nil];
  23 + self.window.rootViewController = self.viewController;
  24 + [self.window makeKeyAndVisible];
  25 + return YES;
  26 +}
  27 +
  28 +- (void)applicationWillResignActive:(UIApplication *)application
  29 +{
  30 + /*
  31 + 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.
  32 + 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.
  33 + */
  34 +}
  35 +
  36 +- (void)applicationDidEnterBackground:(UIApplication *)application
  37 +{
  38 + /*
  39 + 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.
  40 + If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  41 + */
  42 +}
  43 +
  44 +- (void)applicationWillEnterForeground:(UIApplication *)application
  45 +{
  46 + /*
  47 + 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.
  48 + */
  49 +}
  50 +
  51 +- (void)applicationDidBecomeActive:(UIApplication *)application
  52 +{
  53 + /*
  54 + 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.
  55 + */
  56 +}
  57 +
  58 +- (void)applicationWillTerminate:(UIApplication *)application
  59 +{
  60 + /*
  61 + Called when the application is about to terminate.
  62 + Save data if appropriate.
  63 + See also applicationDidEnterBackground:.
  64 + */
  65 +}
  66 +
  67 +@end
13 01/Quiz/Quiz/QuizViewController.h
... ... @@ -0,0 +1,13 @@
  1 +//
  2 +// QuizViewController.h
  3 +// Quiz
  4 +//
  5 +// Created by Thibaut Barrère on 5/8/12.
  6 +// Copyright (c) 2012 LoGeek. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +@interface QuizViewController : UIViewController
  12 +
  13 +@end
60 01/Quiz/Quiz/QuizViewController.m
... ... @@ -0,0 +1,60 @@
  1 +//
  2 +// QuizViewController.m
  3 +// Quiz
  4 +//
  5 +// Created by Thibaut Barrère on 5/8/12.
  6 +// Copyright (c) 2012 LoGeek. All rights reserved.
  7 +//
  8 +
  9 +#import "QuizViewController.h"
  10 +
  11 +@implementation QuizViewController
  12 +
  13 +- (void)didReceiveMemoryWarning
  14 +{
  15 + [super didReceiveMemoryWarning];
  16 + // Release any cached data, images, etc that aren't in use.
  17 +}
  18 +
  19 +#pragma mark - View lifecycle
  20 +
  21 +- (void)viewDidLoad
  22 +{
  23 + [super viewDidLoad];
  24 + // Do any additional setup after loading the view, typically from a nib.
  25 +}
  26 +
  27 +- (void)viewDidUnload
  28 +{
  29 + [super viewDidUnload];
  30 + // Release any retained subviews of the main view.
  31 + // e.g. self.myOutlet = nil;
  32 +}
  33 +
  34 +- (void)viewWillAppear:(BOOL)animated
  35 +{
  36 + [super viewWillAppear:animated];
  37 +}
  38 +
  39 +- (void)viewDidAppear:(BOOL)animated
  40 +{
  41 + [super viewDidAppear:animated];
  42 +}
  43 +
  44 +- (void)viewWillDisappear:(BOOL)animated
  45 +{
  46 + [super viewWillDisappear:animated];
  47 +}
  48 +
  49 +- (void)viewDidDisappear:(BOOL)animated
  50 +{
  51 + [super viewDidDisappear:animated];
  52 +}
  53 +
  54 +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  55 +{
  56 + // Return YES for supported orientations
  57 + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  58 +}
  59 +
  60 +@end
2  01/Quiz/Quiz/en.lproj/InfoPlist.strings
... ... @@ -0,0 +1,2 @@
  1 +/* Localized versions of Info.plist keys */
  2 +
119 01/Quiz/Quiz/en.lproj/QuizViewController.xib
... ... @@ -0,0 +1,119 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
  3 + <data>
  4 + <int key="IBDocument.SystemTarget">1280</int>
  5 + <string key="IBDocument.SystemVersion">11C25</string>
  6 + <string key="IBDocument.InterfaceBuilderVersion">1919</string>
  7 + <string key="IBDocument.AppKitVersion">1138.11</string>
  8 + <string key="IBDocument.HIToolboxVersion">566.00</string>
  9 + <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10 + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  11 + <string key="NS.object.0">916</string>
  12 + </object>
  13 + <array key="IBDocument.IntegratedClassDependencies">
  14 + <string>IBProxyObject</string>
  15 + <string>IBUIView</string>
  16 + </array>
  17 + <array key="IBDocument.PluginDependencies">
  18 + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  19 + </array>
  20 + <object class="NSMutableDictionary" key="IBDocument.Metadata">
  21 + <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
  22 + <integer value="1" key="NS.object.0"/>
  23 + </object>
  24 + <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  25 + <object class="IBProxyObject" id="372490531">
  26 + <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
  27 + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  28 + </object>
  29 + <object class="IBProxyObject" id="843779117">
  30 + <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
  31 + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  32 + </object>
  33 + <object class="IBUIView" id="774585933">
  34 + <reference key="NSNextResponder"/>
  35 + <int key="NSvFlags">274</int>
  36 + <string key="NSFrame">{{0, 20}, {320, 460}}</string>
  37 + <reference key="NSSuperview"/>
  38 + <reference key="NSWindow"/>
  39 + <object class="NSColor" key="IBUIBackgroundColor">
  40 + <int key="NSColorSpace">3</int>
  41 + <bytes key="NSWhite">MC43NQA</bytes>
  42 + <object class="NSColorSpace" key="NSCustomColorSpace">
  43 + <int key="NSID">2</int>
  44 + </object>
  45 + </object>
  46 + <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
  47 + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
  48 + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  49 + </object>
  50 + </array>
  51 + <object class="IBObjectContainer" key="IBDocument.Objects">
  52 + <array class="NSMutableArray" key="connectionRecords">
  53 + <object class="IBConnectionRecord">
  54 + <object class="IBCocoaTouchOutletConnection" key="connection">
  55 + <string key="label">view</string>
  56 + <reference key="source" ref="372490531"/>
  57 + <reference key="destination" ref="774585933"/>
  58 + </object>
  59 + <int key="connectionID">7</int>
  60 + </object>
  61 + </array>
  62 + <object class="IBMutableOrderedSet" key="objectRecords">
  63 + <array key="orderedObjects">
  64 + <object class="IBObjectRecord">
  65 + <int key="objectID">0</int>
  66 + <array key="object" id="0"/>
  67 + <reference key="children" ref="1000"/>
  68 + <nil key="parent"/>
  69 + </object>
  70 + <object class="IBObjectRecord">
  71 + <int key="objectID">-1</int>
  72 + <reference key="object" ref="372490531"/>
  73 + <reference key="parent" ref="0"/>
  74 + <string key="objectName">File's Owner</string>
  75 + </object>
  76 + <object class="IBObjectRecord">
  77 + <int key="objectID">-2</int>
  78 + <reference key="object" ref="843779117"/>
  79 + <reference key="parent" ref="0"/>
  80 + </object>
  81 + <object class="IBObjectRecord">
  82 + <int key="objectID">6</int>
  83 + <reference key="object" ref="774585933"/>
  84 + <reference key="parent" ref="0"/>
  85 + </object>
  86 + </array>
  87 + </object>
  88 + <dictionary class="NSMutableDictionary" key="flattenedProperties">
  89 + <string key="-1.CustomClassName">QuizViewController</string>
  90 + <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  91 + <string key="-2.CustomClassName">UIResponder</string>
  92 + <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  93 + <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  94 + </dictionary>
  95 + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
  96 + <nil key="activeLocalization"/>
  97 + <dictionary class="NSMutableDictionary" key="localizations"/>
  98 + <nil key="sourceID"/>
  99 + <int key="maxID">7</int>
  100 + </object>
  101 + <object class="IBClassDescriber" key="IBDocument.Classes">
  102 + <array class="NSMutableArray" key="referencedPartialClassDescriptions">
  103 + <object class="IBPartialClassDescription">
  104 + <string key="className">QuizViewController</string>
  105 + <string key="superclassName">UIViewController</string>
  106 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  107 + <string key="majorKey">IBProjectSource</string>
  108 + <string key="minorKey">./Classes/QuizViewController.h</string>
  109 + </object>
  110 + </object>
  111 + </array>
  112 + </object>
  113 + <int key="IBDocument.localizationMode">0</int>
  114 + <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
  115 + <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
  116 + <int key="IBDocument.defaultPropertyAccessControl">3</int>
  117 + <string key="IBCocoaTouchPluginVersion">916</string>
  118 + </data>
  119 +</archive>
18 01/Quiz/Quiz/main.m
... ... @@ -0,0 +1,18 @@
  1 +//
  2 +// main.m
  3 +// Quiz
  4 +//
  5 +// Created by Thibaut Barrère on 5/8/12.
  6 +// Copyright (c) 2012 LoGeek. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +#import "QuizAppDelegate.h"
  12 +
  13 +int main(int argc, char *argv[])
  14 +{
  15 + @autoreleasepool {
  16 + return UIApplicationMain(argc, argv, nil, NSStringFromClass([QuizAppDelegate class]));
  17 + }
  18 +}

0 comments on commit d7dbed1

Please sign in to comment.
Something went wrong with that request. Please try again.