From a56296c82f34d48f768d6770e960c5aae7962ea3 Mon Sep 17 00:00:00 2001 From: sally Date: Thu, 27 Oct 2016 11:17:39 +0800 Subject: [PATCH 1/2] project03 --- .../taskList.xcodeproj/project.pbxproj" | 530 ++++++++++++++++++ .../project03/taskList/AppDelegate.h" | 17 + .../project03/taskList/AppDelegate.m" | 51 ++ .../AppIcon.appiconset/Contents.json" | 68 +++ .../Base.lproj/LaunchScreen.storyboard" | 27 + .../taskList/Base.lproj/Main.storyboard" | 26 + .../project03/taskList/Info.plist" | 45 ++ .../project03/taskList/ViewController.h" | 21 + .../project03/taskList/ViewController.m" | 87 +++ .../project03/taskList/main.m" | 16 + .../project03/taskListTests/Info.plist" | 22 + .../project03/taskListTests/taskListTests.m" | 39 ++ .../project03/taskListUITests/Info.plist" | 22 + .../taskListUITests/taskListUITests.m" | 40 ++ 14 files changed, 1011 insertions(+) create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList.xcodeproj/project.pbxproj" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.h" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.m" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Assets.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/LaunchScreen.storyboard" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/Main.storyboard" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Info.plist" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.h" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.m" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskList/main.m" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/Info.plist" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/taskListTests.m" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/Info.plist" create mode 100644 "21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/taskListUITests.m" diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList.xcodeproj/project.pbxproj" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..3522a0c --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList.xcodeproj/project.pbxproj" @@ -0,0 +1,530 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3AC6D7EE1DC1A8AA00D9D757 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC6D7ED1DC1A8AA00D9D757 /* main.m */; }; + 3AC6D7F11DC1A8AA00D9D757 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC6D7F01DC1A8AA00D9D757 /* AppDelegate.m */; }; + 3AC6D7F41DC1A8AA00D9D757 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC6D7F31DC1A8AA00D9D757 /* ViewController.m */; }; + 3AC6D7F71DC1A8AA00D9D757 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3AC6D7F51DC1A8AA00D9D757 /* Main.storyboard */; }; + 3AC6D7F91DC1A8AA00D9D757 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3AC6D7F81DC1A8AA00D9D757 /* Assets.xcassets */; }; + 3AC6D7FC1DC1A8AA00D9D757 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3AC6D7FA1DC1A8AA00D9D757 /* LaunchScreen.storyboard */; }; + 3AC6D8071DC1A8AA00D9D757 /* taskListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC6D8061DC1A8AA00D9D757 /* taskListTests.m */; }; + 3AC6D8121DC1A8AA00D9D757 /* taskListUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AC6D8111DC1A8AA00D9D757 /* taskListUITests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 3AC6D8031DC1A8AA00D9D757 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3AC6D7E11DC1A8AA00D9D757 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3AC6D7E81DC1A8AA00D9D757; + remoteInfo = taskList; + }; + 3AC6D80E1DC1A8AA00D9D757 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3AC6D7E11DC1A8AA00D9D757 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3AC6D7E81DC1A8AA00D9D757; + remoteInfo = taskList; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3AC6D7E91DC1A8AA00D9D757 /* taskList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = taskList.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3AC6D7ED1DC1A8AA00D9D757 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 3AC6D7EF1DC1A8AA00D9D757 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 3AC6D7F01DC1A8AA00D9D757 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 3AC6D7F21DC1A8AA00D9D757 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 3AC6D7F31DC1A8AA00D9D757 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 3AC6D7F61DC1A8AA00D9D757 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 3AC6D7F81DC1A8AA00D9D757 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3AC6D7FB1DC1A8AA00D9D757 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 3AC6D7FD1DC1A8AA00D9D757 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 3AC6D8021DC1A8AA00D9D757 /* taskListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = taskListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3AC6D8061DC1A8AA00D9D757 /* taskListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = taskListTests.m; sourceTree = ""; }; + 3AC6D8081DC1A8AA00D9D757 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 3AC6D80D1DC1A8AA00D9D757 /* taskListUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = taskListUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3AC6D8111DC1A8AA00D9D757 /* taskListUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = taskListUITests.m; sourceTree = ""; }; + 3AC6D8131DC1A8AA00D9D757 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3AC6D7E61DC1A8AA00D9D757 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D7FF1DC1A8AA00D9D757 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D80A1DC1A8AA00D9D757 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3AC6D7E01DC1A8AA00D9D757 = { + isa = PBXGroup; + children = ( + 3AC6D7EB1DC1A8AA00D9D757 /* taskList */, + 3AC6D8051DC1A8AA00D9D757 /* taskListTests */, + 3AC6D8101DC1A8AA00D9D757 /* taskListUITests */, + 3AC6D7EA1DC1A8AA00D9D757 /* Products */, + ); + sourceTree = ""; + }; + 3AC6D7EA1DC1A8AA00D9D757 /* Products */ = { + isa = PBXGroup; + children = ( + 3AC6D7E91DC1A8AA00D9D757 /* taskList.app */, + 3AC6D8021DC1A8AA00D9D757 /* taskListTests.xctest */, + 3AC6D80D1DC1A8AA00D9D757 /* taskListUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 3AC6D7EB1DC1A8AA00D9D757 /* taskList */ = { + isa = PBXGroup; + children = ( + 3AC6D7EF1DC1A8AA00D9D757 /* AppDelegate.h */, + 3AC6D7F01DC1A8AA00D9D757 /* AppDelegate.m */, + 3AC6D7F21DC1A8AA00D9D757 /* ViewController.h */, + 3AC6D7F31DC1A8AA00D9D757 /* ViewController.m */, + 3AC6D7F51DC1A8AA00D9D757 /* Main.storyboard */, + 3AC6D7F81DC1A8AA00D9D757 /* Assets.xcassets */, + 3AC6D7FA1DC1A8AA00D9D757 /* LaunchScreen.storyboard */, + 3AC6D7FD1DC1A8AA00D9D757 /* Info.plist */, + 3AC6D7EC1DC1A8AA00D9D757 /* Supporting Files */, + ); + path = taskList; + sourceTree = ""; + }; + 3AC6D7EC1DC1A8AA00D9D757 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3AC6D7ED1DC1A8AA00D9D757 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3AC6D8051DC1A8AA00D9D757 /* taskListTests */ = { + isa = PBXGroup; + children = ( + 3AC6D8061DC1A8AA00D9D757 /* taskListTests.m */, + 3AC6D8081DC1A8AA00D9D757 /* Info.plist */, + ); + path = taskListTests; + sourceTree = ""; + }; + 3AC6D8101DC1A8AA00D9D757 /* taskListUITests */ = { + isa = PBXGroup; + children = ( + 3AC6D8111DC1A8AA00D9D757 /* taskListUITests.m */, + 3AC6D8131DC1A8AA00D9D757 /* Info.plist */, + ); + path = taskListUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3AC6D7E81DC1A8AA00D9D757 /* taskList */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3AC6D8161DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskList" */; + buildPhases = ( + 3AC6D7E51DC1A8AA00D9D757 /* Sources */, + 3AC6D7E61DC1A8AA00D9D757 /* Frameworks */, + 3AC6D7E71DC1A8AA00D9D757 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = taskList; + productName = taskList; + productReference = 3AC6D7E91DC1A8AA00D9D757 /* taskList.app */; + productType = "com.apple.product-type.application"; + }; + 3AC6D8011DC1A8AA00D9D757 /* taskListTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3AC6D8191DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskListTests" */; + buildPhases = ( + 3AC6D7FE1DC1A8AA00D9D757 /* Sources */, + 3AC6D7FF1DC1A8AA00D9D757 /* Frameworks */, + 3AC6D8001DC1A8AA00D9D757 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3AC6D8041DC1A8AA00D9D757 /* PBXTargetDependency */, + ); + name = taskListTests; + productName = taskListTests; + productReference = 3AC6D8021DC1A8AA00D9D757 /* taskListTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 3AC6D80C1DC1A8AA00D9D757 /* taskListUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3AC6D81C1DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskListUITests" */; + buildPhases = ( + 3AC6D8091DC1A8AA00D9D757 /* Sources */, + 3AC6D80A1DC1A8AA00D9D757 /* Frameworks */, + 3AC6D80B1DC1A8AA00D9D757 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3AC6D80F1DC1A8AA00D9D757 /* PBXTargetDependency */, + ); + name = taskListUITests; + productName = taskListUITests; + productReference = 3AC6D80D1DC1A8AA00D9D757 /* taskListUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3AC6D7E11DC1A8AA00D9D757 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = sally; + TargetAttributes = { + 3AC6D7E81DC1A8AA00D9D757 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + 3AC6D8011DC1A8AA00D9D757 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 3AC6D7E81DC1A8AA00D9D757; + }; + 3AC6D80C1DC1A8AA00D9D757 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 3AC6D7E81DC1A8AA00D9D757; + }; + }; + }; + buildConfigurationList = 3AC6D7E41DC1A8AA00D9D757 /* Build configuration list for PBXProject "taskList" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3AC6D7E01DC1A8AA00D9D757; + productRefGroup = 3AC6D7EA1DC1A8AA00D9D757 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3AC6D7E81DC1A8AA00D9D757 /* taskList */, + 3AC6D8011DC1A8AA00D9D757 /* taskListTests */, + 3AC6D80C1DC1A8AA00D9D757 /* taskListUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3AC6D7E71DC1A8AA00D9D757 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3AC6D7FC1DC1A8AA00D9D757 /* LaunchScreen.storyboard in Resources */, + 3AC6D7F91DC1A8AA00D9D757 /* Assets.xcassets in Resources */, + 3AC6D7F71DC1A8AA00D9D757 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D8001DC1A8AA00D9D757 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D80B1DC1A8AA00D9D757 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3AC6D7E51DC1A8AA00D9D757 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3AC6D7F41DC1A8AA00D9D757 /* ViewController.m in Sources */, + 3AC6D7F11DC1A8AA00D9D757 /* AppDelegate.m in Sources */, + 3AC6D7EE1DC1A8AA00D9D757 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D7FE1DC1A8AA00D9D757 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3AC6D8071DC1A8AA00D9D757 /* taskListTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3AC6D8091DC1A8AA00D9D757 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3AC6D8121DC1A8AA00D9D757 /* taskListUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3AC6D8041DC1A8AA00D9D757 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3AC6D7E81DC1A8AA00D9D757 /* taskList */; + targetProxy = 3AC6D8031DC1A8AA00D9D757 /* PBXContainerItemProxy */; + }; + 3AC6D80F1DC1A8AA00D9D757 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3AC6D7E81DC1A8AA00D9D757 /* taskList */; + targetProxy = 3AC6D80E1DC1A8AA00D9D757 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 3AC6D7F51DC1A8AA00D9D757 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 3AC6D7F61DC1A8AA00D9D757 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 3AC6D7FA1DC1A8AA00D9D757 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 3AC6D7FB1DC1A8AA00D9D757 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3AC6D8141DC1A8AA00D9D757 /* 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.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3AC6D8151DC1A8AA00D9D757 /* 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.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3AC6D8171DC1A8AA00D9D757 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = taskList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 3AC6D8181DC1A8AA00D9D757 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = taskList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 3AC6D81A1DC1A8AA00D9D757 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = taskListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/taskList.app/taskList"; + }; + name = Debug; + }; + 3AC6D81B1DC1A8AA00D9D757 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = taskListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/taskList.app/taskList"; + }; + name = Release; + }; + 3AC6D81D1DC1A8AA00D9D757 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = taskListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = taskList; + }; + name = Debug; + }; + 3AC6D81E1DC1A8AA00D9D757 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = taskListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.iphone.taskListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = taskList; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3AC6D7E41DC1A8AA00D9D757 /* Build configuration list for PBXProject "taskList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3AC6D8141DC1A8AA00D9D757 /* Debug */, + 3AC6D8151DC1A8AA00D9D757 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3AC6D8161DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3AC6D8171DC1A8AA00D9D757 /* Debug */, + 3AC6D8181DC1A8AA00D9D757 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 3AC6D8191DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskListTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3AC6D81A1DC1A8AA00D9D757 /* Debug */, + 3AC6D81B1DC1A8AA00D9D757 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 3AC6D81C1DC1A8AA00D9D757 /* Build configuration list for PBXNativeTarget "taskListUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3AC6D81D1DC1A8AA00D9D757 /* Debug */, + 3AC6D81E1DC1A8AA00D9D757 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3AC6D7E11DC1A8AA00D9D757 /* Project object */; +} diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.h" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.h" new file mode 100644 index 0000000..9737aa9 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// taskList +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.m" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.m" new file mode 100644 index 0000000..4db1afb --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/AppDelegate.m" @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// taskList +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. 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/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "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" : "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/LaunchScreen.storyboard" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/Main.storyboard" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..4529698 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Base.lproj/Main.storyboard" @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Info.plist" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Info.plist" new file mode 100644 index 0000000..d052473 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/Info.plist" @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + 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/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.h" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.h" new file mode 100644 index 0000000..ba84a13 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.h" @@ -0,0 +1,21 @@ +// +// ViewController.h +// taskList +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + +@property(nonatomic, strong)UITextField * taskField; +@property(nonatomic, strong)UIButton * insertButton; +@property(nonatomic, strong)UITableView * taskList; +@property(nonatomic, strong)NSMutableArray * taskListArray; + +- (void)btnClick; + +@end + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.m" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.m" new file mode 100644 index 0000000..fd1ed95 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/ViewController.m" @@ -0,0 +1,87 @@ +// +// ViewController.m +// calendar +// +// Created by sally on 16/10/26. +// Copyright © 2016年 sally. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController +//@synthesize taskListArray + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + + CGRect r = [[UIScreen mainScreen] bounds]; + NSInteger r_width = r.size.width; + + //---textField--------- + self.taskField = [[UITextField alloc] initWithFrame:CGRectMake((r_width-300)/2, 30, 200, 30)]; + [self.view addSubview:self.taskField]; + self.taskField.backgroundColor = [UIColor groupTableViewBackgroundColor]; + + self.taskField.placeholder = @"Insert a task you want to insert"; + self.taskField.textColor = [UIColor brownColor]; + self.taskField.font = [UIFont fontWithName:@"Arial" size:17]; + self.taskField.textAlignment = NSTextAlignmentLeft; + self.taskField.borderStyle = UITextBorderStyleRoundedRect; + + //----button----------- + self.insertButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; + [self.view addSubview:self.insertButton]; + self.insertButton.frame = CGRectMake((r_width-300)/2 + 210, 30, 100, 30); + self.insertButton.backgroundColor = [UIColor groupTableViewBackgroundColor]; + [self.insertButton setTitle:@"INSERT" forState:UIControlStateNormal]; + [self.insertButton addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside]; + + //----tableView--------- + self.taskList = [[UITableView alloc] initWithFrame:CGRectMake((r_width-320)/2, 88, 320, 400) style:UITableViewStylePlain]; + self.taskListArray = [[NSMutableArray alloc] initWithObjects:@"Sleep",@"Eat",@"Work", nil]; + [self.taskList setDelegate:self]; + [self.taskList setDataSource:self]; + [self.view addSubview:self.taskList]; +} + +- (void)btnClick { + NSString * textInput = self.taskField.text; + if (![textInput isEqualToString:@""] && textInput != nil) { + [self.taskListArray addObject:textInput]; + [self.taskList reloadData]; + [self.taskField setText:nil]; + } + NSLog(@"%@", self.taskField.text); +} + +- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { + return @"Task List"; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return [self.taskListArray count]; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath { + static NSString * cellIdentifier = @"cell"; + UITableViewCell * cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier]; + if (cell == nil) { + cell = [[UITableViewCell alloc] initWithFrame:CGRectZero]; + } + + [[cell textLabel] setText:[self.taskListArray objectAtIndex:indexPath.row]]; + return cell; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/main.m" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/main.m" new file mode 100644 index 0000000..7c0dcf2 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskList/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// taskList +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/Info.plist" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/taskListTests.m" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/taskListTests.m" new file mode 100644 index 0000000..5456db4 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListTests/taskListTests.m" @@ -0,0 +1,39 @@ +// +// taskListTests.m +// taskListTests +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. All rights reserved. +// + +#import + +@interface taskListTests : XCTestCase + +@end + +@implementation taskListTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/Info.plist" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/taskListUITests.m" "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/taskListUITests.m" new file mode 100644 index 0000000..d2c0eee --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project03/taskListUITests/taskListUITests.m" @@ -0,0 +1,40 @@ +// +// taskListUITests.m +// taskListUITests +// +// Created by sally on 16/10/27. +// Copyright © 2016年 sally. All rights reserved. +// + +#import + +@interface taskListUITests : XCTestCase + +@end + +@implementation taskListUITests + +- (void)setUp { + [super setUp]; + + // 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. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // 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. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end From 3cead5bfb30d61740053362441fd81a9267abba4 Mon Sep 17 00:00:00 2001 From: sally Date: Thu, 27 Oct 2016 14:39:49 +0800 Subject: [PATCH 2/2] project02 --- "21651057\345\205\266\344\275\210\345\260\224/project02" | 1 + 1 file changed, 1 insertion(+) create mode 160000 "21651057\345\205\266\344\275\210\345\260\224/project02" diff --git "a/21651057\345\205\266\344\275\210\345\260\224/project02" "b/21651057\345\205\266\344\275\210\345\260\224/project02" new file mode 160000 index 0000000..553dc20 --- /dev/null +++ "b/21651057\345\205\266\344\275\210\345\260\224/project02" @@ -0,0 +1 @@ +Subproject commit 553dc205d5270e4a69148ce1880bd6a2f0071d05