Răsfoiți Sursa

Commit inicial

Ernesto Blanco Careaga 9 ani în urmă
comite
0594ce7474

+ 318 - 0
TresEnRaya.xcodeproj/project.pbxproj

@@ -0,0 +1,318 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 46;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		D2D27AA81DF9BADF004D2378 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D2D27AA71DF9BADF004D2378 /* main.m */; };
+		D2D27AAB1DF9BADF004D2378 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D2D27AAA1DF9BADF004D2378 /* AppDelegate.m */; };
+		D2D27AAE1DF9BADF004D2378 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D2D27AAD1DF9BADF004D2378 /* ViewController.m */; };
+		D2D27AB11DF9BADF004D2378 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2D27AAF1DF9BADF004D2378 /* Main.storyboard */; };
+		D2D27AB31DF9BADF004D2378 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D2D27AB21DF9BADF004D2378 /* Assets.xcassets */; };
+		D2D27AB61DF9BADF004D2378 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2D27AB41DF9BADF004D2378 /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+		D2D27AA31DF9BADF004D2378 /* TresEnRaya.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TresEnRaya.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		D2D27AA71DF9BADF004D2378 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		D2D27AA91DF9BADF004D2378 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		D2D27AAA1DF9BADF004D2378 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		D2D27AAC1DF9BADF004D2378 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+		D2D27AAD1DF9BADF004D2378 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+		D2D27AB01DF9BADF004D2378 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		D2D27AB21DF9BADF004D2378 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		D2D27AB51DF9BADF004D2378 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		D2D27AB71DF9BADF004D2378 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		D2D27AA01DF9BADF004D2378 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		D2D27A9A1DF9BADF004D2378 = {
+			isa = PBXGroup;
+			children = (
+				D2D27AA51DF9BADF004D2378 /* TresEnRaya */,
+				D2D27AA41DF9BADF004D2378 /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		D2D27AA41DF9BADF004D2378 /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				D2D27AA31DF9BADF004D2378 /* TresEnRaya.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		D2D27AA51DF9BADF004D2378 /* TresEnRaya */ = {
+			isa = PBXGroup;
+			children = (
+				D2D27AA91DF9BADF004D2378 /* AppDelegate.h */,
+				D2D27AAA1DF9BADF004D2378 /* AppDelegate.m */,
+				D2D27AAC1DF9BADF004D2378 /* ViewController.h */,
+				D2D27AAD1DF9BADF004D2378 /* ViewController.m */,
+				D2D27AAF1DF9BADF004D2378 /* Main.storyboard */,
+				D2D27AB21DF9BADF004D2378 /* Assets.xcassets */,
+				D2D27AB41DF9BADF004D2378 /* LaunchScreen.storyboard */,
+				D2D27AB71DF9BADF004D2378 /* Info.plist */,
+				D2D27AA61DF9BADF004D2378 /* Supporting Files */,
+			);
+			path = TresEnRaya;
+			sourceTree = "<group>";
+		};
+		D2D27AA61DF9BADF004D2378 /* Supporting Files */ = {
+			isa = PBXGroup;
+			children = (
+				D2D27AA71DF9BADF004D2378 /* main.m */,
+			);
+			name = "Supporting Files";
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		D2D27AA21DF9BADF004D2378 /* TresEnRaya */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = D2D27ABA1DF9BADF004D2378 /* Build configuration list for PBXNativeTarget "TresEnRaya" */;
+			buildPhases = (
+				D2D27A9F1DF9BADF004D2378 /* Sources */,
+				D2D27AA01DF9BADF004D2378 /* Frameworks */,
+				D2D27AA11DF9BADF004D2378 /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = TresEnRaya;
+			productName = TresEnRaya;
+			productReference = D2D27AA31DF9BADF004D2378 /* TresEnRaya.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		D2D27A9B1DF9BADF004D2378 /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				LastUpgradeCheck = 0810;
+				ORGANIZATIONNAME = "Ernesto Blanco Careaga";
+				TargetAttributes = {
+					D2D27AA21DF9BADF004D2378 = {
+						CreatedOnToolsVersion = 8.1;
+						DevelopmentTeam = 6U8C826Z3N;
+						ProvisioningStyle = Automatic;
+					};
+				};
+			};
+			buildConfigurationList = D2D27A9E1DF9BADF004D2378 /* Build configuration list for PBXProject "TresEnRaya" */;
+			compatibilityVersion = "Xcode 3.2";
+			developmentRegion = English;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = D2D27A9A1DF9BADF004D2378;
+			productRefGroup = D2D27AA41DF9BADF004D2378 /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				D2D27AA21DF9BADF004D2378 /* TresEnRaya */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		D2D27AA11DF9BADF004D2378 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				D2D27AB61DF9BADF004D2378 /* LaunchScreen.storyboard in Resources */,
+				D2D27AB31DF9BADF004D2378 /* Assets.xcassets in Resources */,
+				D2D27AB11DF9BADF004D2378 /* Main.storyboard in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		D2D27A9F1DF9BADF004D2378 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				D2D27AAE1DF9BADF004D2378 /* ViewController.m in Sources */,
+				D2D27AAB1DF9BADF004D2378 /* AppDelegate.m in Sources */,
+				D2D27AA81DF9BADF004D2378 /* main.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		D2D27AAF1DF9BADF004D2378 /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				D2D27AB01DF9BADF004D2378 /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		D2D27AB41DF9BADF004D2378 /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				D2D27AB51DF9BADF004D2378 /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		D2D27AB81DF9BADF004D2378 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_SUSPICIOUS_MOVES = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 10.1;
+				MTL_ENABLE_DEBUG_INFO = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+			};
+			name = Debug;
+		};
+		D2D27AB91DF9BADF004D2378 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_SUSPICIOUS_MOVES = YES;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 10.1;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		D2D27ABB1DF9BADF004D2378 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				DEVELOPMENT_TEAM = 6U8C826Z3N;
+				INFOPLIST_FILE = TresEnRaya/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+				PRODUCT_BUNDLE_IDENTIFIER = legal.tics.TresEnRaya;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Debug;
+		};
+		D2D27ABC1DF9BADF004D2378 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				DEVELOPMENT_TEAM = 6U8C826Z3N;
+				INFOPLIST_FILE = TresEnRaya/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+				PRODUCT_BUNDLE_IDENTIFIER = legal.tics.TresEnRaya;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		D2D27A9E1DF9BADF004D2378 /* Build configuration list for PBXProject "TresEnRaya" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				D2D27AB81DF9BADF004D2378 /* Debug */,
+				D2D27AB91DF9BADF004D2378 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		D2D27ABA1DF9BADF004D2378 /* Build configuration list for PBXNativeTarget "TresEnRaya" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				D2D27ABB1DF9BADF004D2378 /* Debug */,
+				D2D27ABC1DF9BADF004D2378 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = D2D27A9B1DF9BADF004D2378 /* Project object */;
+}

+ 7 - 0
TresEnRaya.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:TresEnRaya.xcodeproj">
+   </FileRef>
+</Workspace>

BIN
TresEnRaya.xcodeproj/project.xcworkspace/xcuserdata/ernestoblancocareaga.xcuserdatad/UserInterfaceState.xcuserstate


+ 91 - 0
TresEnRaya.xcodeproj/xcuserdata/ernestoblancocareaga.xcuserdatad/xcschemes/TresEnRaya.xcscheme

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "0810"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "D2D27AA21DF9BADF004D2378"
+               BuildableName = "TresEnRaya.app"
+               BlueprintName = "TresEnRaya"
+               ReferencedContainer = "container:TresEnRaya.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+      </BuildActionEntries>
+   </BuildAction>
+   <TestAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      shouldUseLaunchSchemeArgsEnv = "YES">
+      <Testables>
+      </Testables>
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "D2D27AA21DF9BADF004D2378"
+            BuildableName = "TresEnRaya.app"
+            BlueprintName = "TresEnRaya"
+            ReferencedContainer = "container:TresEnRaya.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+      <AdditionalOptions>
+      </AdditionalOptions>
+   </TestAction>
+   <LaunchAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      launchStyle = "0"
+      useCustomWorkingDirectory = "NO"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      debugServiceExtension = "internal"
+      allowLocationSimulation = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "D2D27AA21DF9BADF004D2378"
+            BuildableName = "TresEnRaya.app"
+            BlueprintName = "TresEnRaya"
+            ReferencedContainer = "container:TresEnRaya.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+      <AdditionalOptions>
+      </AdditionalOptions>
+   </LaunchAction>
+   <ProfileAction
+      buildConfiguration = "Release"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "D2D27AA21DF9BADF004D2378"
+            BuildableName = "TresEnRaya.app"
+            BlueprintName = "TresEnRaya"
+            ReferencedContainer = "container:TresEnRaya.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 22 - 0
TresEnRaya.xcodeproj/xcuserdata/ernestoblancocareaga.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>SchemeUserState</key>
+	<dict>
+		<key>TresEnRaya.xcscheme</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>0</integer>
+		</dict>
+	</dict>
+	<key>SuppressBuildableAutocreation</key>
+	<dict>
+		<key>D2D27AA21DF9BADF004D2378</key>
+		<dict>
+			<key>primary</key>
+			<true/>
+		</dict>
+	</dict>
+</dict>
+</plist>

BIN
TresEnRaya/.DS_Store


+ 17 - 0
TresEnRaya/AppDelegate.h

@@ -0,0 +1,17 @@
+//
+//  AppDelegate.h
+//  TresEnRaya
+//
+//  Created by Ernesto Blanco Careaga on 8/12/16.
+//  Copyright © 2016 Ernesto Blanco Careaga. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+
+@end
+

+ 51 - 0
TresEnRaya/AppDelegate.m

@@ -0,0 +1,51 @@
+//
+//  AppDelegate.m
+//  TresEnRaya
+//
+//  Created by Ernesto Blanco Careaga on 8/12/16.
+//  Copyright © 2016 Ernesto Blanco Careaga. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@interface AppDelegate ()
+
+@end
+
+@implementation AppDelegate
+
+
+- (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 invalidate graphics rendering callbacks. 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 active 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

+ 48 - 0
TresEnRaya/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,48 @@
+{
+  "images" : [
+    {
+      "idiom" : "iphone",
+      "size" : "20x20",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "20x20",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "29x29",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "29x29",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "40x40",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "40x40",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "60x60",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "60x60",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 27 - 0
TresEnRaya/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
+                        <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+</document>

+ 26 - 0
TresEnRaya/Base.lproj/Main.storyboard

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 38 - 0
TresEnRaya/Info.plist

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>en</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>$(PRODUCT_NAME)</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>LaunchScreen</string>
+	<key>UIMainStoryboardFile</key>
+	<string>Main</string>
+	<key>UIRequiredDeviceCapabilities</key>
+	<array>
+		<string>armv7</string>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+</dict>
+</plist>

+ 5 - 0
TresEnRaya/ViewController.h

@@ -0,0 +1,5 @@
+#import <UIKit/UIKit.h>
+
+@interface ViewController : UIViewController
+
+@end

+ 130 - 0
TresEnRaya/ViewController.m

@@ -0,0 +1,130 @@
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+NSMutableArray *buttonsArray;
+UIButton *newButton;
+int player=1;
+int jugada=0;
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+
+	[self addButtons];
+    }
+
+	- (void) addButtons{
+float buttonWidth=self.view.bounds.size.width/3;
+float buttonHeight=self.view.bounds.size.height/3;
+        buttonsArray = [[NSMutableArray alloc] init];
+int x=0;
+int y=0;
+for (int i=0; i<9; i++) {
+    newButton = [[UIButton alloc] initWithFrame:CGRectMake(buttonWidth*x+1, buttonHeight*y+1, buttonWidth, buttonHeight)];
+[newButton setBackgroundColor:[UIColor blueColor]];
+    [newButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+    [newButton setTitleColor:[UIColor redColor] forState:UIControlStateHighlighted];
+	// [newButton setTitle:@"" forState:UIControlStateNormal];
+    [newButton setAccessibilityLabel:@"Casilla vacía"];
+    [newButton addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside];
+	newButton.tag = i;
+newButton.titleLabel.font = [UIFont boldSystemFontOfSize:15];
+    newButton.layer.masksToBounds = YES;
+	newButton.layer.cornerRadius = 5;
+    newButton.layer.borderWidth = 1;
+    newButton.layer.borderColor = [[UIColor blackColor] CGColor];
+                 				 [buttonsArray addObject:newButton];
+				 if(x==2){
+				 x=0;
+				 y=y+1;
+				 }else{
+				 x=x+1;
+				 }
+				 }
+				 for(UIButton *button in buttonsArray){
+    [self.view addSubview:button];
+}
+				 }
+
+				 -(void) buttonTouched:(UIButton *) sender {
+				 if([self buttonTitle:sender.tag]==nil){
+    switch(player){
+        case 1:
+            [sender setAccessibilityLabel:@"X"];
+            [sender setTitle:@"X" forState:UIControlStateNormal];
+			            						            break;
+        case 2:
+            [sender setAccessibilityLabel:@"O"];
+            [sender setTitle:@"O" forState:UIControlStateNormal];
+			                        						            break;
+    }
+                     jugada=jugada+1;
+                     int resultado=[self checkPartida];
+	if(resultado>0) {
+        [self finPartida:resultado];
+	}else{
+	[self nextTurn];
+	}
+	}
+}
+
+-(void) nextTurn{
+switch(player){
+case 1:
+player=2;
+break;
+case 2:
+player=1;
+        break;
+        }
+}
+
+- (int) checkPartida{
+    if (([[self buttonTitle:0] isEqual:[self buttonTitle:1]])&&([[self buttonTitle:1] isEqual:[self buttonTitle:2]])) return 1;
+	if (([[self buttonTitle:3] isEqual:[self buttonTitle:4]])&&([[self buttonTitle:4] isEqual:[self buttonTitle:5]])) return 1;
+	if (([[self buttonTitle:6] isEqual:[self buttonTitle:7]])&&([[self buttonTitle:7] isEqual:[self buttonTitle:8]])) return 1;
+	if (([[self buttonTitle:0] isEqual:[self buttonTitle:3]])&&([[self buttonTitle:3] isEqual:[self buttonTitle:6]])) return 1;
+	if (([[self buttonTitle:1] isEqual:[self buttonTitle:4]])&&([[self buttonTitle:4] isEqual:[self buttonTitle:7]])) return 1;
+	if (([[self buttonTitle:2] isEqual:[self buttonTitle:5]])&&([[self buttonTitle:5] isEqual:[self buttonTitle:8]])) return 1;
+	if (([[self buttonTitle:0] isEqual:[self buttonTitle:4]])&&([[self buttonTitle:4] isEqual:[self buttonTitle:8]])) return 1;
+	if (([[self buttonTitle:2] isEqual:[self buttonTitle:4]])&&([[self buttonTitle:4] isEqual:[self buttonTitle:6]])) return 1;
+    if(jugada==9) return 2;
+	return 0;
+	}
+
+	-(NSString*) buttonTitle:(int) nButton{
+for(UIButton *button in buttonsArray){
+    if(button.tag==nButton) return button.currentTitle;
+}
+				 return NULL;
+				 }
+
+-(void) finPartida:(int) resultado{
+    NSString *message;
+if(resultado==1) message=[NSString stringWithFormat:@"Ha ganado el jugador %i",player];
+if (resultado==2) message=@"La partida ha finalizado con un empate";
+	UIAlertController *alerta = [UIAlertController 
+	alertControllerWithTitle:@"¡Partida terminada!" 
+	message:message
+	preferredStyle:UIAlertControllerStyleAlert];
+UIAlertAction *ok = [UIAlertAction 
+actionWithTitle:@"OK" 
+style:UIAlertActionStyleDefault 
+handler:^(UIAlertAction *action) 
+{
+[alerta dismissViewControllerAnimated:YES completion:nil];
+player=0;
+}];
+[alerta addAction:ok];
+[self presentViewController:alerta animated:YES completion:nil];
+}
+
+- (void)didReceiveMemoryWarning {
+    [super didReceiveMemoryWarning];
+    // Dispose of any resources that can be recreated.
+}
+
+				 @end

+ 16 - 0
TresEnRaya/main.m

@@ -0,0 +1,16 @@
+//
+//  main.m
+//  TresEnRaya
+//
+//  Created by Ernesto Blanco Careaga on 8/12/16.
+//  Copyright © 2016 Ernesto Blanco Careaga. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "AppDelegate.h"
+
+int main(int argc, char * argv[]) {
+    @autoreleasepool {
+        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+    }
+}