Commit b41b7ada by Pablo Leonardo Perez

gregacion de archivos del primer proyecto en Swift

parents
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
DEB78AF826B984E200EBF29F /* ViewController2.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB78AF726B984E200EBF29F /* ViewController2.swift */; };
DEB9B58626B899300037157B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB9B58526B899300037157B /* AppDelegate.swift */; };
DEB9B58826B899300037157B /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB9B58726B899300037157B /* SceneDelegate.swift */; };
DEB9B58A26B899300037157B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB9B58926B899300037157B /* ViewController.swift */; };
DEB9B58D26B899300037157B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DEB9B58B26B899300037157B /* Main.storyboard */; };
DEB9B58F26B899330037157B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DEB9B58E26B899330037157B /* Assets.xcassets */; };
DEB9B59226B899330037157B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DEB9B59026B899330037157B /* LaunchScreen.storyboard */; };
DEB9B59D26B899330037157B /* NuevoProyectoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB9B59C26B899330037157B /* NuevoProyectoTests.swift */; };
DEB9B5A826B899330037157B /* NuevoProyectoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEB9B5A726B899330037157B /* NuevoProyectoUITests.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
DEB9B59926B899330037157B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DEB9B57A26B899300037157B /* Project object */;
proxyType = 1;
remoteGlobalIDString = DEB9B58126B899300037157B;
remoteInfo = NuevoProyecto;
};
DEB9B5A426B899330037157B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DEB9B57A26B899300037157B /* Project object */;
proxyType = 1;
remoteGlobalIDString = DEB9B58126B899300037157B;
remoteInfo = NuevoProyecto;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
DEB78AF726B984E200EBF29F /* ViewController2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController2.swift; sourceTree = "<group>"; };
DEB9B58226B899300037157B /* NuevoProyecto.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NuevoProyecto.app; sourceTree = BUILT_PRODUCTS_DIR; };
DEB9B58526B899300037157B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
DEB9B58726B899300037157B /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
DEB9B58926B899300037157B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
DEB9B58C26B899300037157B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
DEB9B58E26B899330037157B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
DEB9B59126B899330037157B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
DEB9B59326B899330037157B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DEB9B59826B899330037157B /* NuevoProyectoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NuevoProyectoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DEB9B59C26B899330037157B /* NuevoProyectoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NuevoProyectoTests.swift; sourceTree = "<group>"; };
DEB9B59E26B899330037157B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DEB9B5A326B899330037157B /* NuevoProyectoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NuevoProyectoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DEB9B5A726B899330037157B /* NuevoProyectoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NuevoProyectoUITests.swift; sourceTree = "<group>"; };
DEB9B5A926B899330037157B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
DEB9B57F26B899300037157B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B59526B899330037157B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B5A026B899330037157B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
DEB9B57926B899300037157B = {
isa = PBXGroup;
children = (
DEB9B58426B899300037157B /* NuevoProyecto */,
DEB9B59B26B899330037157B /* NuevoProyectoTests */,
DEB9B5A626B899330037157B /* NuevoProyectoUITests */,
DEB9B58326B899300037157B /* Products */,
);
sourceTree = "<group>";
};
DEB9B58326B899300037157B /* Products */ = {
isa = PBXGroup;
children = (
DEB9B58226B899300037157B /* NuevoProyecto.app */,
DEB9B59826B899330037157B /* NuevoProyectoTests.xctest */,
DEB9B5A326B899330037157B /* NuevoProyectoUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
DEB9B58426B899300037157B /* NuevoProyecto */ = {
isa = PBXGroup;
children = (
DEB9B58526B899300037157B /* AppDelegate.swift */,
DEB9B58726B899300037157B /* SceneDelegate.swift */,
DEB9B58926B899300037157B /* ViewController.swift */,
DEB9B58B26B899300037157B /* Main.storyboard */,
DEB9B58E26B899330037157B /* Assets.xcassets */,
DEB9B59026B899330037157B /* LaunchScreen.storyboard */,
DEB9B59326B899330037157B /* Info.plist */,
DEB78AF726B984E200EBF29F /* ViewController2.swift */,
);
path = NuevoProyecto;
sourceTree = "<group>";
};
DEB9B59B26B899330037157B /* NuevoProyectoTests */ = {
isa = PBXGroup;
children = (
DEB9B59C26B899330037157B /* NuevoProyectoTests.swift */,
DEB9B59E26B899330037157B /* Info.plist */,
);
path = NuevoProyectoTests;
sourceTree = "<group>";
};
DEB9B5A626B899330037157B /* NuevoProyectoUITests */ = {
isa = PBXGroup;
children = (
DEB9B5A726B899330037157B /* NuevoProyectoUITests.swift */,
DEB9B5A926B899330037157B /* Info.plist */,
);
path = NuevoProyectoUITests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
DEB9B58126B899300037157B /* NuevoProyecto */ = {
isa = PBXNativeTarget;
buildConfigurationList = DEB9B5AC26B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyecto" */;
buildPhases = (
DEB9B57E26B899300037157B /* Sources */,
DEB9B57F26B899300037157B /* Frameworks */,
DEB9B58026B899300037157B /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = NuevoProyecto;
productName = NuevoProyecto;
productReference = DEB9B58226B899300037157B /* NuevoProyecto.app */;
productType = "com.apple.product-type.application";
};
DEB9B59726B899330037157B /* NuevoProyectoTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DEB9B5AF26B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyectoTests" */;
buildPhases = (
DEB9B59426B899330037157B /* Sources */,
DEB9B59526B899330037157B /* Frameworks */,
DEB9B59626B899330037157B /* Resources */,
);
buildRules = (
);
dependencies = (
DEB9B59A26B899330037157B /* PBXTargetDependency */,
);
name = NuevoProyectoTests;
productName = NuevoProyectoTests;
productReference = DEB9B59826B899330037157B /* NuevoProyectoTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
DEB9B5A226B899330037157B /* NuevoProyectoUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DEB9B5B226B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyectoUITests" */;
buildPhases = (
DEB9B59F26B899330037157B /* Sources */,
DEB9B5A026B899330037157B /* Frameworks */,
DEB9B5A126B899330037157B /* Resources */,
);
buildRules = (
);
dependencies = (
DEB9B5A526B899330037157B /* PBXTargetDependency */,
);
name = NuevoProyectoUITests;
productName = NuevoProyectoUITests;
productReference = DEB9B5A326B899330037157B /* NuevoProyectoUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
DEB9B57A26B899300037157B /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
DEB9B58126B899300037157B = {
CreatedOnToolsVersion = 12.5;
};
DEB9B59726B899330037157B = {
CreatedOnToolsVersion = 12.5;
TestTargetID = DEB9B58126B899300037157B;
};
DEB9B5A226B899330037157B = {
CreatedOnToolsVersion = 12.5;
TestTargetID = DEB9B58126B899300037157B;
};
};
};
buildConfigurationList = DEB9B57D26B899300037157B /* Build configuration list for PBXProject "NuevoProyecto" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = DEB9B57926B899300037157B;
productRefGroup = DEB9B58326B899300037157B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
DEB9B58126B899300037157B /* NuevoProyecto */,
DEB9B59726B899330037157B /* NuevoProyectoTests */,
DEB9B5A226B899330037157B /* NuevoProyectoUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
DEB9B58026B899300037157B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DEB9B59226B899330037157B /* LaunchScreen.storyboard in Resources */,
DEB9B58F26B899330037157B /* Assets.xcassets in Resources */,
DEB9B58D26B899300037157B /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B59626B899330037157B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B5A126B899330037157B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
DEB9B57E26B899300037157B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DEB9B58A26B899300037157B /* ViewController.swift in Sources */,
DEB78AF826B984E200EBF29F /* ViewController2.swift in Sources */,
DEB9B58626B899300037157B /* AppDelegate.swift in Sources */,
DEB9B58826B899300037157B /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B59426B899330037157B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DEB9B59D26B899330037157B /* NuevoProyectoTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
DEB9B59F26B899330037157B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DEB9B5A826B899330037157B /* NuevoProyectoUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
DEB9B59A26B899330037157B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = DEB9B58126B899300037157B /* NuevoProyecto */;
targetProxy = DEB9B59926B899330037157B /* PBXContainerItemProxy */;
};
DEB9B5A526B899330037157B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = DEB9B58126B899300037157B /* NuevoProyecto */;
targetProxy = DEB9B5A426B899330037157B /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
DEB9B58B26B899300037157B /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
DEB9B58C26B899300037157B /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
DEB9B59026B899330037157B /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
DEB9B59126B899330037157B /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
DEB9B5AA26B899330037157B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
DEB9B5AB26B899330037157B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
DEB9B5AD26B899330037157B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyecto/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyecto;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
DEB9B5AE26B899330037157B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyecto/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyecto;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
DEB9B5B026B899330037157B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyectoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyectoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NuevoProyecto.app/NuevoProyecto";
};
name = Debug;
};
DEB9B5B126B899330037157B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyectoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyectoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NuevoProyecto.app/NuevoProyecto";
};
name = Release;
};
DEB9B5B326B899330037157B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyectoUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyectoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = NuevoProyecto;
};
name = Debug;
};
DEB9B5B426B899330037157B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = NuevoProyectoUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = plperez.NuevoProyectoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = NuevoProyecto;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
DEB9B57D26B899300037157B /* Build configuration list for PBXProject "NuevoProyecto" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEB9B5AA26B899330037157B /* Debug */,
DEB9B5AB26B899330037157B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DEB9B5AC26B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyecto" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEB9B5AD26B899330037157B /* Debug */,
DEB9B5AE26B899330037157B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DEB9B5AF26B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyectoTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEB9B5B026B899330037157B /* Debug */,
DEB9B5B126B899330037157B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DEB9B5B226B899330037157B /* Build configuration list for PBXNativeTarget "NuevoProyectoUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEB9B5B326B899330037157B /* Debug */,
DEB9B5B426B899330037157B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = DEB9B57A26B899300037157B /* Project object */;
}
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?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>NuevoProyecto.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
//
// AppDelegate.swift
// NuevoProyecto
//
// Created by Pablo Perez on 2021-08-02.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<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">
<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" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</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>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<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" customModule="NuevoProyecto" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="x3X-a2-UVW">
<rect key="frame" x="0.0" y="0.0" width="414" height="125"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="10" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JfY-Ju-WyA">
<rect key="frame" x="66" y="40" width="96" height="44"/>
<color key="backgroundColor" systemColor="tertiaryLabelColor"/>
<constraints>
<constraint firstAttribute="width" constant="96" id="0c9-AN-f0K"/>
<constraint firstAttribute="height" constant="44" id="mr7-nM-l6U"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="epf-T6-V1d">
<rect key="frame" x="270" y="40" width="96" height="44"/>
<color key="backgroundColor" systemColor="tertiaryLabelColor"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="3Fi-IO-vwZ"/>
<constraint firstAttribute="width" constant="96" id="Eca-ls-7da"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="JfY-Ju-WyA" firstAttribute="top" secondItem="x3X-a2-UVW" secondAttribute="top" constant="40" id="4G7-FR-H2t"/>
<constraint firstAttribute="width" constant="414" id="61o-af-3TK"/>
<constraint firstAttribute="height" constant="125" id="EZk-QG-udD"/>
<constraint firstItem="epf-T6-V1d" firstAttribute="top" secondItem="x3X-a2-UVW" secondAttribute="top" constant="40" id="R2O-0D-Bfs"/>
<constraint firstAttribute="trailing" secondItem="epf-T6-V1d" secondAttribute="trailing" constant="48" id="RdB-e0-qAh"/>
<constraint firstAttribute="bottom" secondItem="JfY-Ju-WyA" secondAttribute="bottom" constant="41" id="Szx-Kw-zDv"/>
<constraint firstAttribute="bottom" secondItem="epf-T6-V1d" secondAttribute="bottom" constant="41" id="Xo9-hm-pZg"/>
<constraint firstItem="JfY-Ju-WyA" firstAttribute="leading" secondItem="x3X-a2-UVW" secondAttribute="leading" constant="66" id="xG7-Nu-cSf"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="83e-Kr-IPM">
<rect key="frame" x="184" y="433" width="46" height="30"/>
<color key="backgroundColor" systemColor="opaqueSeparatorColor"/>
<state key="normal" title="Button"/>
<connections>
<action selector="botonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="3aq-Eq-Ksw"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="83e-Kr-IPM" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="9RR-LR-LwO"/>
<constraint firstItem="x3X-a2-UVW" firstAttribute="trailing" secondItem="6Tk-OE-BBY" secondAttribute="trailing" id="VLw-8n-4VW"/>
<constraint firstItem="83e-Kr-IPM" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="d19-cl-u9g"/>
<constraint firstItem="x3X-a2-UVW" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="pYK-Du-Yon"/>
<constraint firstItem="x3X-a2-UVW" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" id="tIt-dn-PXM"/>
</constraints>
</view>
<connections>
<outlet property="boton" destination="83e-Kr-IPM" id="b2q-m6-0av"/>
<outlet property="tiempo" destination="JfY-Ju-WyA" id="RqK-8j-GG9"/>
<outlet property="veces" destination="epf-T6-V1d" id="WrQ-Yv-XmD"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="18.840579710144929" y="75.669642857142847"/>
</scene>
<!--View Controller2-->
<scene sceneID="hNt-V4-FIN">
<objects>
<viewController id="pAa-9w-1fv" customClass="ViewController2" customModule="NuevoProyecto" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="vyQ-dD-x96">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="VISTA 2" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4nT-oL-4Gn">
<rect key="frame" x="176" y="347" width="60" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="8EH-9k-tmO"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<navigationItem key="navigationItem" id="ZbF-Nt-MhL"/>
<connections>
<outlet property="VISTA2" destination="4nT-oL-4Gn" id="RKJ-QC-hC9"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Py8-ft-qo9" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="957" y="11"/>
</scene>
</scenes>
<resources>
<systemColor name="opaqueSeparatorColor">
<color red="0.77647058823529413" green="0.77647058823529413" blue="0.78431372549019607" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="tertiaryLabelColor">
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
<?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>$(DEVELOPMENT_LANGUAGE)</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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
<key>UIApplicationSupportsIndirectInputEvents</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>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
//
// SceneDelegate.swift
// NuevoProyecto
//
// Created by Pablo Perez on 2021-08-02.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let _ = (scene as? UIWindowScene) else { return }
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
//
// ViewController.swift
// NuevoProyecto
//
// Created by Pablo Perez on 2021-08-02.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var boton: UIButton!
@IBOutlet weak var tiempo: UILabel!
@IBOutlet weak var veces: UILabel!
var cont = 0
@IBAction func botonAction(_ sender: Any) {
cont = cont + 1
veces.text = String (cont)
}
var timer = Timer()
var requestTimer = 10
@objc func timeMethod(){
requestTimer -= 1
tiempo.text = String (requestTimer)
if requestTimer == 5 {
timer.invalidate()
let alert = UIAlertController(title: "Juego Terminado", message: "Total de puntos: \(String(describing: veces.text!))", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Aceptar", style: .default, handler: {
(alert:UIAlertAction!) in self.startGame()
}))
self.present(alert, animated: true)
cont = 0
veces.text = String (cont)
}
}
override func viewDidLoad() {
super.viewDidLoad()
startGame()
// boton.center.x = view.frame.width / 2
// boton.center.y = view.frame.height / 4
// boton.addTarget(self, action: #selector(aleatorio), for: .touchUpInside)
}
func startGame(){
requestTimer = 10
tiempo.text = String (requestTimer)
timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(timeMethod), userInfo :nil, repeats: true)
}
// @objc func aleatorio(){
// boton.center.x = boton.frame.width / 2
// boton.center.y = boton.frame.height / 2
// }
}
//
// ViewController2.swift
// NuevoProyecto
//
// Created by Pablo Perez on 2021-08-03.
//
import UIKit
class ViewController2: UIViewController {
@IBOutlet weak var VISTA2: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
VISTA2.text = "plp"
// Do any additional setup after loading the view.
}
}
<?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>$(DEVELOPMENT_LANGUAGE)</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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
//
// NuevoProyectoTests.swift
// NuevoProyectoTests
//
// Created by Pablo Perez on 2021-08-02.
//
import XCTest
@testable import NuevoProyecto
class NuevoProyectoTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
<?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>$(DEVELOPMENT_LANGUAGE)</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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
//
// NuevoProyectoUITests.swift
// NuevoProyectoUITests
//
// Created by Pablo Perez on 2021-08-02.
//
import XCTest
class NuevoProyectoUITests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testLaunchPerformance() throws {
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment