From 9a372c3a812dff4cb55a5b479e5db70a3a1bef80 Mon Sep 17 00:00:00 2001 From: Sara <1430127555@qq.com> Date: Thu, 27 Oct 2016 09:06:41 +0800 Subject: [PATCH] project02 and 03 --- .../calender2.xcodeproj/project.pbxproj" | 324 +++++++++++ .../project02/calender2/AppDelegate.h" | 17 + .../project02/calender2/AppDelegate.m" | 45 ++ .../AppIcon.appiconset/Contents.json" | 93 +++ .../project02/calender2/CalendarCell.h" | 13 + .../project02/calender2/CalendarCell.m" | 21 + .../project02/calender2/CalendarPicker.h" | 16 + .../project02/calender2/CalendarPicker.m" | 107 ++++ .../project02/calender2/CalendarPicker.xib" | 98 ++++ .../project02/calender2/Info.plist" | 40 ++ .../project02/calender2/LaunchScreen.xib" | 20 + .../project02/calender2/Main.storyboard" | 42 ++ .../project02/calender2/ViewController.h" | 14 + .../project02/calender2/ViewController.m" | 41 ++ .../project02/calender2/calendar.h" | 9 + .../project02/calender2/calendar.m" | 69 +++ .../project02/calender2/main.m" | 9 + .../CYLTODOList.xcodeproj/project.pbxproj" | 546 ++++++++++++++++++ .../project03/CYLTODOList/AppDelegate.h" | 17 + .../project03/CYLTODOList/AppDelegate.m" | 51 ++ .../AppIcon.appiconset/Contents.json" | 38 ++ .../Base.lproj/LaunchScreen.storyboard" | 27 + .../CYLTODOList/Base.lproj/Main.storyboard" | 440 ++++++++++++++ .../CYLAddNewItemViewController.h" | 16 + .../CYLAddNewItemViewController.m" | 51 ++ .../project03/CYLTODOList/CYLToDoItem.h" | 17 + .../project03/CYLTODOList/CYLToDoItem.m" | 13 + .../CYLToDoListTableViewController.h" | 15 + .../CYLToDoListTableViewController.m" | 152 +++++ .../project03/CYLTODOList/Info.plist" | 38 ++ .../project03/CYLTODOList/ViewController.h" | 15 + .../project03/CYLTODOList/ViewController.m" | 29 + .../project03/CYLTODOList/main.m" | 16 + .../CYLTODOListTests/CYLTODOListTests.m" | 39 ++ .../project03/CYLTODOListTests/Info.plist" | 22 + .../CYLTODOListUITests/CYLTODOListUITests.m" | 40 ++ .../project03/CYLTODOListUITests/Info.plist" | 22 + 37 files changed, 2582 insertions(+) create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2.xcodeproj/project.pbxproj" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Assets.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.xib" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Info.plist" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/LaunchScreen.xib" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Main.storyboard" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project02/calender2/main.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList.xcodeproj/project.pbxproj" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Assets.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/LaunchScreen.storyboard" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/Main.storyboard" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Info.plist" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.h" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/main.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/CYLTODOListTests.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/Info.plist" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/CYLTODOListUITests.m" create mode 100644 "21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/Info.plist" diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2.xcodeproj/project.pbxproj" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..489ce15 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2.xcodeproj/project.pbxproj" @@ -0,0 +1,324 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 48BE19701DC09BAA00F46C9C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 48BE196F1DC09BAA00F46C9C /* Assets.xcassets */; }; + 48BE19851DC09BE000F46C9C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE197B1DC09BE000F46C9C /* AppDelegate.m */; }; + 48BE19861DC09BE000F46C9C /* CalendarCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE197D1DC09BE000F46C9C /* CalendarCell.m */; }; + 48BE19871DC09BE000F46C9C /* CalendarPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE197F1DC09BE000F46C9C /* CalendarPicker.m */; }; + 48BE19881DC09BE000F46C9C /* CalendarPicker.xib in Resources */ = {isa = PBXBuildFile; fileRef = 48BE19801DC09BE000F46C9C /* CalendarPicker.xib */; }; + 48BE19891DC09BE000F46C9C /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 48BE19811DC09BE000F46C9C /* Info.plist */; }; + 48BE198A1DC09BE000F46C9C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE19821DC09BE000F46C9C /* main.m */; }; + 48BE198B1DC09BE000F46C9C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE19841DC09BE000F46C9C /* ViewController.m */; }; + 48BE198E1DC09BF400F46C9C /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 48BE198C1DC09BF400F46C9C /* LaunchScreen.xib */; }; + 48BE198F1DC09BF400F46C9C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 48BE198D1DC09BF400F46C9C /* Main.storyboard */; }; + 48BE19921DC09D6B00F46C9C /* calendar.m in Sources */ = {isa = PBXBuildFile; fileRef = 48BE19911DC09D6B00F46C9C /* calendar.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 48BE19601DC09BAA00F46C9C /* calender2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = calender2.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 48BE196F1DC09BAA00F46C9C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 48BE197A1DC09BE000F46C9C /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 48BE197B1DC09BE000F46C9C /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 48BE197C1DC09BE000F46C9C /* CalendarCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CalendarCell.h; sourceTree = ""; }; + 48BE197D1DC09BE000F46C9C /* CalendarCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CalendarCell.m; sourceTree = ""; }; + 48BE197E1DC09BE000F46C9C /* CalendarPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CalendarPicker.h; sourceTree = ""; }; + 48BE197F1DC09BE000F46C9C /* CalendarPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CalendarPicker.m; sourceTree = ""; }; + 48BE19801DC09BE000F46C9C /* CalendarPicker.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CalendarPicker.xib; sourceTree = ""; }; + 48BE19811DC09BE000F46C9C /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 48BE19821DC09BE000F46C9C /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 48BE19831DC09BE000F46C9C /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 48BE19841DC09BE000F46C9C /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 48BE198C1DC09BF400F46C9C /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = ""; }; + 48BE198D1DC09BF400F46C9C /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 48BE19901DC09D6B00F46C9C /* calendar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = calendar.h; sourceTree = ""; }; + 48BE19911DC09D6B00F46C9C /* calendar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = calendar.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 48BE195D1DC09BAA00F46C9C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 48BE19571DC09BAA00F46C9C = { + isa = PBXGroup; + children = ( + 48BE19621DC09BAA00F46C9C /* calender2 */, + 48BE19611DC09BAA00F46C9C /* Products */, + ); + sourceTree = ""; + }; + 48BE19611DC09BAA00F46C9C /* Products */ = { + isa = PBXGroup; + children = ( + 48BE19601DC09BAA00F46C9C /* calender2.app */, + ); + name = Products; + sourceTree = ""; + }; + 48BE19621DC09BAA00F46C9C /* calender2 */ = { + isa = PBXGroup; + children = ( + 48BE198C1DC09BF400F46C9C /* LaunchScreen.xib */, + 48BE197A1DC09BE000F46C9C /* AppDelegate.h */, + 48BE197B1DC09BE000F46C9C /* AppDelegate.m */, + 48BE19831DC09BE000F46C9C /* ViewController.h */, + 48BE19841DC09BE000F46C9C /* ViewController.m */, + 48BE198D1DC09BF400F46C9C /* Main.storyboard */, + 48BE197C1DC09BE000F46C9C /* CalendarCell.h */, + 48BE197D1DC09BE000F46C9C /* CalendarCell.m */, + 48BE197E1DC09BE000F46C9C /* CalendarPicker.h */, + 48BE197F1DC09BE000F46C9C /* CalendarPicker.m */, + 48BE19801DC09BE000F46C9C /* CalendarPicker.xib */, + 48BE196F1DC09BAA00F46C9C /* Assets.xcassets */, + 48BE19631DC09BAA00F46C9C /* Supporting Files */, + ); + path = calender2; + sourceTree = ""; + }; + 48BE19631DC09BAA00F46C9C /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 48BE19901DC09D6B00F46C9C /* calendar.h */, + 48BE19911DC09D6B00F46C9C /* calendar.m */, + 48BE19811DC09BE000F46C9C /* Info.plist */, + 48BE19821DC09BE000F46C9C /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 48BE195F1DC09BAA00F46C9C /* calender2 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 48BE19771DC09BAA00F46C9C /* Build configuration list for PBXNativeTarget "calender2" */; + buildPhases = ( + 48BE195C1DC09BAA00F46C9C /* Sources */, + 48BE195D1DC09BAA00F46C9C /* Frameworks */, + 48BE195E1DC09BAA00F46C9C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = calender2; + productName = calender2; + productReference = 48BE19601DC09BAA00F46C9C /* calender2.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 48BE19581DC09BAA00F46C9C /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = Will; + TargetAttributes = { + 48BE195F1DC09BAA00F46C9C = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 48BE195B1DC09BAA00F46C9C /* Build configuration list for PBXProject "calender2" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 48BE19571DC09BAA00F46C9C; + productRefGroup = 48BE19611DC09BAA00F46C9C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 48BE195F1DC09BAA00F46C9C /* calender2 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 48BE195E1DC09BAA00F46C9C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 48BE198E1DC09BF400F46C9C /* LaunchScreen.xib in Resources */, + 48BE198F1DC09BF400F46C9C /* Main.storyboard in Resources */, + 48BE19701DC09BAA00F46C9C /* Assets.xcassets in Resources */, + 48BE19881DC09BE000F46C9C /* CalendarPicker.xib in Resources */, + 48BE19891DC09BE000F46C9C /* Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 48BE195C1DC09BAA00F46C9C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 48BE19871DC09BE000F46C9C /* CalendarPicker.m in Sources */, + 48BE19851DC09BE000F46C9C /* AppDelegate.m in Sources */, + 48BE198A1DC09BE000F46C9C /* main.m in Sources */, + 48BE19921DC09D6B00F46C9C /* calendar.m in Sources */, + 48BE19861DC09BE000F46C9C /* CalendarCell.m in Sources */, + 48BE198B1DC09BE000F46C9C /* ViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 48BE19751DC09BAA00F46C9C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 48BE19761DC09BAA00F46C9C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 48BE19781DC09BAA00F46C9C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = calender2/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = zju.calender2; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 48BE19791DC09BAA00F46C9C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = calender2/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = zju.calender2; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 48BE195B1DC09BAA00F46C9C /* Build configuration list for PBXProject "calender2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 48BE19751DC09BAA00F46C9C /* Debug */, + 48BE19761DC09BAA00F46C9C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 48BE19771DC09BAA00F46C9C /* Build configuration list for PBXNativeTarget "calender2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 48BE19781DC09BAA00F46C9C /* Debug */, + 48BE19791DC09BAA00F46C9C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 48BE19581DC09BAA00F46C9C /* Project object */; +} diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.h" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.h" new file mode 100644 index 0000000..923a9da --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.m" new file mode 100644 index 0000000..db7fb91 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/AppDelegate.m" @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. 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/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..1d060ed --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,93 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.h" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.h" new file mode 100644 index 0000000..98a46e2 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.h" @@ -0,0 +1,13 @@ +// +// CalendarCell.h +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CalendarCell : UICollectionViewCell +@property (nonatomic , strong) UILabel *dateLabel; +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.m" new file mode 100644 index 0000000..841f83f --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarCell.m" @@ -0,0 +1,21 @@ +// +// CalendarCell.m +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "CalendarCell.h" + +@implementation CalendarCell +- (UILabel *)dateLabel +{ + if (!_dateLabel) { + _dateLabel = [[UILabel alloc] initWithFrame:self.bounds]; + _dateLabel.font = [UIFont fontWithName:@"Courier" size:20]; + [self addSubview:_dateLabel]; + } + return _dateLabel; +} +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.h" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.h" new file mode 100644 index 0000000..823f0c7 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.h" @@ -0,0 +1,16 @@ +// +// CalendarPicker.h +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CalendarPicker : UIView +@property (nonatomic , strong) NSDate *date; +@property (nonatomic , strong) NSDate *today; + ++ (instancetype)showOnView:(UIView *)view; +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.m" new file mode 100644 index 0000000..e76abd9 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.m" @@ -0,0 +1,107 @@ +// +// CalendarPicker.m +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "CalendarPicker.h" +#import "CalendarCell.h" +#import "calendar.h" +NSString *const CalendarCellIdentifier = @"cell"; + +@interface CalendarPicker () + +@property (nonatomic , weak) IBOutlet UICollectionView *collectionView; +@property (nonatomic , weak) IBOutlet UILabel *monthLabel; +@property (nonatomic , weak) IBOutlet UIButton *previousButton; +@property (nonatomic , weak) IBOutlet UIButton *nextButton; + +@end + +@implementation CalendarPicker ++ (instancetype)showOnView:(UIView *)view{ + CalendarPicker *calendarPicker = [[[NSBundle mainBundle] loadNibNamed:@"CalendarPicker" owner:self options:nil] firstObject]; + [view addSubview:calendarPicker]; + return calendarPicker; +} + +- (void)awakeFromNib{ + [super awakeFromNib]; + [_collectionView registerClass:[CalendarCell class] forCellWithReuseIdentifier:CalendarCellIdentifier]; +} + +- (void)setDate:(NSDate *)date{ + _date = date; + [_monthLabel setText:[NSString stringWithFormat:@"%.2ld-%li",(long)[self month:date],(long)[self year:date]]]; + [_collectionView reloadData]; +} + +#pragma mark - date +- (NSInteger)month:(NSDate *)date{ + NSDateComponents *components = [[NSCalendar currentCalendar] components:(NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay) fromDate:date]; + return [components month]; +} + +- (NSInteger)year:(NSDate *)date{ + NSDateComponents *components = [[NSCalendar currentCalendar] components:(NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay) fromDate:date]; + return [components year]; +} + +- (NSDate *)previousMonth:(NSDate *)date{ + NSDateComponents *dateComponents = [[NSDateComponents alloc] init]; + dateComponents.month = -1; + NSDate *newDate = [[NSCalendar currentCalendar] dateByAddingComponents:dateComponents toDate:date options:0]; + return newDate; +} + +- (NSDate*)nextMonth:(NSDate *)date{ + NSDateComponents *dateComponents = [[NSDateComponents alloc] init]; + dateComponents.month = +1; + NSDate *newDate = [[NSCalendar currentCalendar] dateByAddingComponents:dateComponents toDate:date options:0]; + return newDate; +} + +#pragma mark - +//有几行 +- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView +{ + return 7; +} + +- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ + return 1; +} + +- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ + CalendarCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CalendarCellIdentifier forIndexPath:indexPath]; + calendar *aCalender = [[calendar alloc]init]; + NSArray *contentArray = [NSArray array]; + contentArray = [aCalender outputCalendarWithMonth:[self month:_date] year:[self year:_date]]; + if (indexPath.section < contentArray.count) { + cell.dateLabel.text = @" "; + cell.dateLabel.text = [cell.dateLabel.text stringByAppendingString:contentArray[indexPath.section]]; + } else{ + cell.dateLabel.text = nil; + } + return cell; +} + + +#pragma mark - buttonEvents +- (IBAction)previouseAction:(UIButton *)sender{ + [UIView transitionWithView:self duration:0.5 options:UIViewAnimationOptionTransitionCurlDown animations:^(void) { + self.date = [self previousMonth:self.date]; + } completion:nil]; +} + +- (IBAction)nexAction:(UIButton *)sender{ + [UIView transitionWithView:self duration:0.5 options:UIViewAnimationOptionTransitionCurlUp animations:^(void) { + self.date = [self nextMonth:self.date]; + } completion:nil]; +} + + + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.xib" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.xib" new file mode 100644 index 0000000..d801a03 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/CalendarPicker.xib" @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Info.plist" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Info.plist" new file mode 100644 index 0000000..5cb0af6 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Info.plist" @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + zhixing.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/LaunchScreen.xib" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/LaunchScreen.xib" new file mode 100644 index 0000000..d92ebc5 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/LaunchScreen.xib" @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Main.storyboard" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Main.storyboard" new file mode 100644 index 0000000..aca16b2 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/Main.storyboard" @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.h" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.h" new file mode 100644 index 0000000..9a9095b --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.h" @@ -0,0 +1,14 @@ +// +// ViewController.h +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// +#import + +@interface ViewController : UIViewController + + +@end + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.m" new file mode 100644 index 0000000..0507753 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/ViewController.m" @@ -0,0 +1,41 @@ +// +// ViewController.m +// CalendarPicker +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +/// + +#import "ViewController.h" +#import "CalendarPicker.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + CalendarPicker *calendarPicker = [CalendarPicker showOnView:self.view]; + calendarPicker.today = [NSDate date]; + calendarPicker.date = calendarPicker.today; + calendarPicker.frame = CGRectMake(0, 50, self.view.frame.size.width, 352); + + // Do any additional setup after loading the view, typically from a nib. +} + +- (IBAction)showAction:(id)sender{ + CalendarPicker *calendarPicker = [CalendarPicker showOnView:self.view]; + calendarPicker.today = [NSDate date]; + calendarPicker.date = calendarPicker.today; + calendarPicker.frame = CGRectMake(0, 50, self.view.frame.size.width, 352); +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.h" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.h" new file mode 100644 index 0000000..ff32f27 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.h" @@ -0,0 +1,9 @@ + +#import + +@interface calendar : NSObject + + +- (NSArray *)outputCalendarWithMonth:(NSInteger)month year:(NSInteger)year;//输出某年某月的日历 + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.m" new file mode 100644 index 0000000..256f21a --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/calendar.m" @@ -0,0 +1,69 @@ + +#import "calendar.h" + +@implementation calendar +- (NSArray *)outputCalendarWithMonth:(NSInteger)month year:(NSInteger)year{ + NSArray *result = [NSArray array]; + NSArray *monthInChinese = [NSArray arrayWithObjects:@" 零月",@" 一月",@" 二月",@" 三月",@" 四月",@" 五月",@" 六月",@" 七月",@" 八月",@" 九月",@" 十月",@" 十一月",@" 十二月", nil];//每个月对应的中文 + NSString *weekInChinese = @"Su Mo Tu We Th Fr Sa"; + NSArray *dayInChinese = [NSArray arrayWithObjects:@" ",@" 1",@" 2",@" 3",@" 4",@" 5",@" 6",@" 7",@" 8",@" 9",@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"24",@"25",@"26",@"27",@"28",@"29",@"30",@"31", nil];//一个月的每天的日期,第一个元素用不到 + NSArray *numberOfDaysOfMonth = [NSArray arrayWithObjects:@"0",@"31",@"28",@"31", @"30",@"31",@"30",@"31",@"31",@"30",@"31",@"30",@"31",nil];//每个月的天数 + //判断是否为闰年,如果是就把二月天数换成29 + if(year%400==0||(year%4==0&&year%100!=0)) + numberOfDaysOfMonth = [NSArray arrayWithObjects:@"0",@"31",@"29",@"31", @"30",@"31",@"30",@"31",@"31",@"30",@"31",@"30",@"31",nil]; + //要知道这个月的第一天是周几,通过这个月的第一天和1.1差的天数来计算 + NSInteger date = 0;//记录时间差 + for (NSInteger index = 1; index < month; index++) { + NSString *str = [numberOfDaysOfMonth objectAtIndex:index]; + date += str.intValue; + } + NSInteger firstDayInMonth = (((year-1)+ (year-1)/4-(year-1)/100+(year-1)/400+1)+date)%7; + //开始输出 + //NSLog(@"%@ %li",[monthInChinese objectAtIndex:month],year); + //printf("%s %li\n",[[monthInChinese objectAtIndex:month] UTF8String],year); + //NSLog(@"%@",weekInChinese); + //printf("%s\n",[weekInChinese UTF8String]); + result = [result arrayByAddingObject:weekInChinese]; + NSInteger dayOfBeginning = 7 - firstDayInMonth;//第一行的最后一天的日期 + NSString *totalDaysOfMonth = [numberOfDaysOfMonth objectAtIndex:month]; + NSString *aLineOutput = [NSString string]; + NSString *beginningBlank = [NSString string]; + while (firstDayInMonth != 0) { + firstDayInMonth --; + beginningBlank = [beginningBlank stringByAppendingString:@" "];//每次空3格 + + } + aLineOutput = beginningBlank; + //把剩下的第一行补全 + for(NSInteger index = 1; index <= dayOfBeginning; index++){ + aLineOutput = [aLineOutput stringByAppendingString:[dayInChinese objectAtIndex:index]]; + if(index!=dayOfBeginning) + aLineOutput = [aLineOutput stringByAppendingString:@" "]; + } + //NSLog(@"%@",aLineOutput); + //printf("%s\n",[aLineOutput UTF8String]); + result = [result arrayByAddingObject:aLineOutput]; + aLineOutput = [NSString string]; + dayOfBeginning++;//剩下的开始的日期 + NSInteger nextLineFlag = 0; + while (dayOfBeginning <= totalDaysOfMonth.intValue) { + if(nextLineFlag != 7 ){ + aLineOutput = [aLineOutput stringByAppendingString:[dayInChinese objectAtIndex:dayOfBeginning]]; + aLineOutput = [aLineOutput stringByAppendingString:@" "]; + nextLineFlag++; + dayOfBeginning++; + } else{ + //NSLog(@"%@",aLineOutput); + //printf("%s\n",[aLineOutput UTF8String]); + result = [result arrayByAddingObject:aLineOutput]; + aLineOutput = [NSString string]; + nextLineFlag = 0; + } + } + //NSLog(@"%@",aLineOutput); + //printf("%s\n",[aLineOutput UTF8String]); + result = [result arrayByAddingObject:aLineOutput]; + return result; +} + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/main.m" "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/main.m" new file mode 100644 index 0000000..9ef7f8e --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project02/calender2/main.m" @@ -0,0 +1,9 @@ + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList.xcodeproj/project.pbxproj" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..8400cbc --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList.xcodeproj/project.pbxproj" @@ -0,0 +1,546 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 56F4E0A81DC09C4B00584FEC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0A71DC09C4B00584FEC /* main.m */; }; + 56F4E0AB1DC09C4B00584FEC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0AA1DC09C4B00584FEC /* AppDelegate.m */; }; + 56F4E0AE1DC09C4B00584FEC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0AD1DC09C4B00584FEC /* ViewController.m */; }; + 56F4E0B11DC09C4B00584FEC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56F4E0AF1DC09C4B00584FEC /* Main.storyboard */; }; + 56F4E0B31DC09C4B00584FEC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56F4E0B21DC09C4B00584FEC /* Assets.xcassets */; }; + 56F4E0B61DC09C4B00584FEC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56F4E0B41DC09C4B00584FEC /* LaunchScreen.storyboard */; }; + 56F4E0C11DC09C4B00584FEC /* CYLTODOListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0C01DC09C4B00584FEC /* CYLTODOListTests.m */; }; + 56F4E0CC1DC09C4B00584FEC /* CYLTODOListUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0CB1DC09C4B00584FEC /* CYLTODOListUITests.m */; }; + 56F4E0DB1DC0A9E700584FEC /* CYLAddNewItemViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0DA1DC0A9E700584FEC /* CYLAddNewItemViewController.m */; }; + 56F4E0DE1DC0AAFA00584FEC /* CYLToDoListTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0DD1DC0AAFA00584FEC /* CYLToDoListTableViewController.m */; }; + 56F4E0E41DC0C39200584FEC /* CYLToDoItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 56F4E0E31DC0C39200584FEC /* CYLToDoItem.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 56F4E0BD1DC09C4B00584FEC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 56F4E09B1DC09C4B00584FEC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 56F4E0A21DC09C4B00584FEC; + remoteInfo = CYLTODOList; + }; + 56F4E0C81DC09C4B00584FEC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 56F4E09B1DC09C4B00584FEC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 56F4E0A21DC09C4B00584FEC; + remoteInfo = CYLTODOList; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 56F4E0A31DC09C4B00584FEC /* CYLTODOList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CYLTODOList.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 56F4E0A71DC09C4B00584FEC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 56F4E0A91DC09C4B00584FEC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 56F4E0AA1DC09C4B00584FEC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 56F4E0AC1DC09C4B00584FEC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 56F4E0AD1DC09C4B00584FEC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 56F4E0B01DC09C4B00584FEC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 56F4E0B21DC09C4B00584FEC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 56F4E0B51DC09C4B00584FEC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 56F4E0B71DC09C4B00584FEC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 56F4E0BC1DC09C4B00584FEC /* CYLTODOListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CYLTODOListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 56F4E0C01DC09C4B00584FEC /* CYLTODOListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CYLTODOListTests.m; sourceTree = ""; }; + 56F4E0C21DC09C4B00584FEC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 56F4E0C71DC09C4B00584FEC /* CYLTODOListUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CYLTODOListUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 56F4E0CB1DC09C4B00584FEC /* CYLTODOListUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CYLTODOListUITests.m; sourceTree = ""; }; + 56F4E0CD1DC09C4B00584FEC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 56F4E0D91DC0A9E700584FEC /* CYLAddNewItemViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CYLAddNewItemViewController.h; sourceTree = ""; }; + 56F4E0DA1DC0A9E700584FEC /* CYLAddNewItemViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CYLAddNewItemViewController.m; sourceTree = ""; }; + 56F4E0DC1DC0AAFA00584FEC /* CYLToDoListTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CYLToDoListTableViewController.h; sourceTree = ""; }; + 56F4E0DD1DC0AAFA00584FEC /* CYLToDoListTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CYLToDoListTableViewController.m; sourceTree = ""; }; + 56F4E0E21DC0C39200584FEC /* CYLToDoItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CYLToDoItem.h; sourceTree = ""; }; + 56F4E0E31DC0C39200584FEC /* CYLToDoItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CYLToDoItem.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 56F4E0A01DC09C4B00584FEC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0B91DC09C4B00584FEC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0C41DC09C4B00584FEC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 56F4E09A1DC09C4B00584FEC = { + isa = PBXGroup; + children = ( + 56F4E0A51DC09C4B00584FEC /* CYLTODOList */, + 56F4E0BF1DC09C4B00584FEC /* CYLTODOListTests */, + 56F4E0CA1DC09C4B00584FEC /* CYLTODOListUITests */, + 56F4E0A41DC09C4B00584FEC /* Products */, + ); + sourceTree = ""; + }; + 56F4E0A41DC09C4B00584FEC /* Products */ = { + isa = PBXGroup; + children = ( + 56F4E0A31DC09C4B00584FEC /* CYLTODOList.app */, + 56F4E0BC1DC09C4B00584FEC /* CYLTODOListTests.xctest */, + 56F4E0C71DC09C4B00584FEC /* CYLTODOListUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 56F4E0A51DC09C4B00584FEC /* CYLTODOList */ = { + isa = PBXGroup; + children = ( + 56F4E0A91DC09C4B00584FEC /* AppDelegate.h */, + 56F4E0AA1DC09C4B00584FEC /* AppDelegate.m */, + 56F4E0AC1DC09C4B00584FEC /* ViewController.h */, + 56F4E0AD1DC09C4B00584FEC /* ViewController.m */, + 56F4E0D91DC0A9E700584FEC /* CYLAddNewItemViewController.h */, + 56F4E0DA1DC0A9E700584FEC /* CYLAddNewItemViewController.m */, + 56F4E0DC1DC0AAFA00584FEC /* CYLToDoListTableViewController.h */, + 56F4E0DD1DC0AAFA00584FEC /* CYLToDoListTableViewController.m */, + 56F4E0AF1DC09C4B00584FEC /* Main.storyboard */, + 56F4E0B21DC09C4B00584FEC /* Assets.xcassets */, + 56F4E0B41DC09C4B00584FEC /* LaunchScreen.storyboard */, + 56F4E0B71DC09C4B00584FEC /* Info.plist */, + 56F4E0A61DC09C4B00584FEC /* Supporting Files */, + 56F4E0E21DC0C39200584FEC /* CYLToDoItem.h */, + 56F4E0E31DC0C39200584FEC /* CYLToDoItem.m */, + ); + path = CYLTODOList; + sourceTree = ""; + }; + 56F4E0A61DC09C4B00584FEC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 56F4E0A71DC09C4B00584FEC /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 56F4E0BF1DC09C4B00584FEC /* CYLTODOListTests */ = { + isa = PBXGroup; + children = ( + 56F4E0C01DC09C4B00584FEC /* CYLTODOListTests.m */, + 56F4E0C21DC09C4B00584FEC /* Info.plist */, + ); + path = CYLTODOListTests; + sourceTree = ""; + }; + 56F4E0CA1DC09C4B00584FEC /* CYLTODOListUITests */ = { + isa = PBXGroup; + children = ( + 56F4E0CB1DC09C4B00584FEC /* CYLTODOListUITests.m */, + 56F4E0CD1DC09C4B00584FEC /* Info.plist */, + ); + path = CYLTODOListUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 56F4E0A21DC09C4B00584FEC /* CYLTODOList */ = { + isa = PBXNativeTarget; + buildConfigurationList = 56F4E0D01DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOList" */; + buildPhases = ( + 56F4E09F1DC09C4B00584FEC /* Sources */, + 56F4E0A01DC09C4B00584FEC /* Frameworks */, + 56F4E0A11DC09C4B00584FEC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CYLTODOList; + productName = CYLTODOList; + productReference = 56F4E0A31DC09C4B00584FEC /* CYLTODOList.app */; + productType = "com.apple.product-type.application"; + }; + 56F4E0BB1DC09C4B00584FEC /* CYLTODOListTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 56F4E0D31DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOListTests" */; + buildPhases = ( + 56F4E0B81DC09C4B00584FEC /* Sources */, + 56F4E0B91DC09C4B00584FEC /* Frameworks */, + 56F4E0BA1DC09C4B00584FEC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 56F4E0BE1DC09C4B00584FEC /* PBXTargetDependency */, + ); + name = CYLTODOListTests; + productName = CYLTODOListTests; + productReference = 56F4E0BC1DC09C4B00584FEC /* CYLTODOListTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 56F4E0C61DC09C4B00584FEC /* CYLTODOListUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 56F4E0D61DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOListUITests" */; + buildPhases = ( + 56F4E0C31DC09C4B00584FEC /* Sources */, + 56F4E0C41DC09C4B00584FEC /* Frameworks */, + 56F4E0C51DC09C4B00584FEC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 56F4E0C91DC09C4B00584FEC /* PBXTargetDependency */, + ); + name = CYLTODOListUITests; + productName = CYLTODOListUITests; + productReference = 56F4E0C71DC09C4B00584FEC /* CYLTODOListUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 56F4E09B1DC09C4B00584FEC /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = Sara; + TargetAttributes = { + 56F4E0A21DC09C4B00584FEC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + 56F4E0BB1DC09C4B00584FEC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 56F4E0A21DC09C4B00584FEC; + }; + 56F4E0C61DC09C4B00584FEC = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = 56F4E0A21DC09C4B00584FEC; + }; + }; + }; + buildConfigurationList = 56F4E09E1DC09C4B00584FEC /* Build configuration list for PBXProject "CYLTODOList" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 56F4E09A1DC09C4B00584FEC; + productRefGroup = 56F4E0A41DC09C4B00584FEC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 56F4E0A21DC09C4B00584FEC /* CYLTODOList */, + 56F4E0BB1DC09C4B00584FEC /* CYLTODOListTests */, + 56F4E0C61DC09C4B00584FEC /* CYLTODOListUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 56F4E0A11DC09C4B00584FEC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56F4E0B61DC09C4B00584FEC /* LaunchScreen.storyboard in Resources */, + 56F4E0B31DC09C4B00584FEC /* Assets.xcassets in Resources */, + 56F4E0B11DC09C4B00584FEC /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0BA1DC09C4B00584FEC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0C51DC09C4B00584FEC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 56F4E09F1DC09C4B00584FEC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56F4E0DE1DC0AAFA00584FEC /* CYLToDoListTableViewController.m in Sources */, + 56F4E0E41DC0C39200584FEC /* CYLToDoItem.m in Sources */, + 56F4E0DB1DC0A9E700584FEC /* CYLAddNewItemViewController.m in Sources */, + 56F4E0AE1DC09C4B00584FEC /* ViewController.m in Sources */, + 56F4E0AB1DC09C4B00584FEC /* AppDelegate.m in Sources */, + 56F4E0A81DC09C4B00584FEC /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0B81DC09C4B00584FEC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56F4E0C11DC09C4B00584FEC /* CYLTODOListTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 56F4E0C31DC09C4B00584FEC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56F4E0CC1DC09C4B00584FEC /* CYLTODOListUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 56F4E0BE1DC09C4B00584FEC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 56F4E0A21DC09C4B00584FEC /* CYLTODOList */; + targetProxy = 56F4E0BD1DC09C4B00584FEC /* PBXContainerItemProxy */; + }; + 56F4E0C91DC09C4B00584FEC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 56F4E0A21DC09C4B00584FEC /* CYLTODOList */; + targetProxy = 56F4E0C81DC09C4B00584FEC /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 56F4E0AF1DC09C4B00584FEC /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 56F4E0B01DC09C4B00584FEC /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 56F4E0B41DC09C4B00584FEC /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 56F4E0B51DC09C4B00584FEC /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 56F4E0CE1DC09C4B00584FEC /* 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; + }; + 56F4E0CF1DC09C4B00584FEC /* 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; + }; + 56F4E0D11DC09C4B00584FEC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = CYLTODOList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 56F4E0D21DC09C4B00584FEC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = CYLTODOList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 56F4E0D41DC09C4B00584FEC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CYLTODOListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CYLTODOList.app/CYLTODOList"; + }; + name = Debug; + }; + 56F4E0D51DC09C4B00584FEC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CYLTODOListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CYLTODOList.app/CYLTODOList"; + }; + name = Release; + }; + 56F4E0D71DC09C4B00584FEC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CYLTODOListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = CYLTODOList; + }; + name = Debug; + }; + 56F4E0D81DC09C4B00584FEC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CYLTODOListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = sara.CYLTODOListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = CYLTODOList; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 56F4E09E1DC09C4B00584FEC /* Build configuration list for PBXProject "CYLTODOList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 56F4E0CE1DC09C4B00584FEC /* Debug */, + 56F4E0CF1DC09C4B00584FEC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 56F4E0D01DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 56F4E0D11DC09C4B00584FEC /* Debug */, + 56F4E0D21DC09C4B00584FEC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 56F4E0D31DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOListTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 56F4E0D41DC09C4B00584FEC /* Debug */, + 56F4E0D51DC09C4B00584FEC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 56F4E0D61DC09C4B00584FEC /* Build configuration list for PBXNativeTarget "CYLTODOListUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 56F4E0D71DC09C4B00584FEC /* Debug */, + 56F4E0D81DC09C4B00584FEC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 56F4E09B1DC09C4B00584FEC /* Project object */; +} diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.h" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.h" new file mode 100644 index 0000000..616b444 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.m" new file mode 100644 index 0000000..a450aa9 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/AppDelegate.m" @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. 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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..118c98f --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/LaunchScreen.storyboard" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/Main.storyboard" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..142d1b5 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Base.lproj/Main.storyboard" @@ -0,0 +1,440 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.h" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.h" new file mode 100644 index 0000000..b62541c --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.h" @@ -0,0 +1,16 @@ +// +// CYLAddNewItem.h +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import +#import "CYLToDoItem.h" + +@interface CYLAddNewItemViewController : UIViewController + +@property CYLToDoItem *toDoItem; + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.m" new file mode 100644 index 0000000..83d1452 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLAddNewItemViewController.m" @@ -0,0 +1,51 @@ +// +// CYLAddNewItem.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "CYLAddNewItemViewController.h" + +@interface CYLAddNewItemViewController () +@property (weak, nonatomic) IBOutlet UITextField *textField; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *addButton; + +@end + +@implementation CYLAddNewItemViewController + +- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if(sender != self.addButton) return; + if(self.textField.text.length > 0) + { + self.toDoItem = [[CYLToDoItem alloc] init]; + self.toDoItem.itemName = self.textField.text; + self.toDoItem.completed = NO; + } +} + + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +/* +#pragma mark - Navigation + +// 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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.h" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.h" new file mode 100644 index 0000000..606beaf --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.h" @@ -0,0 +1,17 @@ +// +// CYLToDoItem.h +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CYLToDoItem : NSObject + +@property NSString *itemName; +@property BOOL completed; +@property (readonly) NSDate *creationDate; + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.m" new file mode 100644 index 0000000..0447432 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoItem.m" @@ -0,0 +1,13 @@ +// +// CYLToDoItem.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "CYLToDoItem.h" + +@implementation CYLToDoItem + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.h" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.h" new file mode 100644 index 0000000..fa9d6b3 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.h" @@ -0,0 +1,15 @@ +// +// CYLToDoListTableViewController.h +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CYLToDoListTableViewController : UITableViewController +- (IBAction)unwindToList:(UIStoryboardSegue *)segue; + + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.m" new file mode 100644 index 0000000..dd88a7b --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/CYLToDoListTableViewController.m" @@ -0,0 +1,152 @@ +// +// CYLToDoListTableViewController.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "CYLToDoListTableViewController.h" +#import "CYLToDoItem.h" +#import "CYLAddNewItemViewController.h" + +@interface CYLToDoListTableViewController () + +@property NSMutableArray *toDoItems; + +@end + +@implementation CYLToDoListTableViewController + +/* 初始化数据 +- (void)loadInitialData{ + CYLToDoItem *item1 = [[CYLToDoItem alloc] init]; + item1.itemName = @"Buy milk"; + [self.toDoItems addObject:item1]; + CYLToDoItem *item2 = [[CYLToDoItem alloc] init]; + item2.itemName = @"Buy eggs"; + [self.toDoItems addObject:item2]; + CYLToDoItem *item3 = [[CYLToDoItem alloc] init]; + item3.itemName = @"Read a book"; + [self.toDoItems addObject:item3]; + +} + */ + +- (IBAction)unwindToList:(UIStoryboardSegue *)segue +{ + CYLAddNewItemViewController *source = [segue sourceViewController]; + CYLToDoItem *item = source.toDoItem; + if(item != nil) + { + [self.toDoItems addObject:item]; + [self.tableView reloadData]; + } +} + +- (void)viewDidLoad { + [super viewDidLoad]; + self.toDoItems = [[NSMutableArray alloc] init]; + // [self loadInitialData]; + + // 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 the number of sections. + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + //return the number of rows in the section. + return [self.toDoItems count]; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *CellIdentifier = @"ListPrototypeCell"; + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; + + CYLToDoItem *toDoItem = [self.toDoItems objectAtIndex:indexPath.row]; + cell.textLabel.text = toDoItem.itemName; + + // 区别完成或未完成状态 + if(toDoItem.completed){ + cell.accessoryType = UITableViewCellAccessoryCheckmark; + } + else{ + cell.accessoryType = UITableViewCellAccessoryNone; + } + + + return cell; +} + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + [tableView deselectRowAtIndexPath:indexPath animated:NO]; + CYLToDoItem * tappedItem = [self.toDoItems objectAtIndex:indexPath.row]; + tappedItem.completed = !tappedItem.completed; + [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; +} + + +/* +// 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 - Navigation + +// 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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Info.plist" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/Info.plist" new file mode 100644 index 0000000..38e98af --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.h" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.h" new file mode 100644 index 0000000..0063761 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.h" @@ -0,0 +1,15 @@ +// +// ViewController.h +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.m" new file mode 100644 index 0000000..eb4e4f9 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/ViewController.m" @@ -0,0 +1,29 @@ +// +// ViewController.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/main.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/main.m" new file mode 100644 index 0000000..2fea5f0 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOList/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// CYLTODOList +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. 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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/CYLTODOListTests.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/CYLTODOListTests.m" new file mode 100644 index 0000000..71d399a --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/CYLTODOListTests.m" @@ -0,0 +1,39 @@ +// +// CYLTODOListTests.m +// CYLTODOListTests +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CYLTODOListTests : XCTestCase + +@end + +@implementation CYLTODOListTests + +- (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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/Info.plist" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListTests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/CYLTODOListUITests.m" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/CYLTODOListUITests.m" new file mode 100644 index 0000000..5886c67 --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/CYLTODOListUITests.m" @@ -0,0 +1,40 @@ +// +// CYLTODOListUITests.m +// CYLTODOListUITests +// +// Created by Sara on 16/10/26. +// Copyright © 2016年 Sara. All rights reserved. +// + +#import + +@interface CYLTODOListUITests : XCTestCase + +@end + +@implementation CYLTODOListUITests + +- (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/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/Info.plist" "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651147\351\231\210\350\211\263\350\225\276/project03/CYLTODOListUITests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + +