diff --git a/ZZTetris.xcodeproj/project.pbxproj b/ZZTetris.xcodeproj/project.pbxproj new file mode 100644 index 0000000..785361e --- /dev/null +++ b/ZZTetris.xcodeproj/project.pbxproj @@ -0,0 +1,338 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 547E957321AD49CF002AAA38 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 547E957221AD49CF002AAA38 /* AppDelegate.m */; }; + 547E957621AD49CF002AAA38 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 547E957521AD49CF002AAA38 /* ViewController.m */; }; + 547E957921AD49CF002AAA38 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 547E957721AD49CF002AAA38 /* Main.storyboard */; }; + 547E957B21AD49D1002AAA38 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 547E957A21AD49D1002AAA38 /* Assets.xcassets */; }; + 547E957E21AD49D1002AAA38 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 547E957C21AD49D1002AAA38 /* LaunchScreen.storyboard */; }; + 547E958121AD49D1002AAA38 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 547E958021AD49D1002AAA38 /* main.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 547E956E21AD49CF002AAA38 /* ZZTetris.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZZTetris.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 547E957121AD49CF002AAA38 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 547E957221AD49CF002AAA38 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 547E957421AD49CF002AAA38 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 547E957521AD49CF002AAA38 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 547E957821AD49CF002AAA38 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 547E957A21AD49D1002AAA38 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 547E957D21AD49D1002AAA38 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 547E957F21AD49D1002AAA38 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 547E958021AD49D1002AAA38 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 547E956B21AD49CF002AAA38 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 547E956521AD49CF002AAA38 = { + isa = PBXGroup; + children = ( + 547E957021AD49CF002AAA38 /* ZZTetris */, + 547E956F21AD49CF002AAA38 /* Products */, + ); + sourceTree = ""; + }; + 547E956F21AD49CF002AAA38 /* Products */ = { + isa = PBXGroup; + children = ( + 547E956E21AD49CF002AAA38 /* ZZTetris.app */, + ); + name = Products; + sourceTree = ""; + }; + 547E957021AD49CF002AAA38 /* ZZTetris */ = { + isa = PBXGroup; + children = ( + 547E957121AD49CF002AAA38 /* AppDelegate.h */, + 547E957221AD49CF002AAA38 /* AppDelegate.m */, + 547E957421AD49CF002AAA38 /* ViewController.h */, + 547E957521AD49CF002AAA38 /* ViewController.m */, + 547E957721AD49CF002AAA38 /* Main.storyboard */, + 547E957A21AD49D1002AAA38 /* Assets.xcassets */, + 547E957C21AD49D1002AAA38 /* LaunchScreen.storyboard */, + 547E957F21AD49D1002AAA38 /* Info.plist */, + 547E958021AD49D1002AAA38 /* main.m */, + ); + path = ZZTetris; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 547E956D21AD49CF002AAA38 /* ZZTetris */ = { + isa = PBXNativeTarget; + buildConfigurationList = 547E958421AD49D1002AAA38 /* Build configuration list for PBXNativeTarget "ZZTetris" */; + buildPhases = ( + 547E956A21AD49CF002AAA38 /* Sources */, + 547E956B21AD49CF002AAA38 /* Frameworks */, + 547E956C21AD49CF002AAA38 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ZZTetris; + productName = ZZTetris; + productReference = 547E956E21AD49CF002AAA38 /* ZZTetris.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 547E956621AD49CF002AAA38 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = Jungle; + TargetAttributes = { + 547E956D21AD49CF002AAA38 = { + CreatedOnToolsVersion = 9.4.1; + }; + }; + }; + buildConfigurationList = 547E956921AD49CF002AAA38 /* Build configuration list for PBXProject "ZZTetris" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 547E956521AD49CF002AAA38; + productRefGroup = 547E956F21AD49CF002AAA38 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 547E956D21AD49CF002AAA38 /* ZZTetris */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 547E956C21AD49CF002AAA38 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 547E957E21AD49D1002AAA38 /* LaunchScreen.storyboard in Resources */, + 547E957B21AD49D1002AAA38 /* Assets.xcassets in Resources */, + 547E957921AD49CF002AAA38 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 547E956A21AD49CF002AAA38 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 547E957621AD49CF002AAA38 /* ViewController.m in Sources */, + 547E958121AD49D1002AAA38 /* main.m in Sources */, + 547E957321AD49CF002AAA38 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 547E957721AD49CF002AAA38 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 547E957821AD49CF002AAA38 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 547E957C21AD49D1002AAA38 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 547E957D21AD49D1002AAA38 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 547E958221AD49D1002AAA38 /* 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_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; + CODE_SIGN_IDENTITY = "iPhone Developer"; + 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 = 11.4; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 547E958321AD49D1002AAA38 /* 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_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; + CODE_SIGN_IDENTITY = "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 = 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 = 11.4; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 547E958521AD49D1002AAA38 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = ZZTetris/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.360buy.ZZTetris; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 547E958621AD49D1002AAA38 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = ZZTetris/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.360buy.ZZTetris; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 547E956921AD49CF002AAA38 /* Build configuration list for PBXProject "ZZTetris" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 547E958221AD49D1002AAA38 /* Debug */, + 547E958321AD49D1002AAA38 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 547E958421AD49D1002AAA38 /* Build configuration list for PBXNativeTarget "ZZTetris" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 547E958521AD49D1002AAA38 /* Debug */, + 547E958621AD49D1002AAA38 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 547E956621AD49CF002AAA38 /* Project object */; +} diff --git a/ZZTetris.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ZZTetris.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..abb7e7e --- /dev/null +++ b/ZZTetris.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ZZTetris.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ZZTetris.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ZZTetris.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ZZTetris.xcodeproj/xcuserdata/xumianjun.xcuserdatad/xcschemes/xcschememanagement.plist b/ZZTetris.xcodeproj/xcuserdata/xumianjun.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..d6572ca --- /dev/null +++ b/ZZTetris.xcodeproj/xcuserdata/xumianjun.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + ZZTetris.xcscheme + + orderHint + 0 + + + + diff --git a/ZZTetris/AppDelegate.h b/ZZTetris/AppDelegate.h new file mode 100644 index 0000000..63a3da0 --- /dev/null +++ b/ZZTetris/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// ZZTetris +// +// Created by 徐勉俊 on 2018/11/27. +// Copyright © 2018 Jungle. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/ZZTetris/AppDelegate.m b/ZZTetris/AppDelegate.m new file mode 100644 index 0000000..2442adc --- /dev/null +++ b/ZZTetris/AppDelegate.m @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// ZZTetris +// +// Created by 徐勉俊 on 2018/11/27. +// Copyright © 2018 Jungle. 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 diff --git a/ZZTetris/Assets.xcassets/AppIcon.appiconset/Contents.json b/ZZTetris/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/ZZTetris/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "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" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZZTetris/Assets.xcassets/Contents.json b/ZZTetris/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/ZZTetris/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZZTetris/Base.lproj/LaunchScreen.storyboard b/ZZTetris/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/ZZTetris/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ZZTetris/Base.lproj/Main.storyboard b/ZZTetris/Base.lproj/Main.storyboard new file mode 100644 index 0000000..d7c78a1 --- /dev/null +++ b/ZZTetris/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ZZTetris/Info.plist b/ZZTetris/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/ZZTetris/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ZZTetris/ViewController.h b/ZZTetris/ViewController.h new file mode 100644 index 0000000..3cf9e16 --- /dev/null +++ b/ZZTetris/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// ZZTetris +// +// Created by 徐勉俊 on 2018/11/27. +// Copyright © 2018 Jungle. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/ZZTetris/ViewController.m b/ZZTetris/ViewController.m new file mode 100644 index 0000000..47445b6 --- /dev/null +++ b/ZZTetris/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// ZZTetris +// +// Created by 徐勉俊 on 2018/11/27. +// Copyright © 2018 Jungle. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/ZZTetris/main.m b/ZZTetris/main.m new file mode 100644 index 0000000..92b5ef1 --- /dev/null +++ b/ZZTetris/main.m @@ -0,0 +1,16 @@ +// +// main.m +// ZZTetris +// +// Created by 徐勉俊 on 2018/11/27. +// Copyright © 2018 Jungle. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +}