diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/MusicPlayer.pages" "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/MusicPlayer.pages" new file mode 100644 index 00000000..7508fea8 Binary files /dev/null and "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/MusicPlayer.pages" differ diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/PPT MusicPlayer.key" "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/PPT MusicPlayer.key" new file mode 100644 index 00000000..7b38f474 Binary files /dev/null and "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/PPT MusicPlayer.key" differ diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/\344\273\243\347\240\201" "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/\344\273\243\347\240\201" new file mode 160000 index 00000000..5530e2d4 --- /dev/null +++ "b/nb15117\346\261\244\345\273\272\345\215\216/MusicPlayer/\344\273\243\347\240\201" @@ -0,0 +1 @@ +Subproject commit 5530e2d4faf67023d8958fb8268c4a915f53bbfe diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.pbxproj" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.pbxproj" deleted file mode 100644 index 7b7eff2d..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,527 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 71544A831BCE3F62001D8232 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544A821BCE3F62001D8232 /* main.m */; }; - 71544A861BCE3F62001D8232 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544A851BCE3F62001D8232 /* AppDelegate.m */; }; - 71544A891BCE3F62001D8232 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544A881BCE3F62001D8232 /* ViewController.m */; }; - 71544A8C1BCE3F62001D8232 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71544A8A1BCE3F62001D8232 /* Main.storyboard */; }; - 71544A8E1BCE3F62001D8232 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 71544A8D1BCE3F62001D8232 /* Assets.xcassets */; }; - 71544A911BCE3F62001D8232 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71544A8F1BCE3F62001D8232 /* LaunchScreen.storyboard */; }; - 71544A9C1BCE3F63001D8232 /* first_workTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544A9B1BCE3F63001D8232 /* first_workTests.m */; }; - 71544AA71BCE3F63001D8232 /* first_workUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544AA61BCE3F63001D8232 /* first_workUITests.m */; }; - 71544AB61BCE4300001D8232 /* demo.m in Sources */ = {isa = PBXBuildFile; fileRef = 71544AB51BCE4300001D8232 /* demo.m */; settings = {ASSET_TAGS = (); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 71544A981BCE3F63001D8232 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 71544A761BCE3F62001D8232 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 71544A7D1BCE3F62001D8232; - remoteInfo = "first-work"; - }; - 71544AA31BCE3F63001D8232 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 71544A761BCE3F62001D8232 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 71544A7D1BCE3F62001D8232; - remoteInfo = "first-work"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 71544A7E1BCE3F62001D8232 /* first-work.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "first-work.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 71544A821BCE3F62001D8232 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 71544A841BCE3F62001D8232 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 71544A851BCE3F62001D8232 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 71544A871BCE3F62001D8232 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 71544A881BCE3F62001D8232 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 71544A8B1BCE3F62001D8232 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 71544A8D1BCE3F62001D8232 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 71544A901BCE3F62001D8232 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 71544A921BCE3F62001D8232 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 71544A971BCE3F63001D8232 /* first-workTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "first-workTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 71544A9B1BCE3F63001D8232 /* first_workTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = first_workTests.m; sourceTree = ""; }; - 71544A9D1BCE3F63001D8232 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 71544AA21BCE3F63001D8232 /* first-workUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "first-workUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 71544AA61BCE3F63001D8232 /* first_workUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = first_workUITests.m; sourceTree = ""; }; - 71544AA81BCE3F63001D8232 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 71544AB41BCE4300001D8232 /* demo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = demo.h; path = ../../demo.h; sourceTree = ""; }; - 71544AB51BCE4300001D8232 /* demo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = demo.m; path = ../../demo.m; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 71544A7B1BCE3F62001D8232 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544A941BCE3F63001D8232 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544A9F1BCE3F63001D8232 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 71544A751BCE3F62001D8232 = { - isa = PBXGroup; - children = ( - 71544A801BCE3F62001D8232 /* first-work */, - 71544A9A1BCE3F63001D8232 /* first-workTests */, - 71544AA51BCE3F63001D8232 /* first-workUITests */, - 71544A7F1BCE3F62001D8232 /* Products */, - ); - sourceTree = ""; - }; - 71544A7F1BCE3F62001D8232 /* Products */ = { - isa = PBXGroup; - children = ( - 71544A7E1BCE3F62001D8232 /* first-work.app */, - 71544A971BCE3F63001D8232 /* first-workTests.xctest */, - 71544AA21BCE3F63001D8232 /* first-workUITests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 71544A801BCE3F62001D8232 /* first-work */ = { - isa = PBXGroup; - children = ( - 71544A841BCE3F62001D8232 /* AppDelegate.h */, - 71544A851BCE3F62001D8232 /* AppDelegate.m */, - 71544A871BCE3F62001D8232 /* ViewController.h */, - 71544A881BCE3F62001D8232 /* ViewController.m */, - 71544A8A1BCE3F62001D8232 /* Main.storyboard */, - 71544AB41BCE4300001D8232 /* demo.h */, - 71544AB51BCE4300001D8232 /* demo.m */, - 71544A8D1BCE3F62001D8232 /* Assets.xcassets */, - 71544A8F1BCE3F62001D8232 /* LaunchScreen.storyboard */, - 71544A921BCE3F62001D8232 /* Info.plist */, - 71544A811BCE3F62001D8232 /* Supporting Files */, - ); - path = "first-work"; - sourceTree = ""; - }; - 71544A811BCE3F62001D8232 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 71544A821BCE3F62001D8232 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 71544A9A1BCE3F63001D8232 /* first-workTests */ = { - isa = PBXGroup; - children = ( - 71544A9B1BCE3F63001D8232 /* first_workTests.m */, - 71544A9D1BCE3F63001D8232 /* Info.plist */, - ); - path = "first-workTests"; - sourceTree = ""; - }; - 71544AA51BCE3F63001D8232 /* first-workUITests */ = { - isa = PBXGroup; - children = ( - 71544AA61BCE3F63001D8232 /* first_workUITests.m */, - 71544AA81BCE3F63001D8232 /* Info.plist */, - ); - path = "first-workUITests"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 71544A7D1BCE3F62001D8232 /* first-work */ = { - isa = PBXNativeTarget; - buildConfigurationList = 71544AAB1BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-work" */; - buildPhases = ( - 71544A7A1BCE3F62001D8232 /* Sources */, - 71544A7B1BCE3F62001D8232 /* Frameworks */, - 71544A7C1BCE3F62001D8232 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "first-work"; - productName = "first-work"; - productReference = 71544A7E1BCE3F62001D8232 /* first-work.app */; - productType = "com.apple.product-type.application"; - }; - 71544A961BCE3F63001D8232 /* first-workTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 71544AAE1BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-workTests" */; - buildPhases = ( - 71544A931BCE3F63001D8232 /* Sources */, - 71544A941BCE3F63001D8232 /* Frameworks */, - 71544A951BCE3F63001D8232 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 71544A991BCE3F63001D8232 /* PBXTargetDependency */, - ); - name = "first-workTests"; - productName = "first-workTests"; - productReference = 71544A971BCE3F63001D8232 /* first-workTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 71544AA11BCE3F63001D8232 /* first-workUITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 71544AB11BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-workUITests" */; - buildPhases = ( - 71544A9E1BCE3F63001D8232 /* Sources */, - 71544A9F1BCE3F63001D8232 /* Frameworks */, - 71544AA01BCE3F63001D8232 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 71544AA41BCE3F63001D8232 /* PBXTargetDependency */, - ); - name = "first-workUITests"; - productName = "first-workUITests"; - productReference = 71544AA21BCE3F63001D8232 /* first-workUITests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 71544A761BCE3F62001D8232 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = AbelTowne; - TargetAttributes = { - 71544A7D1BCE3F62001D8232 = { - CreatedOnToolsVersion = 7.0.1; - }; - 71544A961BCE3F63001D8232 = { - CreatedOnToolsVersion = 7.0.1; - TestTargetID = 71544A7D1BCE3F62001D8232; - }; - 71544AA11BCE3F63001D8232 = { - CreatedOnToolsVersion = 7.0.1; - TestTargetID = 71544A7D1BCE3F62001D8232; - }; - }; - }; - buildConfigurationList = 71544A791BCE3F62001D8232 /* Build configuration list for PBXProject "first-work" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 71544A751BCE3F62001D8232; - productRefGroup = 71544A7F1BCE3F62001D8232 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 71544A7D1BCE3F62001D8232 /* first-work */, - 71544A961BCE3F63001D8232 /* first-workTests */, - 71544AA11BCE3F63001D8232 /* first-workUITests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 71544A7C1BCE3F62001D8232 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 71544A911BCE3F62001D8232 /* LaunchScreen.storyboard in Resources */, - 71544A8E1BCE3F62001D8232 /* Assets.xcassets in Resources */, - 71544A8C1BCE3F62001D8232 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544A951BCE3F63001D8232 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544AA01BCE3F63001D8232 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 71544A7A1BCE3F62001D8232 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 71544A891BCE3F62001D8232 /* ViewController.m in Sources */, - 71544A861BCE3F62001D8232 /* AppDelegate.m in Sources */, - 71544AB61BCE4300001D8232 /* demo.m in Sources */, - 71544A831BCE3F62001D8232 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544A931BCE3F63001D8232 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 71544A9C1BCE3F63001D8232 /* first_workTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 71544A9E1BCE3F63001D8232 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 71544AA71BCE3F63001D8232 /* first_workUITests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 71544A991BCE3F63001D8232 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 71544A7D1BCE3F62001D8232 /* first-work */; - targetProxy = 71544A981BCE3F63001D8232 /* PBXContainerItemProxy */; - }; - 71544AA41BCE3F63001D8232 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 71544A7D1BCE3F62001D8232 /* first-work */; - targetProxy = 71544AA31BCE3F63001D8232 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 71544A8A1BCE3F62001D8232 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 71544A8B1BCE3F62001D8232 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 71544A8F1BCE3F62001D8232 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 71544A901BCE3F62001D8232 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 71544AA91BCE3F63001D8232 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - 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 = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 71544AAA1BCE3F63001D8232 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - 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 = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 71544AAC1BCE3F63001D8232 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "first-work/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-work"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 71544AAD1BCE3F63001D8232 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "first-work/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-work"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 71544AAF1BCE3F63001D8232 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - INFOPLIST_FILE = "first-workTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-workTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/first-work.app/first-work"; - }; - name = Debug; - }; - 71544AB01BCE3F63001D8232 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - INFOPLIST_FILE = "first-workTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-workTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/first-work.app/first-work"; - }; - name = Release; - }; - 71544AB21BCE3F63001D8232 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - INFOPLIST_FILE = "first-workUITests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-workUITests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_TARGET_NAME = "first-work"; - USES_XCTRUNNER = YES; - }; - name = Debug; - }; - 71544AB31BCE3F63001D8232 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - INFOPLIST_FILE = "first-workUITests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "nb15117.first-workUITests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_TARGET_NAME = "first-work"; - USES_XCTRUNNER = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 71544A791BCE3F62001D8232 /* Build configuration list for PBXProject "first-work" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 71544AA91BCE3F63001D8232 /* Debug */, - 71544AAA1BCE3F63001D8232 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 71544AAB1BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-work" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 71544AAC1BCE3F63001D8232 /* Debug */, - 71544AAD1BCE3F63001D8232 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; - 71544AAE1BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-workTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 71544AAF1BCE3F63001D8232 /* Debug */, - 71544AB01BCE3F63001D8232 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; - 71544AB11BCE3F63001D8232 /* Build configuration list for PBXNativeTarget "first-workUITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 71544AB21BCE3F63001D8232 /* Debug */, - 71544AB31BCE3F63001D8232 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 71544A761BCE3F62001D8232 /* Project object */; -} diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 3bde9192..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.h" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.h" deleted file mode 100644 index 99af5286..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// first-work -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.m" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.m" deleted file mode 100644 index 7da6274e..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// first-work -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. 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 throttle down OpenGL ES frame rates. 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 inactive 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/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80d..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "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/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/Contents.json" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/Contents.json" deleted file mode 100644 index da4a164c..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/Contents.json" +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/200711912453162_2.jpg" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/200711912453162_2.jpg" deleted file mode 100644 index 416bd5d0..00000000 Binary files "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/200711912453162_2.jpg" and /dev/null differ diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/Contents.json" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/Contents.json" deleted file mode 100644 index bb822130..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Assets.xcassets/bt_1.imageset/Contents.json" +++ /dev/null @@ -1,21 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "200711912453162_2.jpg", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/LaunchScreen.storyboard" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 5a9c4a60..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/Main.storyboard" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/Main.storyboard" deleted file mode 100644 index 624305ee..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.h" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.h" deleted file mode 100644 index 18a71496..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// first-work -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.m" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.m" deleted file mode 100644 index e91332c4..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/ViewController.m" +++ /dev/null @@ -1,43 +0,0 @@ -// -// ViewController.m -// first-work -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. All rights reserved. -// - -#import "ViewController.h" -#import "demo.h" - -@interface ViewController () -@property (weak, nonatomic) IBOutlet UILabel *FlipsLabel; -@property (nonatomic) int flipsCount; -@end - -@implementation ViewController -- (void)setFlipCount:(int)flipsCount{ - _flipsCount = flipsCount; - self.FlipsLabel.text = [NSString stringWithFormat:@"Flips: %d",self.flipsCount]; - NSLog(@"%d",self.flipsCount); -} -- (void)test{ - demo *d = [[demo alloc]init]; - [d nsDemo]; - [demo pfDemo]; -} -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. -} -- (IBAction)click:(UIButton *)sender { - self.flipsCount++; - NSLog(@"%d",self.flipsCount); -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - -@end diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/main.m" "b/nb15117\346\261\244\345\273\272\345\215\216/first-work/main.m" deleted file mode 100644 index 60fe19c7..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-work/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// first-work -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. 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/nb15117\346\261\244\345\273\272\345\215\216/first-workTests/first_workTests.m" "b/nb15117\346\261\244\345\273\272\345\215\216/first-workTests/first_workTests.m" deleted file mode 100644 index 62a7fac9..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-workTests/first_workTests.m" +++ /dev/null @@ -1,39 +0,0 @@ -// -// first_workTests.m -// first-workTests -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. All rights reserved. -// - -#import - -@interface first_workTests : XCTestCase - -@end - -@implementation first_workTests - -- (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/nb15117\346\261\244\345\273\272\345\215\216/first-workUITests/first_workUITests.m" "b/nb15117\346\261\244\345\273\272\345\215\216/first-workUITests/first_workUITests.m" deleted file mode 100644 index aae5ebd1..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/first-workUITests/first_workUITests.m" +++ /dev/null @@ -1,40 +0,0 @@ -// -// first_workUITests.m -// first-workUITests -// -// Created by AbelTowne on 15/10/14. -// Copyright © 2015年 AbelTowne. All rights reserved. -// - -#import - -@interface first_workUITests : XCTestCase - -@end - -@implementation first_workUITests - -- (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 diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.pbxproj" "b/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.pbxproj" deleted file mode 100644 index f0171272..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,249 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 712492E51BD6233700992BD8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 712492E41BD6233700992BD8 /* main.m */; }; - 712492F01BD6300600992BD8 /* Found_Calendar.m in Sources */ = {isa = PBXBuildFile; fileRef = 712492EF1BD6300600992BD8 /* Found_Calendar.m */; settings = {ASSET_TAGS = (); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 712492DF1BD6233700992BD8 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 712492E11BD6233700992BD8 /* 日历作业 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "日历作业"; sourceTree = BUILT_PRODUCTS_DIR; }; - 712492E41BD6233700992BD8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 712492EF1BD6300600992BD8 /* Found_Calendar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Found_Calendar.m; sourceTree = ""; }; - 712492F11BD6307A00992BD8 /* Found_Calendar.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Found_Calendar.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 712492DE1BD6233700992BD8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 712492D81BD6233700992BD8 = { - isa = PBXGroup; - children = ( - 712492E31BD6233700992BD8 /* 日历作业 */, - 712492E21BD6233700992BD8 /* Products */, - ); - sourceTree = ""; - }; - 712492E21BD6233700992BD8 /* Products */ = { - isa = PBXGroup; - children = ( - 712492E11BD6233700992BD8 /* 日历作业 */, - ); - name = Products; - sourceTree = ""; - }; - 712492E31BD6233700992BD8 /* 日历作业 */ = { - isa = PBXGroup; - children = ( - 712492E41BD6233700992BD8 /* main.m */, - 712492EF1BD6300600992BD8 /* Found_Calendar.m */, - 712492F11BD6307A00992BD8 /* Found_Calendar.h */, - ); - path = "日历作业"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 712492E01BD6233700992BD8 /* 日历作业 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 712492E81BD6233700992BD8 /* Build configuration list for PBXNativeTarget "日历作业" */; - buildPhases = ( - 712492DD1BD6233700992BD8 /* Sources */, - 712492DE1BD6233700992BD8 /* Frameworks */, - 712492DF1BD6233700992BD8 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "日历作业"; - productName = "日历作业"; - productReference = 712492E11BD6233700992BD8 /* 日历作业 */; - productType = "com.apple.product-type.tool"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 712492D91BD6233700992BD8 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = AbelTowne; - TargetAttributes = { - 712492E01BD6233700992BD8 = { - CreatedOnToolsVersion = 7.0.1; - }; - }; - }; - buildConfigurationList = 712492DC1BD6233700992BD8 /* Build configuration list for PBXProject "日历作业" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 712492D81BD6233700992BD8; - productRefGroup = 712492E21BD6233700992BD8 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 712492E01BD6233700992BD8 /* 日历作业 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 712492DD1BD6233700992BD8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 712492E51BD6233700992BD8 /* main.m in Sources */, - 712492F01BD6300600992BD8 /* Found_Calendar.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 712492E61BD6233700992BD8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = 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; - MACOSX_DEPLOYMENT_TARGET = 10.10; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - 712492E71BD6233700992BD8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = 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; - MACOSX_DEPLOYMENT_TARGET = 10.10; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - }; - name = Release; - }; - 712492E91BD6233700992BD8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 712492EA1BD6233700992BD8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 712492DC1BD6233700992BD8 /* Build configuration list for PBXProject "日历作业" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 712492E61BD6233700992BD8 /* Debug */, - 712492E71BD6233700992BD8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 712492E81BD6233700992BD8 /* Build configuration list for PBXNativeTarget "日历作业" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 712492E91BD6233700992BD8 /* Debug */, - 712492EA1BD6233700992BD8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 712492D91BD6233700992BD8 /* Project object */; -} diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 7df579b3..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.h" "b/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.h" deleted file mode 100644 index 9a46e622..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.h" +++ /dev/null @@ -1,57 +0,0 @@ -#import - -@interface NSDate (CalculateDay) -/** - * 获取对应月份的天数 - * - * @return 对应月份的天数 - */ -- (NSUInteger)daysOfMonth; -/** - * 获取对应年份的天数 - * - * @return 对应年份的天数 - */ -- (NSUInteger)daysOfYear; - -/** - * 获取对应月的第一天是星期几 - * - * @return 对应月的第一天是星期几 - */ - --(NSUInteger)fWeekDayOfMonth:(NSInteger)Year setMonth:(NSInteger)Month; -///** -// * 获取对应月份的第一天时间 -// * -// * @return 对应月份的第一天时间 -// */ -//- (NSDate *)firstDayOfMonth; -// -///** -// * 获取对应月份的最后一天时间 -// * -// * @return 对应月份的最后一天时间 -// */ -//- (NSDate *)lastDayOfMonth; -// -///** -// * 根据月数和天数间隔,获取间隔后的时间 -// * -// * @param months 月数间隔 -// * @param days 天数间隔 -// * -// * @return 间隔后的时间 -// */ -//- (NSDate *)addMonthAndDay:(NSUInteger)months days:(NSUInteger)days; -// -///** -// * 根据开始时间和结束时间,获取间隔的时间数组 -// * -// * @param toDate 结束时间 -// * -// * @return 间隔的时间数组(月数和天数;toDate-fromDate的比较值是有符号整数NSInteger,所以存在负数的可能) -// */ -//- (NSArray *)monthAndDayBetweenTwoDates:(NSDate *)toDate; - -@end \ No newline at end of file diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.m" "b/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.m" deleted file mode 100644 index dbffa16b..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/Found_Calendar.m" +++ /dev/null @@ -1,34 +0,0 @@ - - -#import "Found_Calendar.h" - -@implementation NSDate (CalculateDay) - -- (NSUInteger)daysOfMonth { - NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; - NSRange range = [gregorian rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:self]; - return range.length; -} - -- (NSUInteger)daysOfYear { - NSUInteger days = 0; - NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; - NSDateComponents *comps = [gregorian components:NSCalendarUnitYear fromDate:self]; - for (NSUInteger i=1; i<=12; i++) { - [comps setMonth:i]; - days += [[gregorian dateFromComponents:comps] daysOfMonth]; - } - return days; -} --(NSUInteger)fWeekDayOfMonth:(NSInteger)Year setMonth:(NSInteger)Month{ - NSDateComponents *comp = [[NSDateComponents alloc] init]; - [comp setMonth:Month]; - [comp setDay:01]; - [comp setYear:Year]; - NSCalendar *myCal02 = [[NSCalendar alloc]initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; - NSDate *myDate1 = [myCal02 dateFromComponents:comp]; - // [myCal02 setFirstWeekday:1]; - NSInteger count = [myCal02 ordinalityOfUnit:NSCalendarUnitWeekday inUnit:NSCalendarUnitWeekOfMonth forDate:myDate1]; - return count; -}; -@end \ No newline at end of file diff --git "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/main.m" "b/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/main.m" deleted file mode 100644 index 76eb46c7..00000000 --- "a/nb15117\346\261\244\345\273\272\345\215\216/twoth-work/\346\227\245\345\216\206\344\275\234\344\270\232/\346\227\245\345\216\206\344\275\234\344\270\232/main.m" +++ /dev/null @@ -1,232 +0,0 @@ -#import -#import "Found_Calendar.h" - -static const char *numMnth[] = {"", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"}; -/* - showCal(int year,int month):输入第year年,第month月的日历。当month=0时,输出全年日历;当year=0,month=0,输出今年今月的日历 - printCal():打印日历 - */ -void printCal(NSUInteger year,NSInteger month,NSUInteger arrDMonth[],NSUInteger arrFDay[],NSInteger wholeYear){ - //控制年份的输出,当只显示一个日历的时候,需要特殊处理 - NSInteger times = 1;//每行现实几个月的日历 - NSUInteger minMonth = 0,maxMonth = 0; - if(wholeYear == 1){//全年 - times = 3; - minMonth = 1; - maxMonth = 12; - } - else if (month !=0){ - minMonth = maxMonth = month; - } - if (wholeYear == 0) { - printf(" %s月 %04lu\n", numMnth[month], year); - } - else{ - for(int i = 0; i < 30; i++) printf(" "); - printf(" %04lu\n\n", year); - } - //输出日历 - NSUInteger mdata[2]; - - for (NSUInteger sMonth = minMonth; sMonth <= maxMonth; sMonth += times) - { - if (wholeYear == 1)//全年日历 - { - for (int j = 0; j < times; j++) - { - if (sMonth + j < 11){ - printf(" %s月 ", numMnth[sMonth + j]); - printf(" "); - } - else printf(" %s月 ", numMnth[sMonth + j]); - - } - printf("\n"); - } - for (int k = 0; k < times; k++) - printf(" 日 一 二 三 四 五 六 "); - printf("\n"); - memset(mdata, 0, sizeof(mdata)); - for (int i = 0; i < times; i++) mdata[i] = 1;//每个月的日期初始化 - for (int i = 0; i < 6; i++)//每个月每一行输出 - { - for (int t = 0; t < times; t++) - { - NSInteger firstday = 1;//每个星期的第一天 - //特殊处理第一行的输出,输出1号日期前面的空格 - if (i == 0) - { - for (int k = 1; k < arrFDay[sMonth + t]; k++) - { - printf(" "); - } - firstday = arrFDay[sMonth + t]; - } - // if (i == 5) { - // printf(" "); - // } - for (NSUInteger j = firstday; j <=7; j++)//日期对应星期输出 - { - //特殊处理星期日下的日期格式控制,日期为占两个字符位,向右对齐 - if ( j == 1 || mdata[t] == 1)//第一列输出 - { - if (mdata[t] > arrDMonth[sMonth + t])// 最后一天输出后 - { - // printf("j0:%lu,m:%lu",j,sMonth + t); - if (j != 1 || j != 7) { - for (NSUInteger p = j-1; p <= 7; p++) { - printf(" "); - } - } - // - } - else printf("%3lu", mdata[t]++); - } - else // 其他列 - { - // NSLog(@"mdata:%lu,arrDMonth:%lu",mdata[t],arrDMonth[sMonth + t]); - if (mdata[t] > arrDMonth[sMonth + t]) - { - // printf("j0:%lu,m:%lu",j,sMonth + t); - if (j != 1 || j != 7) { - for (NSUInteger p = j; p <= 2; p++) { - // printf("j0:%lu,m:%lu",j,sMonth + t); - printf(" "); - } - } - } - else printf("%4lu", mdata[t]++); - } - //当一个星期输入完成后,判断一下是否输出'\n'还是" " - if (j == 7) - { - if (t == times - 1) printf("\n"); - else printf(" "); - } - } - - } - } - } - -} - -void showCal(NSInteger month,NSInteger year){ - NSCalendar *newCal = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; - // 通过已定义的日历对象,获取某个时间点的NSDateComponents表示,并设置需要表示哪些信息(NSYearCalendarUnit, NSMonthCalendarUnit, NSDayCalendarUnit等) - NSDateComponents *comps = [newCal components:NSCalendarUnitYear | NSCalendarUnitMonth fromDate:[NSDate date]]; - int wholeYear = 0; - - // arrFDay[i]表示当前年份中,第i个月的第一天是星期几 - NSUInteger arrFDay[13]; - //arrDMonth[i]表示当前年份中,第i个月的天数 - NSUInteger arrDMonth[13]; - //初始化两个数组都为0,查询范围以外的月份信息需要置为0 - memset(arrFDay, 0, sizeof(arrFDay)); - memset(arrDMonth, 0, sizeof(arrDMonth)); - NSCalendar *calendar = [NSCalendar currentCalendar]; - NSDateComponents *compt = [[NSDateComponents alloc] init]; - for (NSUInteger newMonth = 1; newMonth <= 12; newMonth ++) - { - [compt setMonth:newMonth]; - NSInteger dayCount = [[calendar dateFromComponents:compt] daysOfMonth]; - // printf("daycount:%lu\n",dayCount); - // printf("newMonth:%lu\n",newMonth); - arrDMonth[newMonth] = dayCount; - NSInteger datas = [[calendar dateFromComponents:comps] fWeekDayOfMonth:year setMonth:newMonth]; - arrFDay[newMonth] = datas; - // printf("datas:%lu\n\n",datas); - } - - if(year ==0 && month == 0){//今年今月 - NSLog(@"year:%lu,month:%lu",comps.year,comps.month); - printCal(comps.year,comps.month,arrDMonth,arrFDay,wholeYear); - } - else if (month == 0 && year != 0){//对应第year年 - wholeYear = 1; - printCal(year, month, arrDMonth, arrFDay, wholeYear); - } - else if (month != 0 && year != 0){//对应第year年第month月 - printCal(year, month, arrDMonth, arrFDay, wholeYear); - } - else if (year == 0 && month !=0){//对应cal -m month 操作 - printCal(comps.year, month, arrDMonth, arrFDay, wholeYear); - } -} - -int main(int argc, const char * argv[]) { - @autoreleasepool { - char buffer[1000]; //使用一个缓冲区 - NSLog(@"请输入命令"); - // gets(buffer); - fgets (buffer, sizeof(buffer), stdin); - NSString * str= [NSString stringWithUTF8String:buffer]; - //处理命令 - NSInteger strLength = str.length; - NSString * ptr1 = [str substringToIndex:strLength-1]; - NSArray *arr = @[@"0", @"0", @"0"]; - //初始化两个数组都为0,查询范围以外的月份信息需要置为0 - arr = [ptr1 componentsSeparatedByString:@" "]; - NSString *str2 = @"cal"; - NSString *str3 = @"-m"; - NSInteger year01,mnth; - @try { - if ([arr[0] isEqualTo:str2]) { - if (strLength-1 == 3) { //cal - showCal(0,0); - } - else if ([arr[1] isEqualTo:str3] && arr[2] !=0){ - mnth =[arr[2] intValue]; - if (1 <= mnth && mnth <= 12) { //cal -m 4 - showCal(mnth,0); - } - else{ - NSException *exception = [NSException exceptionWithName:@"CommandException" reason:@"月份输入错误.(1~12)" userInfo:nil]; - @throw exception; - } - } - else{ - NSUInteger count = [arr count]; - if (count == 3) { //cal 2014 4 - mnth =[arr[1] intValue]; - year01 = [arr[2] intValue]; - if (year01 >= 1) { - if (1 <= mnth && mnth <= 12 ) { - showCal(mnth,year01); - } - else{ - NSException *exception = [NSException exceptionWithName:@"CommandException" reason:@"月份输入错误.(1~12)" userInfo:nil]; - @throw exception; - } - }else{ - NSException *exception = [NSException exceptionWithName:@"CommandException" reason:@"年份输入错误.(大于1)" userInfo:nil]; - @throw exception; - } - - }else if (count == 2){ //cal 2014 - year01 =[arr[1] intValue]; - if (year01 >= 1) { - showCal(0,year01); - } - else{ - NSException *exception = [NSException exceptionWithName:@"CommandException" reason:@"年份输入错误.(大于1))" userInfo:nil]; - @throw exception; - } - - } - } - } - else{ - NSException *exception = [NSException exceptionWithName:@"CommandException" reason:@"命令输入错误." userInfo:nil]; - @throw exception; - } - } - @catch (NSException *exception) { - NSLog(@"%@", exception); - NSLog(@"输入格式如下:\n cal [[month] year]\n cal -m month [year]"); - } - @finally { - } - } - return 0; -} \ No newline at end of file