diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal.xcodeproj/project.pbxproj" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..b00700e --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal.xcodeproj/project.pbxproj" @@ -0,0 +1,546 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 7F67A7DD1DBF8E240050F093 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A7DC1DBF8E240050F093 /* main.m */; }; + 7F67A7E01DBF8E240050F093 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A7DF1DBF8E240050F093 /* AppDelegate.m */; }; + 7F67A7E31DBF8E240050F093 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A7E21DBF8E240050F093 /* ViewController.m */; }; + 7F67A7E61DBF8E240050F093 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7F67A7E41DBF8E240050F093 /* Main.storyboard */; }; + 7F67A7E81DBF8E240050F093 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7F67A7E71DBF8E240050F093 /* Assets.xcassets */; }; + 7F67A7EB1DBF8E240050F093 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7F67A7E91DBF8E240050F093 /* LaunchScreen.storyboard */; }; + 7F67A7F61DBF8E240050F093 /* iosCalTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A7F51DBF8E240050F093 /* iosCalTests.m */; }; + 7F67A8011DBF8E240050F093 /* iosCalUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A8001DBF8E240050F093 /* iosCalUITests.m */; }; + 7F67A8141DBF94760050F093 /* MYMonthView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A80F1DBF94760050F093 /* MYMonthView.m */; }; + 7F67A8151DBF94760050F093 /* MyViewBuffer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A8111DBF94760050F093 /* MyViewBuffer.m */; }; + 7F67A8161DBF94760050F093 /* MYYearView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F67A8131DBF94760050F093 /* MYYearView.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 7F67A7F21DBF8E240050F093 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7F67A7D01DBF8E230050F093 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7F67A7D71DBF8E240050F093; + remoteInfo = iosCal; + }; + 7F67A7FD1DBF8E240050F093 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7F67A7D01DBF8E230050F093 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7F67A7D71DBF8E240050F093; + remoteInfo = iosCal; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 7F67A7D81DBF8E240050F093 /* iosCal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iosCal.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F67A7DC1DBF8E240050F093 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 7F67A7DE1DBF8E240050F093 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7F67A7DF1DBF8E240050F093 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 7F67A7E11DBF8E240050F093 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 7F67A7E21DBF8E240050F093 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 7F67A7E51DBF8E240050F093 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 7F67A7E71DBF8E240050F093 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7F67A7EA1DBF8E240050F093 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 7F67A7EC1DBF8E240050F093 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F67A7F11DBF8E240050F093 /* iosCalTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iosCalTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F67A7F51DBF8E240050F093 /* iosCalTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = iosCalTests.m; sourceTree = ""; }; + 7F67A7F71DBF8E240050F093 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F67A7FC1DBF8E240050F093 /* iosCalUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iosCalUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F67A8001DBF8E240050F093 /* iosCalUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = iosCalUITests.m; sourceTree = ""; }; + 7F67A8021DBF8E240050F093 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F67A80E1DBF94760050F093 /* MYMonthView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MYMonthView.h; sourceTree = ""; }; + 7F67A80F1DBF94760050F093 /* MYMonthView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MYMonthView.m; sourceTree = ""; }; + 7F67A8101DBF94760050F093 /* MyViewBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyViewBuffer.h; sourceTree = ""; }; + 7F67A8111DBF94760050F093 /* MyViewBuffer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyViewBuffer.m; sourceTree = ""; }; + 7F67A8121DBF94760050F093 /* MYYearView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MYYearView.h; sourceTree = ""; }; + 7F67A8131DBF94760050F093 /* MYYearView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MYYearView.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7F67A7D51DBF8E240050F093 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7EE1DBF8E240050F093 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7F91DBF8E240050F093 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 7F67A7CF1DBF8E230050F093 = { + isa = PBXGroup; + children = ( + 7F67A7DA1DBF8E240050F093 /* iosCal */, + 7F67A7F41DBF8E240050F093 /* iosCalTests */, + 7F67A7FF1DBF8E240050F093 /* iosCalUITests */, + 7F67A7D91DBF8E240050F093 /* Products */, + ); + sourceTree = ""; + }; + 7F67A7D91DBF8E240050F093 /* Products */ = { + isa = PBXGroup; + children = ( + 7F67A7D81DBF8E240050F093 /* iosCal.app */, + 7F67A7F11DBF8E240050F093 /* iosCalTests.xctest */, + 7F67A7FC1DBF8E240050F093 /* iosCalUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 7F67A7DA1DBF8E240050F093 /* iosCal */ = { + isa = PBXGroup; + children = ( + 7F67A80E1DBF94760050F093 /* MYMonthView.h */, + 7F67A80F1DBF94760050F093 /* MYMonthView.m */, + 7F67A8101DBF94760050F093 /* MyViewBuffer.h */, + 7F67A8111DBF94760050F093 /* MyViewBuffer.m */, + 7F67A8121DBF94760050F093 /* MYYearView.h */, + 7F67A8131DBF94760050F093 /* MYYearView.m */, + 7F67A7DE1DBF8E240050F093 /* AppDelegate.h */, + 7F67A7DF1DBF8E240050F093 /* AppDelegate.m */, + 7F67A7E11DBF8E240050F093 /* ViewController.h */, + 7F67A7E21DBF8E240050F093 /* ViewController.m */, + 7F67A7E41DBF8E240050F093 /* Main.storyboard */, + 7F67A7E71DBF8E240050F093 /* Assets.xcassets */, + 7F67A7E91DBF8E240050F093 /* LaunchScreen.storyboard */, + 7F67A7EC1DBF8E240050F093 /* Info.plist */, + 7F67A7DB1DBF8E240050F093 /* Supporting Files */, + ); + path = iosCal; + sourceTree = ""; + }; + 7F67A7DB1DBF8E240050F093 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 7F67A7DC1DBF8E240050F093 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 7F67A7F41DBF8E240050F093 /* iosCalTests */ = { + isa = PBXGroup; + children = ( + 7F67A7F51DBF8E240050F093 /* iosCalTests.m */, + 7F67A7F71DBF8E240050F093 /* Info.plist */, + ); + path = iosCalTests; + sourceTree = ""; + }; + 7F67A7FF1DBF8E240050F093 /* iosCalUITests */ = { + isa = PBXGroup; + children = ( + 7F67A8001DBF8E240050F093 /* iosCalUITests.m */, + 7F67A8021DBF8E240050F093 /* Info.plist */, + ); + path = iosCalUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7F67A7D71DBF8E240050F093 /* iosCal */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F67A8051DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCal" */; + buildPhases = ( + 7F67A7D41DBF8E240050F093 /* Sources */, + 7F67A7D51DBF8E240050F093 /* Frameworks */, + 7F67A7D61DBF8E240050F093 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = iosCal; + productName = iosCal; + productReference = 7F67A7D81DBF8E240050F093 /* iosCal.app */; + productType = "com.apple.product-type.application"; + }; + 7F67A7F01DBF8E240050F093 /* iosCalTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F67A8081DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCalTests" */; + buildPhases = ( + 7F67A7ED1DBF8E240050F093 /* Sources */, + 7F67A7EE1DBF8E240050F093 /* Frameworks */, + 7F67A7EF1DBF8E240050F093 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7F67A7F31DBF8E240050F093 /* PBXTargetDependency */, + ); + name = iosCalTests; + productName = iosCalTests; + productReference = 7F67A7F11DBF8E240050F093 /* iosCalTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 7F67A7FB1DBF8E240050F093 /* iosCalUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F67A80B1DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCalUITests" */; + buildPhases = ( + 7F67A7F81DBF8E240050F093 /* Sources */, + 7F67A7F91DBF8E240050F093 /* Frameworks */, + 7F67A7FA1DBF8E240050F093 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7F67A7FE1DBF8E240050F093 /* PBXTargetDependency */, + ); + name = iosCalUITests; + productName = iosCalUITests; + productReference = 7F67A7FC1DBF8E240050F093 /* iosCalUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7F67A7D01DBF8E230050F093 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = "Nick Alan"; + TargetAttributes = { + 7F67A7D71DBF8E240050F093 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + 7F67A7F01DBF8E240050F093 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 7F67A7D71DBF8E240050F093; + }; + 7F67A7FB1DBF8E240050F093 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 7F67A7D71DBF8E240050F093; + }; + }; + }; + buildConfigurationList = 7F67A7D31DBF8E230050F093 /* Build configuration list for PBXProject "iosCal" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7F67A7CF1DBF8E230050F093; + productRefGroup = 7F67A7D91DBF8E240050F093 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7F67A7D71DBF8E240050F093 /* iosCal */, + 7F67A7F01DBF8E240050F093 /* iosCalTests */, + 7F67A7FB1DBF8E240050F093 /* iosCalUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7F67A7D61DBF8E240050F093 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F67A7EB1DBF8E240050F093 /* LaunchScreen.storyboard in Resources */, + 7F67A7E81DBF8E240050F093 /* Assets.xcassets in Resources */, + 7F67A7E61DBF8E240050F093 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7EF1DBF8E240050F093 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7FA1DBF8E240050F093 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7F67A7D41DBF8E240050F093 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F67A7E31DBF8E240050F093 /* ViewController.m in Sources */, + 7F67A8161DBF94760050F093 /* MYYearView.m in Sources */, + 7F67A8151DBF94760050F093 /* MyViewBuffer.m in Sources */, + 7F67A7E01DBF8E240050F093 /* AppDelegate.m in Sources */, + 7F67A7DD1DBF8E240050F093 /* main.m in Sources */, + 7F67A8141DBF94760050F093 /* MYMonthView.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7ED1DBF8E240050F093 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F67A7F61DBF8E240050F093 /* iosCalTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F67A7F81DBF8E240050F093 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F67A8011DBF8E240050F093 /* iosCalUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 7F67A7F31DBF8E240050F093 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7F67A7D71DBF8E240050F093 /* iosCal */; + targetProxy = 7F67A7F21DBF8E240050F093 /* PBXContainerItemProxy */; + }; + 7F67A7FE1DBF8E240050F093 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7F67A7D71DBF8E240050F093 /* iosCal */; + targetProxy = 7F67A7FD1DBF8E240050F093 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 7F67A7E41DBF8E240050F093 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7F67A7E51DBF8E240050F093 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 7F67A7E91DBF8E240050F093 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7F67A7EA1DBF8E240050F093 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7F67A8031DBF8E240050F093 /* 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; + }; + name = Debug; + }; + 7F67A8041DBF8E240050F093 /* 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; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7F67A8061DBF8E240050F093 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = iosCal/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCal; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 7F67A8071DBF8E240050F093 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = iosCal/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCal; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 7F67A8091DBF8E240050F093 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = iosCalTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCalTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iosCal.app/iosCal"; + }; + name = Debug; + }; + 7F67A80A1DBF8E240050F093 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = iosCalTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCalTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iosCal.app/iosCal"; + }; + name = Release; + }; + 7F67A80C1DBF8E240050F093 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = iosCalUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCalUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = iosCal; + }; + name = Debug; + }; + 7F67A80D1DBF8E240050F093 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = iosCalUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.iosCalUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = iosCal; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7F67A7D31DBF8E230050F093 /* Build configuration list for PBXProject "iosCal" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F67A8031DBF8E240050F093 /* Debug */, + 7F67A8041DBF8E240050F093 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7F67A8051DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCal" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F67A8061DBF8E240050F093 /* Debug */, + 7F67A8071DBF8E240050F093 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 7F67A8081DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCalTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F67A8091DBF8E240050F093 /* Debug */, + 7F67A80A1DBF8E240050F093 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 7F67A80B1DBF8E240050F093 /* Build configuration list for PBXNativeTarget "iosCalUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F67A80C1DBF8E240050F093 /* Debug */, + 7F67A80D1DBF8E240050F093 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7F67A7D01DBF8E230050F093 /* Project object */; +} diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.h" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.h" new file mode 100644 index 0000000..1d694e8 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// iosCal +// +// Created by Nick Alan on 10/25/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.m" new file mode 100644 index 0000000..558d1a9 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/AppDelegate.m" @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// iosCal +// +// Created by Nick Alan on 10/25/16. +// Copyright © 2016 Nick Alan. 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/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..118c98f --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,38 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/LaunchScreen.storyboard" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/Main.storyboard" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..cfafbe4 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Base.lproj/Main.storyboard" @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Info.plist" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Info.plist" new file mode 100644 index 0000000..38e98af --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/Info.plist" @@ -0,0 +1,38 @@ + + + + + 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 + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.h" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.h" new file mode 100644 index 0000000..02b214d --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.h" @@ -0,0 +1,28 @@ +// +// MYMonthView.h +// MyCal +// +// Created by Nick Alan on 10/23/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +enum{ + MYMonthViewWidth = 20, + MYMonthViewHeight = 8 +}; + +@class MyViewBuffer; + +@interface MYMonthView : NSObject + +@property NSInteger year; +@property NSInteger month; +@property Boolean standAlone; +@property (strong) MyViewBuffer *viewBuffer; + ++(NSArray*)monthNames; +-(instancetype)initWithMonth:(NSInteger)month andYear:(NSInteger)year andStandAlone:(Boolean)standAlone; + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.m" new file mode 100644 index 0000000..49ca9cd --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYMonthView.m" @@ -0,0 +1,112 @@ +// +// MYMonthView.m +// MyCal +// +// Created by Nick Alan on 10/23/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "MYMonthView.h" +#import "MyViewBuffer.h" + +@interface MYMonthView() + ++(NSArray*)weekdayNames; +-(void)writeTitleOfMonth; +-(void)writeTitleOfWeekdays; +-(void)writeDays; + +@end + +@implementation MYMonthView + ++(NSArray*)monthNames; +{ + static NSArray* _monthNames; + if(_monthNames == nil) + { + _monthNames = @[@"January", + @"February", + @"March", + @"April", + @"May", + @"June", + @"July", + @"August", + @"September", + @"October", + @"November", + @"December"]; + } + return _monthNames; +} + ++(NSArray*)weekdayNames +{ + static NSArray* _weekdayNames; + if(_weekdayNames == nil){ + _weekdayNames = @[@"Su",@"Mo",@"Tu",@"We",@"Th",@"Fr",@"Sa"]; + } + return _weekdayNames; +} + +-(instancetype)initWithMonth:(NSInteger)month andYear:(NSInteger)year andStandAlone:(Boolean)standAlone +{ + self = [super init]; + if(self) + { + _month = month; + _year = year; + _standAlone = standAlone; + _viewBuffer = [[MyViewBuffer alloc] initWithWidth:MYMonthViewWidth andHeight:MYMonthViewHeight]; + + [self writeTitleOfMonth]; + [self writeTitleOfWeekdays]; + [self writeDays]; + } + return self; +} + +-(void)writeTitleOfMonth +{ + NSString *monthName = [[self class] monthNames] [_month-1]; + NSString *title = monthName; + if(_standAlone) + { + title = [NSString stringWithFormat:@"%@ %ld",monthName,(long)_year]; + } + NSInteger x = (_viewBuffer.width-title.length) / 2; + [_viewBuffer writeString:title toX:x andY:0]; +} + +-(void)writeTitleOfWeekdays +{ + NSString *title = [[[self class] weekdayNames] componentsJoinedByString:@" "]; + [_viewBuffer writeString:title toX:0 andY:1]; +} + +-(void)writeDays +{ + NSCalendar *calender = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + NSDateComponents *dateComponents = [[NSDateComponents alloc] init]; + dateComponents.year = _year; + dateComponents.month = _month; + NSDate *date = [calender dateFromComponents:dateComponents]; + NSRange days = [calender rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:date]; + + for(NSInteger day = 1;day <= days.length;day++) + { + dateComponents.day = day; + date = [calender dateFromComponents:dateComponents]; + + NSInteger weekOfMonth = [calender component:NSCalendarUnitWeekOfMonth fromDate:date]; + NSInteger weekday = [calender component:NSCalendarUnitWeekday fromDate:date]; + + NSString *dayString = [NSString stringWithFormat:@"%2ld",(long)day]; + NSInteger x = (weekday-1) * 3; + NSInteger y = weekOfMonth + 1; + [_viewBuffer writeString:dayString toX:x andY:y]; + } +} + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.h" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.h" new file mode 100644 index 0000000..ce04fb6 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.h" @@ -0,0 +1,20 @@ +// +// MYYearView.h +// MyCal +// +// Created by Nick Alan on 10/24/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +@class MyViewBuffer; + +@interface MYYearView : NSObject + +@property NSInteger year; +@property(strong) MyViewBuffer *viewBuffer; + +-(instancetype)initWithYear:(NSInteger)year; + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.m" new file mode 100644 index 0000000..3cddbcd --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MYYearView.m" @@ -0,0 +1,58 @@ +// +// MYYearView.m +// MyCal +// +// Created by Nick Alan on 10/24/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "MYYearView.h" +#import "MYMonthView.h" +#import "MyViewBuffer.h" + +enum{ + MYYearViewWidth = 4 + MYMonthViewWidth * 3, + MYYearViewHeight = 2 + MYMonthViewHeight * 4 +}; + +@interface MYYearView() + +-(void)writeTitleOfYear; +-(void)writeMonths; + +@end + +@implementation MYYearView + +-(instancetype)initWithYear:(NSInteger)year +{ + self = [super init]; + if(self) + { + _year = year; + _viewBuffer = [[MyViewBuffer alloc] initWithWidth:MYYearViewWidth andHeight:MYYearViewHeight]; + + [self writeTitleOfYear]; + [self writeMonths]; + } + return self; +} + +-(void)writeTitleOfYear +{ + NSString *title = [NSString stringWithFormat:@"%ld",(long)_year]; + NSInteger x = (_viewBuffer.width-title.length) / 2 - 1; + [_viewBuffer writeString:title toX:x andY:0]; +} + +-(void)writeMonths +{ + for(NSInteger month = 1;month<=12;month++) + { + MYMonthView *monthView = [[MYMonthView alloc] initWithMonth:month andYear:_year andStandAlone:NO]; + NSInteger x = (month-1)%3*(monthView.viewBuffer.width+2); + NSInteger y = 2+(month-1)/3*monthView.viewBuffer.height; + [_viewBuffer copyFromViewBuffer:monthView.viewBuffer toX:x andY:y]; + } +} +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.h" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.h" new file mode 100644 index 0000000..43077d6 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.h" @@ -0,0 +1,21 @@ +// +// MyViewBuffer.h +// MyCal +// +// Created by Nick Alan on 10/23/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +@interface MyViewBuffer : NSObject + +@property (readonly) NSInteger width; +@property (readonly) NSInteger height; + +-(instancetype)initWithWidth:(NSInteger)width andHeight:(NSInteger)height; +-(void)writeString:(NSString*)str toX:(NSInteger)x andY:(NSInteger)y; +-(void)copyFromViewBuffer:(MyViewBuffer*)viewBuffer toX:(NSInteger)x andY:(NSInteger)y; +-(NSString*)display; + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.m" new file mode 100644 index 0000000..bf915e2 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/MyViewBuffer.m" @@ -0,0 +1,64 @@ +// +// MyViewBuffer.m +// MyCal +// +// Created by Nick Alan on 10/23/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "MyViewBuffer.h" + +@interface MyViewBuffer() +{ + NSMutableString *_buffer; +} +-(NSString*)rowString:(NSInteger)row; + +@end + +@implementation MyViewBuffer + +-(instancetype)initWithWidth:(NSInteger)width andHeight:(NSInteger)height +{ + self = [super init]; + if(self){ + _width = width; + _height = height; + + NSString *strContent = [@"" stringByPaddingToLength:width*height withString:@" " startingAtIndex:0]; + _buffer = [NSMutableString stringWithString:strContent]; + } + return self; +} + +-(NSString *)rowString:(NSInteger)row +{ + return [_buffer substringWithRange:NSMakeRange(_width*row, _width)]; +} + +-(void)writeString:(NSString*)str toX:(NSInteger)x andY:(NSInteger)y +{ + NSInteger startIndex = x + y*_width; + [_buffer replaceCharactersInRange:NSMakeRange(startIndex, str.length) withString:str]; +} + +-(void)copyFromViewBuffer:(MyViewBuffer*)viewBuffer toX:(NSInteger)x andY:(NSInteger)y +{ + for(NSInteger row = 0;row + +@interface ViewController : UIViewController + +@property (weak, nonatomic) IBOutlet UILabel *lab; + + +@end + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/ViewController.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/ViewController.m" new file mode 100644 index 0000000..6a5e7be --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/ViewController.m" @@ -0,0 +1,46 @@ +// +// ViewController.m +// iosCal +// +// Created by Nick Alan on 10/25/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "ViewController.h" +#import "MYMonthView.h" +#import "MYYearView.h" +#import "MyViewBuffer.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + NSInteger year = 0; + NSInteger month = 0; + NSCalendar *calender = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + NSDate *date = [NSDate date]; + year = [calender component:NSCalendarUnitYear fromDate:date]; + month = [calender component:NSCalendarUnitMonth fromDate:date]; + MYMonthView *view = [[MYMonthView alloc] initWithMonth:month andYear:year andStandAlone:YES]; + NSString *str = [view.viewBuffer display]; + //_lab.font = [UIFont systemFontOfSize:14]; + _lab.font = [UIFont fontWithName:@"Courier" size:20]; + _lab.numberOfLines = 0; + _lab.textAlignment = NSTextAlignmentLeft; + _lab.adjustsFontSizeToFitWidth = YES; + _lab.text = str; +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/main.m" "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/main.m" new file mode 100644 index 0000000..238a77e --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project02/iosCal/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// iosCal +// +// Created by Nick Alan on 10/25/16. +// Copyright © 2016 Nick Alan. 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/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList.xcodeproj/project.pbxproj" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..9bfd634 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList.xcodeproj/project.pbxproj" @@ -0,0 +1,540 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 7F09681F1DC0CF9B00DD83FC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F09681E1DC0CF9B00DD83FC /* main.m */; }; + 7F0968221DC0CF9B00DD83FC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968211DC0CF9B00DD83FC /* AppDelegate.m */; }; + 7F0968251DC0CF9B00DD83FC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968241DC0CF9B00DD83FC /* ViewController.m */; }; + 7F0968281DC0CF9B00DD83FC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7F0968261DC0CF9B00DD83FC /* Main.storyboard */; }; + 7F09682A1DC0CF9B00DD83FC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7F0968291DC0CF9B00DD83FC /* Assets.xcassets */; }; + 7F09682D1DC0CF9B00DD83FC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7F09682B1DC0CF9B00DD83FC /* LaunchScreen.storyboard */; }; + 7F0968381DC0CF9C00DD83FC /* ToDoListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968371DC0CF9C00DD83FC /* ToDoListTests.m */; }; + 7F0968431DC0CF9C00DD83FC /* ToDoListUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968421DC0CF9C00DD83FC /* ToDoListUITests.m */; }; + 7F0968521DC0D59400DD83FC /* CHCToDoItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968511DC0D59400DD83FC /* CHCToDoItem.m */; }; + 7F0968551DC0D91C00DD83FC /* ToDoListTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F0968541DC0D91C00DD83FC /* ToDoListTableViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 7F0968341DC0CF9C00DD83FC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7F0968121DC0CF9B00DD83FC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7F0968191DC0CF9B00DD83FC; + remoteInfo = ToDoList; + }; + 7F09683F1DC0CF9C00DD83FC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7F0968121DC0CF9B00DD83FC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7F0968191DC0CF9B00DD83FC; + remoteInfo = ToDoList; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 7F09681A1DC0CF9B00DD83FC /* ToDoList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ToDoList.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F09681E1DC0CF9B00DD83FC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 7F0968201DC0CF9B00DD83FC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7F0968211DC0CF9B00DD83FC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 7F0968231DC0CF9B00DD83FC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 7F0968241DC0CF9B00DD83FC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 7F0968271DC0CF9B00DD83FC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 7F0968291DC0CF9B00DD83FC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7F09682C1DC0CF9B00DD83FC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 7F09682E1DC0CF9B00DD83FC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F0968331DC0CF9C00DD83FC /* ToDoListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ToDoListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F0968371DC0CF9C00DD83FC /* ToDoListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ToDoListTests.m; sourceTree = ""; }; + 7F0968391DC0CF9C00DD83FC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F09683E1DC0CF9C00DD83FC /* ToDoListUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ToDoListUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F0968421DC0CF9C00DD83FC /* ToDoListUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ToDoListUITests.m; sourceTree = ""; }; + 7F0968441DC0CF9C00DD83FC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7F0968501DC0D59400DD83FC /* CHCToDoItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHCToDoItem.h; sourceTree = ""; }; + 7F0968511DC0D59400DD83FC /* CHCToDoItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHCToDoItem.m; sourceTree = ""; }; + 7F0968531DC0D91C00DD83FC /* ToDoListTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ToDoListTableViewController.h; sourceTree = ""; }; + 7F0968541DC0D91C00DD83FC /* ToDoListTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ToDoListTableViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7F0968171DC0CF9B00DD83FC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F0968301DC0CF9C00DD83FC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F09683B1DC0CF9C00DD83FC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 7F0968111DC0CF9B00DD83FC = { + isa = PBXGroup; + children = ( + 7F09681C1DC0CF9B00DD83FC /* ToDoList */, + 7F0968361DC0CF9C00DD83FC /* ToDoListTests */, + 7F0968411DC0CF9C00DD83FC /* ToDoListUITests */, + 7F09681B1DC0CF9B00DD83FC /* Products */, + ); + sourceTree = ""; + }; + 7F09681B1DC0CF9B00DD83FC /* Products */ = { + isa = PBXGroup; + children = ( + 7F09681A1DC0CF9B00DD83FC /* ToDoList.app */, + 7F0968331DC0CF9C00DD83FC /* ToDoListTests.xctest */, + 7F09683E1DC0CF9C00DD83FC /* ToDoListUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 7F09681C1DC0CF9B00DD83FC /* ToDoList */ = { + isa = PBXGroup; + children = ( + 7F0968201DC0CF9B00DD83FC /* AppDelegate.h */, + 7F0968211DC0CF9B00DD83FC /* AppDelegate.m */, + 7F0968231DC0CF9B00DD83FC /* ViewController.h */, + 7F0968241DC0CF9B00DD83FC /* ViewController.m */, + 7F0968261DC0CF9B00DD83FC /* Main.storyboard */, + 7F0968291DC0CF9B00DD83FC /* Assets.xcassets */, + 7F09682B1DC0CF9B00DD83FC /* LaunchScreen.storyboard */, + 7F09682E1DC0CF9B00DD83FC /* Info.plist */, + 7F0968531DC0D91C00DD83FC /* ToDoListTableViewController.h */, + 7F0968541DC0D91C00DD83FC /* ToDoListTableViewController.m */, + 7F09681D1DC0CF9B00DD83FC /* Supporting Files */, + 7F0968501DC0D59400DD83FC /* CHCToDoItem.h */, + 7F0968511DC0D59400DD83FC /* CHCToDoItem.m */, + ); + path = ToDoList; + sourceTree = ""; + }; + 7F09681D1DC0CF9B00DD83FC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 7F09681E1DC0CF9B00DD83FC /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 7F0968361DC0CF9C00DD83FC /* ToDoListTests */ = { + isa = PBXGroup; + children = ( + 7F0968371DC0CF9C00DD83FC /* ToDoListTests.m */, + 7F0968391DC0CF9C00DD83FC /* Info.plist */, + ); + path = ToDoListTests; + sourceTree = ""; + }; + 7F0968411DC0CF9C00DD83FC /* ToDoListUITests */ = { + isa = PBXGroup; + children = ( + 7F0968421DC0CF9C00DD83FC /* ToDoListUITests.m */, + 7F0968441DC0CF9C00DD83FC /* Info.plist */, + ); + path = ToDoListUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7F0968191DC0CF9B00DD83FC /* ToDoList */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F0968471DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoList" */; + buildPhases = ( + 7F0968161DC0CF9B00DD83FC /* Sources */, + 7F0968171DC0CF9B00DD83FC /* Frameworks */, + 7F0968181DC0CF9B00DD83FC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ToDoList; + productName = ToDoList; + productReference = 7F09681A1DC0CF9B00DD83FC /* ToDoList.app */; + productType = "com.apple.product-type.application"; + }; + 7F0968321DC0CF9C00DD83FC /* ToDoListTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F09684A1DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoListTests" */; + buildPhases = ( + 7F09682F1DC0CF9C00DD83FC /* Sources */, + 7F0968301DC0CF9C00DD83FC /* Frameworks */, + 7F0968311DC0CF9C00DD83FC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7F0968351DC0CF9C00DD83FC /* PBXTargetDependency */, + ); + name = ToDoListTests; + productName = ToDoListTests; + productReference = 7F0968331DC0CF9C00DD83FC /* ToDoListTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 7F09683D1DC0CF9C00DD83FC /* ToDoListUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F09684D1DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoListUITests" */; + buildPhases = ( + 7F09683A1DC0CF9C00DD83FC /* Sources */, + 7F09683B1DC0CF9C00DD83FC /* Frameworks */, + 7F09683C1DC0CF9C00DD83FC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7F0968401DC0CF9C00DD83FC /* PBXTargetDependency */, + ); + name = ToDoListUITests; + productName = ToDoListUITests; + productReference = 7F09683E1DC0CF9C00DD83FC /* ToDoListUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7F0968121DC0CF9B00DD83FC /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = "Nick Alan"; + TargetAttributes = { + 7F0968191DC0CF9B00DD83FC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + 7F0968321DC0CF9C00DD83FC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 7F0968191DC0CF9B00DD83FC; + }; + 7F09683D1DC0CF9C00DD83FC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 7F0968191DC0CF9B00DD83FC; + }; + }; + }; + buildConfigurationList = 7F0968151DC0CF9B00DD83FC /* Build configuration list for PBXProject "ToDoList" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7F0968111DC0CF9B00DD83FC; + productRefGroup = 7F09681B1DC0CF9B00DD83FC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7F0968191DC0CF9B00DD83FC /* ToDoList */, + 7F0968321DC0CF9C00DD83FC /* ToDoListTests */, + 7F09683D1DC0CF9C00DD83FC /* ToDoListUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7F0968181DC0CF9B00DD83FC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F09682D1DC0CF9B00DD83FC /* LaunchScreen.storyboard in Resources */, + 7F09682A1DC0CF9B00DD83FC /* Assets.xcassets in Resources */, + 7F0968281DC0CF9B00DD83FC /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F0968311DC0CF9C00DD83FC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F09683C1DC0CF9C00DD83FC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7F0968161DC0CF9B00DD83FC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F0968251DC0CF9B00DD83FC /* ViewController.m in Sources */, + 7F0968221DC0CF9B00DD83FC /* AppDelegate.m in Sources */, + 7F09681F1DC0CF9B00DD83FC /* main.m in Sources */, + 7F0968551DC0D91C00DD83FC /* ToDoListTableViewController.m in Sources */, + 7F0968521DC0D59400DD83FC /* CHCToDoItem.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F09682F1DC0CF9C00DD83FC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F0968381DC0CF9C00DD83FC /* ToDoListTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7F09683A1DC0CF9C00DD83FC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F0968431DC0CF9C00DD83FC /* ToDoListUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 7F0968351DC0CF9C00DD83FC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7F0968191DC0CF9B00DD83FC /* ToDoList */; + targetProxy = 7F0968341DC0CF9C00DD83FC /* PBXContainerItemProxy */; + }; + 7F0968401DC0CF9C00DD83FC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7F0968191DC0CF9B00DD83FC /* ToDoList */; + targetProxy = 7F09683F1DC0CF9C00DD83FC /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 7F0968261DC0CF9B00DD83FC /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7F0968271DC0CF9B00DD83FC /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 7F09682B1DC0CF9B00DD83FC /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7F09682C1DC0CF9B00DD83FC /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7F0968451DC0CF9C00DD83FC /* 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; + }; + name = Debug; + }; + 7F0968461DC0CF9C00DD83FC /* 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; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7F0968481DC0CF9C00DD83FC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = ToDoList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 7F0968491DC0CF9C00DD83FC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = ToDoList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 7F09684B1DC0CF9C00DD83FC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = ToDoListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ToDoList.app/ToDoList"; + }; + name = Debug; + }; + 7F09684C1DC0CF9C00DD83FC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = ToDoListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ToDoList.app/ToDoList"; + }; + name = Release; + }; + 7F09684E1DC0CF9C00DD83FC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = ToDoListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = ToDoList; + }; + name = Debug; + }; + 7F09684F1DC0CF9C00DD83FC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = ToDoListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = indi.ToDoListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = ToDoList; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7F0968151DC0CF9B00DD83FC /* Build configuration list for PBXProject "ToDoList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F0968451DC0CF9C00DD83FC /* Debug */, + 7F0968461DC0CF9C00DD83FC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7F0968471DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F0968481DC0CF9C00DD83FC /* Debug */, + 7F0968491DC0CF9C00DD83FC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 7F09684A1DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoListTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F09684B1DC0CF9C00DD83FC /* Debug */, + 7F09684C1DC0CF9C00DD83FC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 7F09684D1DC0CF9C00DD83FC /* Build configuration list for PBXNativeTarget "ToDoListUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F09684E1DC0CF9C00DD83FC /* Debug */, + 7F09684F1DC0CF9C00DD83FC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7F0968121DC0CF9B00DD83FC /* Project object */; +} diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.h" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.h" new file mode 100644 index 0000000..13ff73c --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.m" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.m" new file mode 100644 index 0000000..e850513 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/AppDelegate.m" @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. 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/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..118c98f --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,38 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/LaunchScreen.storyboard" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/Main.storyboard" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..e1d4d3b --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Base.lproj/Main.storyboard" @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.h" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.h" new file mode 100644 index 0000000..02a5297 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.h" @@ -0,0 +1,17 @@ +// +// CHCToDoItem.h +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import + +@interface CHCToDoItem : NSObject + +@property NSString *itemName; +@property BOOL completed; +@property (readonly)NSDate *creationDate; + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.m" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.m" new file mode 100644 index 0000000..d2838c8 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/CHCToDoItem.m" @@ -0,0 +1,13 @@ +// +// CHCToDoItem.m +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "CHCToDoItem.h" + +@implementation CHCToDoItem + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Info.plist" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Info.plist" new file mode 100644 index 0000000..38e98af --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/Info.plist" @@ -0,0 +1,38 @@ + + + + + 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 + + + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.h" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.h" new file mode 100644 index 0000000..2f5bbfc --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.h" @@ -0,0 +1,15 @@ +// +// ToDoListTableViewController.h +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import +#import "CHCToDoItem.h" +typedef void (^ReturnTextBlock)(CHCToDoItem *toDoItem); +@interface ToDoListTableViewController : UITableViewController +@property(nonatomic,copy) ReturnTextBlock returnTextBlock; +//-(void)returnText:(ReturnTextBlock)block; +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.m" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.m" new file mode 100644 index 0000000..5c42ff0 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ToDoListTableViewController.m" @@ -0,0 +1,132 @@ +// +// ToDoListTableViewController.m +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "ToDoListTableViewController.h" +#import "CHCToDoItem.h" + +@interface ToDoListTableViewController () + +@property NSMutableArray *toDoItems; + +@end + +@implementation ToDoListTableViewController +-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if(self.returnTextBlock != nil) + { + CHCToDoItem *item = self.returnTextBlock; + + } +} +-(void)loadInitialDate +{ + CHCToDoItem *item1 = [[CHCToDoItem alloc] init]; + item1.itemName = @"Buy milk"; + [self.toDoItems addObject:item1]; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + self.toDoItems = [[NSMutableArray alloc] init]; + [self loadInitialDate]; + // Uncomment the following line to preserve selection between presentations. + // self.clearsSelectionOnViewWillAppear = NO; + + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. + // self.navigationItem.rightBarButtonItem = self.editButtonItem; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + + return [self.toDoItems count]; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + static NSString *CellIdentifier = @"ListPrototypeCell"; + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; + + // Configure the cell... + CHCToDoItem *toDoItem = [self.toDoItems objectAtIndex:indexPath.row]; + cell.textLabel.text = toDoItem.itemName; + if(toDoItem.completed) + { + cell.accessoryType = UITableViewCellAccessoryCheckmark; + }else{ + cell.accessoryType = UITableViewRowAnimationNone; + } + return cell; +} + + +/* +// Override to support conditional editing of the table view. +- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { + // Return NO if you do not want the specified item to be editable. + return YES; +} +*/ + +/* +// Override to support editing the table view. +- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { + if (editingStyle == UITableViewCellEditingStyleDelete) { + // Delete the row from the data source + [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; + } else if (editingStyle == UITableViewCellEditingStyleInsert) { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } +} +*/ + +/* +// Override to support rearranging the table view. +- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { +} +*/ + +/* +// Override to support conditional rearranging of the table view. +- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { + // Return NO if you do not want the item to be re-orderable. + return YES; +} +*/ + + +#pragma mark - Table view delegate + + -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + [tableView deselectRowAtIndexPath:indexPath animated:NO]; + CHCToDoItem *tappedItem = [self.toDoItems objectAtIndex:indexPath.row]; + tappedItem.completed = !tappedItem.completed; + [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; +} +/* +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.h" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.h" new file mode 100644 index 0000000..7ac8f61 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.h" @@ -0,0 +1,17 @@ +// +// ViewController.h +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import +#import "CHCToDoItem.h" + +@interface ViewController : UIViewController + +@property CHCToDoItem *toDoItem; + +@end + diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.m" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.m" new file mode 100644 index 0000000..fb61a28 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/ViewController.m" @@ -0,0 +1,56 @@ +// +// ViewController.m +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import "ViewController.h" +#import "ToDoListTableViewController.h" +@interface ViewController () +@property (weak, nonatomic) IBOutlet UITextField *textField; +@property (weak, nonatomic) IBOutlet UIButton *addButton; + +@end + +@implementation ViewController +//-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +//{ +// if(sender != self.addButton) return; +// if(self.textField.text.length>0) +// { +// self.toDoItem = [[CHCToDoItem alloc] init]; +// self.toDoItem.itemName = self.textField.text; +// self.toDoItem.completed = NO; +// } +//} +-(void)BtnClick:(UIButton*)btn +{ + if(self.textField.text.length>0) + { + self.toDoItem = [[CHCToDoItem alloc] init]; + self.toDoItem.itemName = self.textField.text; + self.toDoItem.completed = NO; + ToDoListTableViewController *toDL = [[ToDoListTableViewController alloc] init]; + toDL.returnTextBlock = ^(CHCToDoItem *toDoList){ + toDoList = self.toDoItem; + }; +// [self.navigationController pushViewController:toDL animated:YES]; +// [detailvc release]; + } +} +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + [_addButton addTarget:self action:@selector(BtnClick:) forControlEvents:UIControlEventTouchUpInside]; +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/main.m" "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/main.m" new file mode 100644 index 0000000..a2ac387 --- /dev/null +++ "b/21651049\351\231\210\346\230\212\345\267\235/project03/ToDoList/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// ToDoList +// +// Created by Nick Alan on 10/26/16. +// Copyright © 2016 Nick Alan. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +}