From 70477d2c4708d7aa68a4bf5d447921e419202bf7 Mon Sep 17 00:00:00 2001 From: Abel Fokkinga Date: Mon, 27 Aug 2012 20:39:49 +0200 Subject: [PATCH] Initial Commit --- Espagram.xcodeproj/project.pbxproj | 287 ++++++++++++++++++++ Espagram/Espagram-Info.plist | 40 +++ Espagram/Espagram-Prefix.pch | 14 + Espagram/EspagramAppDelegate.h | 15 + Espagram/EspagramAppDelegate.m | 46 ++++ Espagram/EspagramViewController.h | 13 + Espagram/EspagramViewController.m | 34 +++ Espagram/en.lproj/InfoPlist.strings | 2 + Espagram/en.lproj/MainStoryboard.storyboard | 27 ++ Espagram/main.m | 18 ++ 10 files changed, 496 insertions(+) create mode 100644 Espagram.xcodeproj/project.pbxproj create mode 100644 Espagram/Espagram-Info.plist create mode 100644 Espagram/Espagram-Prefix.pch create mode 100644 Espagram/EspagramAppDelegate.h create mode 100644 Espagram/EspagramAppDelegate.m create mode 100644 Espagram/EspagramViewController.h create mode 100644 Espagram/EspagramViewController.m create mode 100644 Espagram/en.lproj/InfoPlist.strings create mode 100644 Espagram/en.lproj/MainStoryboard.storyboard create mode 100644 Espagram/main.m diff --git a/Espagram.xcodeproj/project.pbxproj b/Espagram.xcodeproj/project.pbxproj new file mode 100644 index 0000000..76037bb --- /dev/null +++ b/Espagram.xcodeproj/project.pbxproj @@ -0,0 +1,287 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + B506EC6315EBF67500566A27 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B506EC6215EBF67500566A27 /* UIKit.framework */; }; + B506EC6515EBF67500566A27 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B506EC6415EBF67500566A27 /* Foundation.framework */; }; + B506EC6715EBF67500566A27 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B506EC6615EBF67500566A27 /* CoreGraphics.framework */; }; + B506EC6D15EBF67500566A27 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B506EC6B15EBF67500566A27 /* InfoPlist.strings */; }; + B506EC6F15EBF67500566A27 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B506EC6E15EBF67500566A27 /* main.m */; }; + B506EC7315EBF67500566A27 /* EspagramAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B506EC7215EBF67500566A27 /* EspagramAppDelegate.m */; }; + B506EC7615EBF67500566A27 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B506EC7415EBF67500566A27 /* MainStoryboard.storyboard */; }; + B506EC7915EBF67500566A27 /* EspagramViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B506EC7815EBF67500566A27 /* EspagramViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + B506EC5E15EBF67500566A27 /* Espagram.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Espagram.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B506EC6215EBF67500566A27 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + B506EC6415EBF67500566A27 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + B506EC6615EBF67500566A27 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + B506EC6A15EBF67500566A27 /* Espagram-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Espagram-Info.plist"; sourceTree = ""; }; + B506EC6C15EBF67500566A27 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + B506EC6E15EBF67500566A27 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + B506EC7015EBF67500566A27 /* Espagram-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Espagram-Prefix.pch"; sourceTree = ""; }; + B506EC7115EBF67500566A27 /* EspagramAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EspagramAppDelegate.h; sourceTree = ""; }; + B506EC7215EBF67500566A27 /* EspagramAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EspagramAppDelegate.m; sourceTree = ""; }; + B506EC7515EBF67500566A27 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; + B506EC7715EBF67500566A27 /* EspagramViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EspagramViewController.h; sourceTree = ""; }; + B506EC7815EBF67500566A27 /* EspagramViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EspagramViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B506EC5B15EBF67500566A27 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B506EC6315EBF67500566A27 /* UIKit.framework in Frameworks */, + B506EC6515EBF67500566A27 /* Foundation.framework in Frameworks */, + B506EC6715EBF67500566A27 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B506EC5315EBF67500566A27 = { + isa = PBXGroup; + children = ( + B506EC6815EBF67500566A27 /* Espagram */, + B506EC6115EBF67500566A27 /* Frameworks */, + B506EC5F15EBF67500566A27 /* Products */, + ); + sourceTree = ""; + }; + B506EC5F15EBF67500566A27 /* Products */ = { + isa = PBXGroup; + children = ( + B506EC5E15EBF67500566A27 /* Espagram.app */, + ); + name = Products; + sourceTree = ""; + }; + B506EC6115EBF67500566A27 /* Frameworks */ = { + isa = PBXGroup; + children = ( + B506EC6215EBF67500566A27 /* UIKit.framework */, + B506EC6415EBF67500566A27 /* Foundation.framework */, + B506EC6615EBF67500566A27 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + B506EC6815EBF67500566A27 /* Espagram */ = { + isa = PBXGroup; + children = ( + B506EC7115EBF67500566A27 /* EspagramAppDelegate.h */, + B506EC7215EBF67500566A27 /* EspagramAppDelegate.m */, + B506EC7415EBF67500566A27 /* MainStoryboard.storyboard */, + B506EC7715EBF67500566A27 /* EspagramViewController.h */, + B506EC7815EBF67500566A27 /* EspagramViewController.m */, + B506EC6915EBF67500566A27 /* Supporting Files */, + ); + path = Espagram; + sourceTree = ""; + }; + B506EC6915EBF67500566A27 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + B506EC6A15EBF67500566A27 /* Espagram-Info.plist */, + B506EC6B15EBF67500566A27 /* InfoPlist.strings */, + B506EC6E15EBF67500566A27 /* main.m */, + B506EC7015EBF67500566A27 /* Espagram-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B506EC5D15EBF67500566A27 /* Espagram */ = { + isa = PBXNativeTarget; + buildConfigurationList = B506EC7C15EBF67500566A27 /* Build configuration list for PBXNativeTarget "Espagram" */; + buildPhases = ( + B506EC5A15EBF67500566A27 /* Sources */, + B506EC5B15EBF67500566A27 /* Frameworks */, + B506EC5C15EBF67500566A27 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Espagram; + productName = Espagram; + productReference = B506EC5E15EBF67500566A27 /* Espagram.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B506EC5515EBF67500566A27 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = Espagram; + LastUpgradeCheck = 0440; + ORGANIZATIONNAME = "Abel Fokkinga"; + }; + buildConfigurationList = B506EC5815EBF67500566A27 /* Build configuration list for PBXProject "Espagram" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = B506EC5315EBF67500566A27; + productRefGroup = B506EC5F15EBF67500566A27 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B506EC5D15EBF67500566A27 /* Espagram */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B506EC5C15EBF67500566A27 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B506EC6D15EBF67500566A27 /* InfoPlist.strings in Resources */, + B506EC7615EBF67500566A27 /* MainStoryboard.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B506EC5A15EBF67500566A27 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B506EC6F15EBF67500566A27 /* main.m in Sources */, + B506EC7315EBF67500566A27 /* EspagramAppDelegate.m in Sources */, + B506EC7915EBF67500566A27 /* EspagramViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + B506EC6B15EBF67500566A27 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + B506EC6C15EBF67500566A27 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + B506EC7415EBF67500566A27 /* MainStoryboard.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B506EC7515EBF67500566A27 /* en */, + ); + name = MainStoryboard.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + B506EC7A15EBF67500566A27 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + SDKROOT = iphoneos; + }; + name = Debug; + }; + B506EC7B15EBF67500566A27 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B506EC7D15EBF67500566A27 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Espagram/Espagram-Prefix.pch"; + INFOPLIST_FILE = "Espagram/Espagram-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + B506EC7E15EBF67500566A27 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Espagram/Espagram-Prefix.pch"; + INFOPLIST_FILE = "Espagram/Espagram-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B506EC5815EBF67500566A27 /* Build configuration list for PBXProject "Espagram" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B506EC7A15EBF67500566A27 /* Debug */, + B506EC7B15EBF67500566A27 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B506EC7C15EBF67500566A27 /* Build configuration list for PBXNativeTarget "Espagram" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B506EC7D15EBF67500566A27 /* Debug */, + B506EC7E15EBF67500566A27 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = B506EC5515EBF67500566A27 /* Project object */; +} diff --git a/Espagram/Espagram-Info.plist b/Espagram/Espagram-Info.plist new file mode 100644 index 0000000..4973682 --- /dev/null +++ b/Espagram/Espagram-Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.fokkinga.abel.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Espagram/Espagram-Prefix.pch b/Espagram/Espagram-Prefix.pch new file mode 100644 index 0000000..1b89e1f --- /dev/null +++ b/Espagram/Espagram-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'Espagram' target in the 'Espagram' project +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Espagram/EspagramAppDelegate.h b/Espagram/EspagramAppDelegate.h new file mode 100644 index 0000000..506ee9b --- /dev/null +++ b/Espagram/EspagramAppDelegate.h @@ -0,0 +1,15 @@ +// +// EspagramAppDelegate.h +// Espagram +// +// Created by Abel Fokkinga on 8/27/12. +// Copyright (c) 2012 Abel Fokkinga. All rights reserved. +// + +#import + +@interface EspagramAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Espagram/EspagramAppDelegate.m b/Espagram/EspagramAppDelegate.m new file mode 100644 index 0000000..b7e78dc --- /dev/null +++ b/Espagram/EspagramAppDelegate.m @@ -0,0 +1,46 @@ +// +// EspagramAppDelegate.m +// Espagram +// +// Created by Abel Fokkinga on 8/27/12. +// Copyright (c) 2012 Abel Fokkinga. All rights reserved. +// + +#import "EspagramAppDelegate.h" + +@implementation EspagramAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // 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. + // 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. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // 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. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // 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. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // 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. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Espagram/EspagramViewController.h b/Espagram/EspagramViewController.h new file mode 100644 index 0000000..c902d86 --- /dev/null +++ b/Espagram/EspagramViewController.h @@ -0,0 +1,13 @@ +// +// EspagramViewController.h +// Espagram +// +// Created by Abel Fokkinga on 8/27/12. +// Copyright (c) 2012 Abel Fokkinga. All rights reserved. +// + +#import + +@interface EspagramViewController : UIViewController + +@end diff --git a/Espagram/EspagramViewController.m b/Espagram/EspagramViewController.m new file mode 100644 index 0000000..b86d06f --- /dev/null +++ b/Espagram/EspagramViewController.m @@ -0,0 +1,34 @@ +// +// EspagramViewController.m +// Espagram +// +// Created by Abel Fokkinga on 8/27/12. +// Copyright (c) 2012 Abel Fokkinga. All rights reserved. +// + +#import "EspagramViewController.h" + +@interface EspagramViewController () + +@end + +@implementation EspagramViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)viewDidUnload +{ + [super viewDidUnload]; + // Release any retained subviews of the main view. +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); +} + +@end diff --git a/Espagram/en.lproj/InfoPlist.strings b/Espagram/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Espagram/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Espagram/en.lproj/MainStoryboard.storyboard b/Espagram/en.lproj/MainStoryboard.storyboard new file mode 100644 index 0000000..5c9da63 --- /dev/null +++ b/Espagram/en.lproj/MainStoryboard.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Espagram/main.m b/Espagram/main.m new file mode 100644 index 0000000..3daca6a --- /dev/null +++ b/Espagram/main.m @@ -0,0 +1,18 @@ +// +// main.m +// Espagram +// +// Created by Abel Fokkinga on 8/27/12. +// Copyright (c) 2012 Abel Fokkinga. All rights reserved. +// + +#import + +#import "EspagramAppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EspagramAppDelegate class])); + } +}