From 6b39d56c9dddf0f10b912f935428882d3f942dc4 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Mon, 17 Oct 2016 17:17:59 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project01/PrintYearMonth.m" | 36 ------------------- 1 file changed, 36 deletions(-) diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" "b/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" index d41a2bb..99e2853 100644 --- "a/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" +++ "b/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" @@ -165,42 +165,6 @@ + (NSMutableString *) transformMonthToEnglish:(int)month{ //MARK: - 输出全年的函数; //输出年份; -/* - - 2015 - - January February March - Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa - 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 6 7 - 4 5 6 7 8 9 10 8 9 10 11 12 13 14 8 9 10 11 12 13 14 - 11 12 13 14 15 16 17 15 16 17 18 19 20 21 15 16 17 18 19 20 21 - 18 19 20 21 22 23 24 22 23 24 25 26 27 28 22 23 24 25 26 27 28 - 25 26 27 28 29 30 31 29 30 31 - - April May June - Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa - 1 2 3 4 1 2 1 2 3 4 5 6 - 5 6 7 8 9 10 11 3 4 5 6 7 8 9 7 8 9 10 11 12 13 - 12 13 14 15 16 17 18 10 11 12 13 14 15 16 14 15 16 17 18 19 20 - 19 20 21 22 23 24 25 17 18 19 20 21 22 23 21 22 23 24 25 26 27 - 26 27 28 29 30 24 25 26 27 28 29 30 28 29 30 - 31 - July August September - Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa - 1 2 3 4 1 1 2 3 4 5 - 5 6 7 8 9 10 11 2 3 4 5 6 7 8 6 7 8 9 10 11 12 - 12 13 14 15 16 17 18 9 10 11 12 13 14 15 13 14 15 16 17 18 19 - 19 20 21 22 23 24 25 16 17 18 19 20 21 22 20 21 22 23 24 25 26 - 26 27 28 29 30 31 23 24 25 26 27 28 29 27 28 29 30 - 30 31 - October November December - Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa - 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 - 4 5 6 7 8 9 10 8 9 10 11 12 13 14 6 7 8 9 10 11 12 - 11 12 13 14 15 16 17 15 16 17 18 19 20 21 13 14 15 16 17 18 19 - 18 19 20 21 22 23 24 22 23 24 25 26 27 28 20 21 22 23 24 25 26 - 25 26 27 28 29 30 31 29 30 27 28 29 30 31 - */ /* 打印一年的方式也是一行一行打印,一行包括3个月; */ From d04a18c23acc14ea84921fd71949d4d8b8f74d65 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 16:22:53 +0800 Subject: [PATCH 2/8] some modification --- .../project01/PrintYearMonth.m" | 1 - .../project01/YearMonthNow.m" | 2 -- 2 files changed, 3 deletions(-) diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" "b/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" index 99e2853..cfd450e 100644 --- "a/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" +++ "b/21651161\350\202\226\346\242\246\345\251\267/project01/PrintYearMonth.m" @@ -164,7 +164,6 @@ + (NSMutableString *) transformMonthToEnglish:(int)month{ } //MARK: - 输出全年的函数; -//输出年份; /* 打印一年的方式也是一行一行打印,一行包括3个月; */ diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project01/YearMonthNow.m" "b/21651161\350\202\226\346\242\246\345\251\267/project01/YearMonthNow.m" index cd07a7c..51efe84 100644 --- "a/21651161\350\202\226\346\242\246\345\251\267/project01/YearMonthNow.m" +++ "b/21651161\350\202\226\346\242\246\345\251\267/project01/YearMonthNow.m" @@ -26,8 +26,6 @@ - (void) yearAndMonth{ _yearNow = (int)[d year]; _monthNow = (int)[d month]; - // NSLog(@"%d",_yearNow); - // NSLog(@"%d",_monthNow); } @end From 9a42a2c43a64fd286dcf6e143388c59a74a40dce Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 18:55:54 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E5=92=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project03/TaskList" | 1 + 1 file changed, 1 insertion(+) create mode 160000 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" new file mode 160000 index 0000000..c378424 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" @@ -0,0 +1 @@ +Subproject commit c3784246a4d751a64de95dcdc27787a1f995f1dc From f280ddd1ebda502a8cac47c39672ecc831469911 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 19:09:44 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E5=92=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project02/Calendar" | 1 + 1 file changed, 1 insertion(+) create mode 160000 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" new file mode 160000 index 0000000..1c604d1 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" @@ -0,0 +1 @@ +Subproject commit 1c604d18f9e866255f5bb31c14ce6cd4bca32f24 From ade6a0ae7b2a998c050dfa9d34944a693c4f7b55 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 19:14:21 +0800 Subject: [PATCH 5/8] test --- .../project03/TaskList" | 1 - 1 file changed, 1 deletion(-) delete mode 160000 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" deleted file mode 160000 index c378424..0000000 --- "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList" +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c3784246a4d751a64de95dcdc27787a1f995f1dc From 4be5f89153b3b1fefbf640b08f66e6107b7fea53 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 19:22:46 +0800 Subject: [PATCH 6/8] test2 --- .../project02/Calendar" | 1 - 1 file changed, 1 deletion(-) delete mode 160000 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" deleted file mode 160000 index 1c604d1..0000000 --- "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar" +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1c604d18f9e866255f5bb31c14ce6cd4bca32f24 From c03c1e21969b8c1e6c2e9e4512d6b062b786cd53 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 19:42:59 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1iOS=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Calendar.xcodeproj/project.pbxproj" | 536 ++++++++++++++++++ .../Calendar/Calendar/AppDelegate.h" | 17 + .../Calendar/Calendar/AppDelegate.m" | 51 ++ .../AppIcon.appiconset/Contents.json" | 68 +++ .../Base.lproj/LaunchScreen.storyboard" | 27 + .../project02/Calendar/Calendar/Info.plist" | 45 ++ .../project02/Calendar/Calendar/MyView.h" | 49 ++ .../project02/Calendar/Calendar/MyView.m" | 184 ++++++ .../Calendar/Calendar/ViewController.h" | 34 ++ .../Calendar/Calendar/ViewController.m" | 241 ++++++++ .../project02/Calendar/Calendar/main.m" | 16 + .../Calendar/CalendarTests/CalendarTests.m" | 39 ++ .../Calendar/CalendarTests/Info.plist" | 22 + .../CalendarUITests/CalendarUITests.m" | 40 ++ .../Calendar/CalendarUITests/Info.plist" | 22 + 15 files changed, 1391 insertions(+) create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar.xcodeproj/project.pbxproj" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.h" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Assets.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Base.lproj/LaunchScreen.storyboard" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Info.plist" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.h" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.h" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/main.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/CalendarTests.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/Info.plist" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/CalendarUITests.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/Info.plist" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar.xcodeproj/project.pbxproj" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..4356af0 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar.xcodeproj/project.pbxproj" @@ -0,0 +1,536 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + DA9634CA1DC0C0C800C1C4A9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634C91DC0C0C800C1C4A9 /* main.m */; }; + DA9634CD1DC0C0C800C1C4A9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634CC1DC0C0C800C1C4A9 /* AppDelegate.m */; }; + DA9634D01DC0C0C800C1C4A9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634CF1DC0C0C800C1C4A9 /* ViewController.m */; }; + DA9634D51DC0C0C800C1C4A9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DA9634D41DC0C0C800C1C4A9 /* Assets.xcassets */; }; + DA9634D81DC0C0C800C1C4A9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA9634D61DC0C0C800C1C4A9 /* LaunchScreen.storyboard */; }; + DA9634E31DC0C0C800C1C4A9 /* CalendarTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634E21DC0C0C800C1C4A9 /* CalendarTests.m */; }; + DA9634EE1DC0C0C800C1C4A9 /* CalendarUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634ED1DC0C0C800C1C4A9 /* CalendarUITests.m */; }; + DA9634FC1DC0C0EE00C1C4A9 /* MyView.m in Sources */ = {isa = PBXBuildFile; fileRef = DA9634FB1DC0C0EE00C1C4A9 /* MyView.m */; }; + DA9635001DC0C40F00C1C4A9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA9634FE1DC0C40F00C1C4A9 /* Main.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + DA9634DF1DC0C0C800C1C4A9 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DA9634BD1DC0C0C800C1C4A9 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DA9634C41DC0C0C800C1C4A9; + remoteInfo = Calendar; + }; + DA9634EA1DC0C0C800C1C4A9 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DA9634BD1DC0C0C800C1C4A9 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DA9634C41DC0C0C800C1C4A9; + remoteInfo = Calendar; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + DA9634C51DC0C0C800C1C4A9 /* Calendar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Calendar.app; sourceTree = BUILT_PRODUCTS_DIR; }; + DA9634C91DC0C0C800C1C4A9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + DA9634CB1DC0C0C800C1C4A9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + DA9634CC1DC0C0C800C1C4A9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + DA9634CE1DC0C0C800C1C4A9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + DA9634CF1DC0C0C800C1C4A9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + DA9634D41DC0C0C800C1C4A9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + DA9634D71DC0C0C800C1C4A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + DA9634D91DC0C0C800C1C4A9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DA9634DE1DC0C0C800C1C4A9 /* CalendarTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CalendarTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DA9634E21DC0C0C800C1C4A9 /* CalendarTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CalendarTests.m; sourceTree = ""; }; + DA9634E41DC0C0C800C1C4A9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DA9634E91DC0C0C800C1C4A9 /* CalendarUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CalendarUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DA9634ED1DC0C0C800C1C4A9 /* CalendarUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CalendarUITests.m; sourceTree = ""; }; + DA9634EF1DC0C0C800C1C4A9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DA9634FB1DC0C0EE00C1C4A9 /* MyView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyView.m; sourceTree = ""; }; + DA9634FD1DC0C10300C1C4A9 /* MyView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyView.h; sourceTree = ""; }; + DA9634FF1DC0C40F00C1C4A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = ../../../../../Downloads/Calendar/Calendar/Base.lproj/Main.storyboard; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + DA9634C21DC0C0C800C1C4A9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634DB1DC0C0C800C1C4A9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634E61DC0C0C800C1C4A9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + DA9634BC1DC0C0C800C1C4A9 = { + isa = PBXGroup; + children = ( + DA9634C71DC0C0C800C1C4A9 /* Calendar */, + DA9634E11DC0C0C800C1C4A9 /* CalendarTests */, + DA9634EC1DC0C0C800C1C4A9 /* CalendarUITests */, + DA9634C61DC0C0C800C1C4A9 /* Products */, + ); + sourceTree = ""; + }; + DA9634C61DC0C0C800C1C4A9 /* Products */ = { + isa = PBXGroup; + children = ( + DA9634C51DC0C0C800C1C4A9 /* Calendar.app */, + DA9634DE1DC0C0C800C1C4A9 /* CalendarTests.xctest */, + DA9634E91DC0C0C800C1C4A9 /* CalendarUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + DA9634C71DC0C0C800C1C4A9 /* Calendar */ = { + isa = PBXGroup; + children = ( + DA9634CB1DC0C0C800C1C4A9 /* AppDelegate.h */, + DA9634CC1DC0C0C800C1C4A9 /* AppDelegate.m */, + DA9634CE1DC0C0C800C1C4A9 /* ViewController.h */, + DA9634CF1DC0C0C800C1C4A9 /* ViewController.m */, + DA9634FD1DC0C10300C1C4A9 /* MyView.h */, + DA9634FB1DC0C0EE00C1C4A9 /* MyView.m */, + DA9634FE1DC0C40F00C1C4A9 /* Main.storyboard */, + DA9634D41DC0C0C800C1C4A9 /* Assets.xcassets */, + DA9634D61DC0C0C800C1C4A9 /* LaunchScreen.storyboard */, + DA9634D91DC0C0C800C1C4A9 /* Info.plist */, + DA9634C81DC0C0C800C1C4A9 /* Supporting Files */, + ); + path = Calendar; + sourceTree = ""; + }; + DA9634C81DC0C0C800C1C4A9 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + DA9634C91DC0C0C800C1C4A9 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + DA9634E11DC0C0C800C1C4A9 /* CalendarTests */ = { + isa = PBXGroup; + children = ( + DA9634E21DC0C0C800C1C4A9 /* CalendarTests.m */, + DA9634E41DC0C0C800C1C4A9 /* Info.plist */, + ); + path = CalendarTests; + sourceTree = ""; + }; + DA9634EC1DC0C0C800C1C4A9 /* CalendarUITests */ = { + isa = PBXGroup; + children = ( + DA9634ED1DC0C0C800C1C4A9 /* CalendarUITests.m */, + DA9634EF1DC0C0C800C1C4A9 /* Info.plist */, + ); + path = CalendarUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + DA9634C41DC0C0C800C1C4A9 /* Calendar */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA9634F21DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "Calendar" */; + buildPhases = ( + DA9634C11DC0C0C800C1C4A9 /* Sources */, + DA9634C21DC0C0C800C1C4A9 /* Frameworks */, + DA9634C31DC0C0C800C1C4A9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Calendar; + productName = Calendar; + productReference = DA9634C51DC0C0C800C1C4A9 /* Calendar.app */; + productType = "com.apple.product-type.application"; + }; + DA9634DD1DC0C0C800C1C4A9 /* CalendarTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA9634F51DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "CalendarTests" */; + buildPhases = ( + DA9634DA1DC0C0C800C1C4A9 /* Sources */, + DA9634DB1DC0C0C800C1C4A9 /* Frameworks */, + DA9634DC1DC0C0C800C1C4A9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DA9634E01DC0C0C800C1C4A9 /* PBXTargetDependency */, + ); + name = CalendarTests; + productName = CalendarTests; + productReference = DA9634DE1DC0C0C800C1C4A9 /* CalendarTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + DA9634E81DC0C0C800C1C4A9 /* CalendarUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA9634F81DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "CalendarUITests" */; + buildPhases = ( + DA9634E51DC0C0C800C1C4A9 /* Sources */, + DA9634E61DC0C0C800C1C4A9 /* Frameworks */, + DA9634E71DC0C0C800C1C4A9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DA9634EB1DC0C0C800C1C4A9 /* PBXTargetDependency */, + ); + name = CalendarUITests; + productName = CalendarUITests; + productReference = DA9634E91DC0C0C800C1C4A9 /* CalendarUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + DA9634BD1DC0C0C800C1C4A9 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = xmt; + TargetAttributes = { + DA9634C41DC0C0C800C1C4A9 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + DA9634DD1DC0C0C800C1C4A9 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = DA9634C41DC0C0C800C1C4A9; + }; + DA9634E81DC0C0C800C1C4A9 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = DA9634C41DC0C0C800C1C4A9; + }; + }; + }; + buildConfigurationList = DA9634C01DC0C0C800C1C4A9 /* Build configuration list for PBXProject "Calendar" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = DA9634BC1DC0C0C800C1C4A9; + productRefGroup = DA9634C61DC0C0C800C1C4A9 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + DA9634C41DC0C0C800C1C4A9 /* Calendar */, + DA9634DD1DC0C0C800C1C4A9 /* CalendarTests */, + DA9634E81DC0C0C800C1C4A9 /* CalendarUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + DA9634C31DC0C0C800C1C4A9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA9635001DC0C40F00C1C4A9 /* Main.storyboard in Resources */, + DA9634D81DC0C0C800C1C4A9 /* LaunchScreen.storyboard in Resources */, + DA9634D51DC0C0C800C1C4A9 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634DC1DC0C0C800C1C4A9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634E71DC0C0C800C1C4A9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + DA9634C11DC0C0C800C1C4A9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA9634FC1DC0C0EE00C1C4A9 /* MyView.m in Sources */, + DA9634D01DC0C0C800C1C4A9 /* ViewController.m in Sources */, + DA9634CD1DC0C0C800C1C4A9 /* AppDelegate.m in Sources */, + DA9634CA1DC0C0C800C1C4A9 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634DA1DC0C0C800C1C4A9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA9634E31DC0C0C800C1C4A9 /* CalendarTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA9634E51DC0C0C800C1C4A9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA9634EE1DC0C0C800C1C4A9 /* CalendarUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + DA9634E01DC0C0C800C1C4A9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DA9634C41DC0C0C800C1C4A9 /* Calendar */; + targetProxy = DA9634DF1DC0C0C800C1C4A9 /* PBXContainerItemProxy */; + }; + DA9634EB1DC0C0C800C1C4A9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DA9634C41DC0C0C800C1C4A9 /* Calendar */; + targetProxy = DA9634EA1DC0C0C800C1C4A9 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + DA9634D61DC0C0C800C1C4A9 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DA9634D71DC0C0C800C1C4A9 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + DA9634FE1DC0C40F00C1C4A9 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DA9634FF1DC0C40F00C1C4A9 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + DA9634F01DC0C0C800C1C4A9 /* 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; + }; + DA9634F11DC0C0C800C1C4A9 /* 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; + }; + DA9634F31DC0C0C800C1C4A9 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Calendar/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.Calendar; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + DA9634F41DC0C0C800C1C4A9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Calendar/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.Calendar; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + DA9634F61DC0C0C800C1C4A9 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CalendarTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.CalendarTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Calendar.app/Calendar"; + }; + name = Debug; + }; + DA9634F71DC0C0C800C1C4A9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CalendarTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.CalendarTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Calendar.app/Calendar"; + }; + name = Release; + }; + DA9634F91DC0C0C800C1C4A9 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CalendarUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.CalendarUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = Calendar; + }; + name = Debug; + }; + DA9634FA1DC0C0C800C1C4A9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CalendarUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.CalendarUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = Calendar; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + DA9634C01DC0C0C800C1C4A9 /* Build configuration list for PBXProject "Calendar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA9634F01DC0C0C800C1C4A9 /* Debug */, + DA9634F11DC0C0C800C1C4A9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DA9634F21DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "Calendar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA9634F31DC0C0C800C1C4A9 /* Debug */, + DA9634F41DC0C0C800C1C4A9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + DA9634F51DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "CalendarTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA9634F61DC0C0C800C1C4A9 /* Debug */, + DA9634F71DC0C0C800C1C4A9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + DA9634F81DC0C0C800C1C4A9 /* Build configuration list for PBXNativeTarget "CalendarUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA9634F91DC0C0C800C1C4A9 /* Debug */, + DA9634FA1DC0C0C800C1C4A9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = DA9634BD1DC0C0C800C1C4A9 /* Project object */; +} diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.h" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.h" new file mode 100644 index 0000000..2d93b28 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.m" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.m" new file mode 100644 index 0000000..5d5e79a --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/AppDelegate.m" @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. 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/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Base.lproj/LaunchScreen.storyboard" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Info.plist" new file mode 100644 index 0000000..d052473 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/Info.plist" @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.h" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.h" new file mode 100644 index 0000000..8ffda79 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.h" @@ -0,0 +1,49 @@ +// +// MyView.h +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface NSDate (Formatter) + ++(NSDate *)yesterday; + ++(NSDateFormatter *)formatter; ++(NSDateFormatter *)formatterWithoutTime; ++(NSDateFormatter *)formatterWithoutDate; + +-(NSString *)formatWithUTCTimeZone; +-(NSString *)formatWithLocalTimeZone; +-(NSString *)formatWithTimeZoneOffset:(NSTimeInterval)offset; +-(NSString *)formatWithTimeZone:(NSTimeZone *)timezone; + +-(NSString *)formatWithUTCTimeZoneWithoutTime; +-(NSString *)formatWithLocalTimeZoneWithoutTime; +-(NSString *)formatWithTimeZoneOffsetWithoutTime:(NSTimeInterval)offset; +-(NSString *)formatWithTimeZoneWithoutTime:(NSTimeZone *)timezone; + +-(NSString *)formatWithUTCWithoutDate; +-(NSString *)formatWithLocalTimeWithoutDate; +-(NSString *)formatWithTimeZoneOffsetWithoutDate:(NSTimeInterval)offset; +-(NSString *)formatTimeWithTimeZone:(NSTimeZone *)timezone; + + ++ (NSString *)currentDateStringWithFormat:(NSString *)format; ++ (NSDate *)dateWithSecondsFromNow:(NSInteger)seconds; ++ (NSDate *)dateWithYear:(NSInteger)year month:(NSUInteger)month day:(NSUInteger)day; +- (NSString *)dateWithFormat:(NSString *)format; + +//Other +- (NSString *)mmddByLineWithDate; +- (NSString *)yyyyMMByLineWithDate; +- (NSString *)yyyyMMddByLineWithDate; +- (NSString *)mmddChineseWithDate; +- (NSString *)hhmmssWithDate; + +- (NSString *)morningOrAfterWithHH; +@end + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.m" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.m" new file mode 100644 index 0000000..7e3cace --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/MyView.m" @@ -0,0 +1,184 @@ +// +// MyView.m +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import +#import "MyView.h" + +@implementation NSDate (Formatter) + ++ (NSDate *)yesterday{ + //获取前一天日期,以秒为单位 + return [NSDate dateWithTimeIntervalSinceNow:-(24*60*60)]; +} + ++(NSDateFormatter *)formatter { + + static NSDateFormatter *formatter = nil; + static dispatch_once_t oncePredicate; + //日期格式 + dispatch_once(&oncePredicate, ^{ + formatter = [[NSDateFormatter alloc] init]; + [formatter setDateStyle:NSDateFormatterMediumStyle]; + [formatter setTimeStyle:NSDateFormatterShortStyle]; + [formatter setDoesRelativeDateFormatting:YES]; + }); + + return formatter; +} + ++(NSDateFormatter *)formatterWithoutTime { + + static NSDateFormatter *formatterWithoutTime = nil; + static dispatch_once_t oncePredicate; + + dispatch_once(&oncePredicate, ^{ + formatterWithoutTime = [[NSDate formatter] copy]; + [formatterWithoutTime setTimeStyle:NSDateFormatterNoStyle]; + }); + + return formatterWithoutTime; +} + ++(NSDateFormatter *)formatterWithoutDate { + + static NSDateFormatter *formatterWithoutDate = nil; + static dispatch_once_t oncePredicate; + + dispatch_once(&oncePredicate, ^{ + formatterWithoutDate = [[NSDate formatter] copy]; + [formatterWithoutDate setDateStyle:NSDateFormatterNoStyle]; + }); + + return formatterWithoutDate; +} + +#pragma mark - +#pragma mark Formatter with date & time +-(NSString *)formatWithUTCTimeZone { + return [self formatWithTimeZoneOffset:0]; +} + +-(NSString *)formatWithLocalTimeZone { + return [self formatWithTimeZone:[NSTimeZone localTimeZone]]; +} + +-(NSString *)formatWithTimeZoneOffset:(NSTimeInterval)offset { + return [self formatWithTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:offset]]; +} + +-(NSString *)formatWithTimeZone:(NSTimeZone *)timezone { + NSDateFormatter *formatter = [NSDate formatter]; + [formatter setTimeZone:timezone]; + return [formatter stringFromDate:self]; +} + +#pragma mark - +#pragma mark Formatter without time +-(NSString *)formatWithUTCTimeZoneWithoutTime { + return [self formatWithTimeZoneOffsetWithoutTime:0]; +} + +-(NSString *)formatWithLocalTimeZoneWithoutTime { + return [self formatWithTimeZoneWithoutTime:[NSTimeZone localTimeZone]]; +} + +-(NSString *)formatWithTimeZoneOffsetWithoutTime:(NSTimeInterval)offset { + return [self formatWithTimeZoneWithoutTime:[NSTimeZone timeZoneForSecondsFromGMT:offset]]; +} + +-(NSString *)formatWithTimeZoneWithoutTime:(NSTimeZone *)timezone { + NSDateFormatter *formatter = [NSDate formatterWithoutTime]; + [formatter setTimeZone:timezone]; + return [formatter stringFromDate:self]; +} + +#pragma mark - +#pragma mark Formatter without date +-(NSString *)formatWithUTCWithoutDate { + return [self formatTimeWithTimeZone:0]; +} +-(NSString *)formatWithLocalTimeWithoutDate { + return [self formatTimeWithTimeZone:[NSTimeZone localTimeZone]]; +} + +-(NSString *)formatWithTimeZoneOffsetWithoutDate:(NSTimeInterval)offset { + return [self formatTimeWithTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:offset]]; +} + +-(NSString *)formatTimeWithTimeZone:(NSTimeZone *)timezone { + NSDateFormatter *formatter = [NSDate formatterWithoutDate]; + [formatter setTimeZone:timezone]; + return [formatter stringFromDate:self]; +} +#pragma mark - +#pragma mark Formatter date ++ (NSString *)currentDateStringWithFormat:(NSString *)format +{ + NSDate *chosenDate = [NSDate date]; + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:format]; + NSString *date = [formatter stringFromDate:chosenDate]; + return date; +} ++ (NSDate *)dateWithSecondsFromNow:(NSInteger)seconds { + NSDate *date = [NSDate date]; + NSDateComponents *components = [NSDateComponents new]; + [components setSecond:seconds]; + NSCalendar *calendar = [NSCalendar currentCalendar]; + NSDate *dateSecondsAgo = [calendar dateByAddingComponents:components toDate:date options:0]; + return dateSecondsAgo; +} + ++ (NSDate *)dateWithYear:(NSInteger)year month:(NSUInteger)month day:(NSUInteger)day { + NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + NSDateComponents *components = [[NSDateComponents alloc] init]; + [components setYear:year]; + [components setMonth:month]; + [components setDay:day]; + return [calendar dateFromComponents:components]; +} +- (NSString *)dateWithFormat:(NSString *)format +{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:format]; + NSString *date = [formatter stringFromDate:self]; + return date; +} +- (NSString *)yyyyMMByLineWithDate{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:@"yyyy-MM"]; + return [formatter stringFromDate:self]; +} + +- (NSString *)mmddByLineWithDate{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:@"MM-dd"]; + return [formatter stringFromDate:self]; +} + +- (NSString *)mmddChineseWithDate{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:@"MM月dd日"]; + return [formatter stringFromDate:self]; +} + +- (NSString *)hhmmssWithDate{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + formatter.timeZone = [NSTimeZone timeZoneWithName:@"GMT"]; + [formatter setDateFormat:@"HH:mm:ss"]; + return [formatter stringFromDate:self]; +} + +- (NSString *)yyyyMMddByLineWithDate{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + [formatter setDateFormat:@"yyyy-MM-dd"]; + return [formatter stringFromDate:self]; +} + + +@end diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.h" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.h" new file mode 100644 index 0000000..fc85560 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.h" @@ -0,0 +1,34 @@ +// +// ViewController.h +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@class MonthModel; +//控制器 +@interface CalendarViewController : UIViewController +@end + +//CollectionViewHeader +@interface CalendarHeaderView : UICollectionReusableView +@end + +//UICollectionViewCell +@interface CalendarCell : UICollectionViewCell +@property (weak, nonatomic) UILabel *dayLabel; + +@property (strong, nonatomic) MonthModel *monthModel; +@end + +//存储模型 +@interface MonthModel : NSObject +@property (assign, nonatomic) NSInteger dayValue; +@property (strong, nonatomic) NSDate *dateValue; +@property (assign, nonatomic) BOOL isSelectedDay; +@end + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.m" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.m" new file mode 100644 index 0000000..cda85df --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/Calendar/ViewController.m" @@ -0,0 +1,241 @@ +// +// ViewController.m +// Calendar +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import "ViewController.h" + +#import "MyView.h" + +#define LL_SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width) +#define LL_SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height) +#define Iphone6Scale(x) ((x) * LL_SCREEN_WIDTH / 375.0f) + +#define HeaderViewHeight 30 +#define WeekViewHeight 40 + +@interface CalendarViewController () +@property (strong, nonatomic) UICollectionView *collectionView; +@property (strong, nonatomic) NSMutableArray *dayModelArray; +@property (weak, nonatomic) IBOutlet UILabel *dateLabel; + +@property (strong, nonatomic) NSDate *tempDate; +@end + +@implementation CalendarViewController + +//- (IBAction)上一个:(id)sender { +// self.tempDate = [self getLastMonth:self.tempDate]; +// self.dateLabel.text = self.tempDate.yyyyMMByLineWithDate; +// [self getDataDayModel:self.tempDate]; +//} +// +//- (IBAction)下一个:(id)sender { +// self.tempDate = [self getNextMonth:self.tempDate]; +// self.dateLabel.text = self.tempDate.yyyyMMByLineWithDate; +// [self getDataDayModel:self.tempDate]; +//} + +- (void)viewDidLoad { + [super viewDidLoad]; + + [self.view addSubview:self.collectionView]; + //获取当前时间 + self.tempDate = [NSDate date]; + //转换成yyyy-mm格式 + self.dateLabel.text = self.tempDate.yyyyMMByLineWithDate; + [self getDataDayModel:self.tempDate]; +} + +- (void)getDataDayModel:(NSDate *)date{ + NSUInteger days = [self numberOfDaysInMonth:date]; + NSInteger week = [self startDayOfWeek:date]; + //日历共需要6行 + self.dayModelArray = [[NSMutableArray alloc] initWithCapacity:42]; + int day = 1; + for (int i= 1; i +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/CalendarTests.m" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/CalendarTests.m" new file mode 100644 index 0000000..ac8806c --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/CalendarTests.m" @@ -0,0 +1,39 @@ +// +// CalendarTests.m +// CalendarTests +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface CalendarTests : XCTestCase + +@end + +@implementation CalendarTests + +- (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/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarTests/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/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/CalendarUITests.m" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/CalendarUITests.m" new file mode 100644 index 0000000..94589d5 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/CalendarUITests.m" @@ -0,0 +1,40 @@ +// +// CalendarUITests.m +// CalendarUITests +// +// Created by xmt on 2016/10/26. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface CalendarUITests : XCTestCase + +@end + +@implementation CalendarUITests + +- (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/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project02/Calendar/CalendarUITests/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 + + From 215131643cb3bd89e31a2963c9f4acdf4d571672 Mon Sep 17 00:00:00 2001 From: AineYvonne <646801154@qq.com> Date: Wed, 26 Oct 2016 19:51:05 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1iOS=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskList.xcodeproj/project.pbxproj" | 547 ++++++++++++++++++ .../TaskList/TaskList/AppDelegate.h" | 26 + .../TaskList/TaskList/AppDelegate.m" | 153 +++++ .../AppIcon.appiconset/Contents.json" | 68 +++ .../Base.lproj/LaunchScreen.storyboard" | 27 + .../TaskList/Base.lproj/Main.storyboard" | 78 +++ .../project03/TaskList/TaskList/Info.plist" | 45 ++ .../TaskList.xcdatamodeld/.xccurrentversion" | 8 + .../TaskList.xcdatamodel/contents" | 9 + .../TaskList/TaskList/ViewController.h" | 15 + .../TaskList/TaskList/ViewController.m" | 92 +++ .../project03/TaskList/TaskList/main.m" | 16 + .../TaskList/TaskListTests/Info.plist" | 22 + .../TaskList/TaskListTests/TaskListTests.m" | 39 ++ .../TaskList/TaskListUITests/Info.plist" | 22 + .../TaskListUITests/TaskListUITests.m" | 40 ++ 16 files changed, 1207 insertions(+) create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList.xcodeproj/project.pbxproj" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.h" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Assets.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/LaunchScreen.storyboard" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/Main.storyboard" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Info.plist" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/.xccurrentversion" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/TaskList.xcdatamodel/contents" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.h" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/main.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/Info.plist" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/TaskListTests.m" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/Info.plist" create mode 100644 "21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/TaskListUITests.m" diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList.xcodeproj/project.pbxproj" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..caa3954 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList.xcodeproj/project.pbxproj" @@ -0,0 +1,547 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + DA107C0F1DBCA2F9005CF7B3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DA107C0E1DBCA2F9005CF7B3 /* main.m */; }; + DA107C121DBCA2F9005CF7B3 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DA107C111DBCA2F9005CF7B3 /* AppDelegate.m */; }; + DA107C151DBCA2F9005CF7B3 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DA107C141DBCA2F9005CF7B3 /* ViewController.m */; }; + DA107C181DBCA2F9005CF7B3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA107C161DBCA2F9005CF7B3 /* Main.storyboard */; }; + DA107C1B1DBCA2F9005CF7B3 /* TaskList.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = DA107C191DBCA2F9005CF7B3 /* TaskList.xcdatamodeld */; }; + DA107C1D1DBCA2F9005CF7B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DA107C1C1DBCA2F9005CF7B3 /* Assets.xcassets */; }; + DA107C201DBCA2F9005CF7B3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA107C1E1DBCA2F9005CF7B3 /* LaunchScreen.storyboard */; }; + DA107C2B1DBCA2FA005CF7B3 /* TaskListTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA107C2A1DBCA2FA005CF7B3 /* TaskListTests.m */; }; + DA107C361DBCA2FA005CF7B3 /* TaskListUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA107C351DBCA2FA005CF7B3 /* TaskListUITests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + DA107C271DBCA2FA005CF7B3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DA107C021DBCA2F9005CF7B3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DA107C091DBCA2F9005CF7B3; + remoteInfo = TaskList; + }; + DA107C321DBCA2FA005CF7B3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DA107C021DBCA2F9005CF7B3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DA107C091DBCA2F9005CF7B3; + remoteInfo = TaskList; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + DA107C0A1DBCA2F9005CF7B3 /* TaskList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TaskList.app; sourceTree = BUILT_PRODUCTS_DIR; }; + DA107C0E1DBCA2F9005CF7B3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + DA107C101DBCA2F9005CF7B3 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + DA107C111DBCA2F9005CF7B3 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + DA107C131DBCA2F9005CF7B3 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + DA107C141DBCA2F9005CF7B3 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + DA107C171DBCA2F9005CF7B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + DA107C1A1DBCA2F9005CF7B3 /* TaskList.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = TaskList.xcdatamodel; sourceTree = ""; }; + DA107C1C1DBCA2F9005CF7B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + DA107C1F1DBCA2F9005CF7B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + DA107C211DBCA2F9005CF7B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DA107C261DBCA2FA005CF7B3 /* TaskListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TaskListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DA107C2A1DBCA2FA005CF7B3 /* TaskListTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TaskListTests.m; sourceTree = ""; }; + DA107C2C1DBCA2FA005CF7B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DA107C311DBCA2FA005CF7B3 /* TaskListUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TaskListUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DA107C351DBCA2FA005CF7B3 /* TaskListUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TaskListUITests.m; sourceTree = ""; }; + DA107C371DBCA2FA005CF7B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + DA107C071DBCA2F9005CF7B3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C231DBCA2FA005CF7B3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C2E1DBCA2FA005CF7B3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + DA107C011DBCA2F9005CF7B3 = { + isa = PBXGroup; + children = ( + DA107C0C1DBCA2F9005CF7B3 /* TaskList */, + DA107C291DBCA2FA005CF7B3 /* TaskListTests */, + DA107C341DBCA2FA005CF7B3 /* TaskListUITests */, + DA107C0B1DBCA2F9005CF7B3 /* Products */, + ); + sourceTree = ""; + }; + DA107C0B1DBCA2F9005CF7B3 /* Products */ = { + isa = PBXGroup; + children = ( + DA107C0A1DBCA2F9005CF7B3 /* TaskList.app */, + DA107C261DBCA2FA005CF7B3 /* TaskListTests.xctest */, + DA107C311DBCA2FA005CF7B3 /* TaskListUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + DA107C0C1DBCA2F9005CF7B3 /* TaskList */ = { + isa = PBXGroup; + children = ( + DA107C101DBCA2F9005CF7B3 /* AppDelegate.h */, + DA107C111DBCA2F9005CF7B3 /* AppDelegate.m */, + DA107C131DBCA2F9005CF7B3 /* ViewController.h */, + DA107C141DBCA2F9005CF7B3 /* ViewController.m */, + DA107C161DBCA2F9005CF7B3 /* Main.storyboard */, + DA107C1C1DBCA2F9005CF7B3 /* Assets.xcassets */, + DA107C1E1DBCA2F9005CF7B3 /* LaunchScreen.storyboard */, + DA107C211DBCA2F9005CF7B3 /* Info.plist */, + DA107C191DBCA2F9005CF7B3 /* TaskList.xcdatamodeld */, + DA107C0D1DBCA2F9005CF7B3 /* Supporting Files */, + ); + path = TaskList; + sourceTree = ""; + }; + DA107C0D1DBCA2F9005CF7B3 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + DA107C0E1DBCA2F9005CF7B3 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + DA107C291DBCA2FA005CF7B3 /* TaskListTests */ = { + isa = PBXGroup; + children = ( + DA107C2A1DBCA2FA005CF7B3 /* TaskListTests.m */, + DA107C2C1DBCA2FA005CF7B3 /* Info.plist */, + ); + path = TaskListTests; + sourceTree = ""; + }; + DA107C341DBCA2FA005CF7B3 /* TaskListUITests */ = { + isa = PBXGroup; + children = ( + DA107C351DBCA2FA005CF7B3 /* TaskListUITests.m */, + DA107C371DBCA2FA005CF7B3 /* Info.plist */, + ); + path = TaskListUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + DA107C091DBCA2F9005CF7B3 /* TaskList */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA107C3A1DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskList" */; + buildPhases = ( + DA107C061DBCA2F9005CF7B3 /* Sources */, + DA107C071DBCA2F9005CF7B3 /* Frameworks */, + DA107C081DBCA2F9005CF7B3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TaskList; + productName = TaskList; + productReference = DA107C0A1DBCA2F9005CF7B3 /* TaskList.app */; + productType = "com.apple.product-type.application"; + }; + DA107C251DBCA2FA005CF7B3 /* TaskListTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA107C3D1DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskListTests" */; + buildPhases = ( + DA107C221DBCA2FA005CF7B3 /* Sources */, + DA107C231DBCA2FA005CF7B3 /* Frameworks */, + DA107C241DBCA2FA005CF7B3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DA107C281DBCA2FA005CF7B3 /* PBXTargetDependency */, + ); + name = TaskListTests; + productName = TaskListTests; + productReference = DA107C261DBCA2FA005CF7B3 /* TaskListTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + DA107C301DBCA2FA005CF7B3 /* TaskListUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DA107C401DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskListUITests" */; + buildPhases = ( + DA107C2D1DBCA2FA005CF7B3 /* Sources */, + DA107C2E1DBCA2FA005CF7B3 /* Frameworks */, + DA107C2F1DBCA2FA005CF7B3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DA107C331DBCA2FA005CF7B3 /* PBXTargetDependency */, + ); + name = TaskListUITests; + productName = TaskListUITests; + productReference = DA107C311DBCA2FA005CF7B3 /* TaskListUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + DA107C021DBCA2F9005CF7B3 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0800; + ORGANIZATIONNAME = xmt; + TargetAttributes = { + DA107C091DBCA2F9005CF7B3 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + }; + DA107C251DBCA2FA005CF7B3 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = DA107C091DBCA2F9005CF7B3; + }; + DA107C301DBCA2FA005CF7B3 = { + CreatedOnToolsVersion = 8.0; + ProvisioningStyle = Automatic; + TestTargetID = DA107C091DBCA2F9005CF7B3; + }; + }; + }; + buildConfigurationList = DA107C051DBCA2F9005CF7B3 /* Build configuration list for PBXProject "TaskList" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = DA107C011DBCA2F9005CF7B3; + productRefGroup = DA107C0B1DBCA2F9005CF7B3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + DA107C091DBCA2F9005CF7B3 /* TaskList */, + DA107C251DBCA2FA005CF7B3 /* TaskListTests */, + DA107C301DBCA2FA005CF7B3 /* TaskListUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + DA107C081DBCA2F9005CF7B3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA107C201DBCA2F9005CF7B3 /* LaunchScreen.storyboard in Resources */, + DA107C1D1DBCA2F9005CF7B3 /* Assets.xcassets in Resources */, + DA107C181DBCA2F9005CF7B3 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C241DBCA2FA005CF7B3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C2F1DBCA2FA005CF7B3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + DA107C061DBCA2F9005CF7B3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA107C1B1DBCA2F9005CF7B3 /* TaskList.xcdatamodeld in Sources */, + DA107C151DBCA2F9005CF7B3 /* ViewController.m in Sources */, + DA107C121DBCA2F9005CF7B3 /* AppDelegate.m in Sources */, + DA107C0F1DBCA2F9005CF7B3 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C221DBCA2FA005CF7B3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA107C2B1DBCA2FA005CF7B3 /* TaskListTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA107C2D1DBCA2FA005CF7B3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DA107C361DBCA2FA005CF7B3 /* TaskListUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + DA107C281DBCA2FA005CF7B3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DA107C091DBCA2F9005CF7B3 /* TaskList */; + targetProxy = DA107C271DBCA2FA005CF7B3 /* PBXContainerItemProxy */; + }; + DA107C331DBCA2FA005CF7B3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DA107C091DBCA2F9005CF7B3 /* TaskList */; + targetProxy = DA107C321DBCA2FA005CF7B3 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + DA107C161DBCA2F9005CF7B3 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DA107C171DBCA2F9005CF7B3 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + DA107C1E1DBCA2F9005CF7B3 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + DA107C1F1DBCA2F9005CF7B3 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + DA107C381DBCA2FA005CF7B3 /* 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; + }; + DA107C391DBCA2FA005CF7B3 /* 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; + }; + DA107C3B1DBCA2FA005CF7B3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = TaskList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + DA107C3C1DBCA2FA005CF7B3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = TaskList/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskList; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + DA107C3E1DBCA2FA005CF7B3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = TaskListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TaskList.app/TaskList"; + }; + name = Debug; + }; + DA107C3F1DBCA2FA005CF7B3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = TaskListTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TaskList.app/TaskList"; + }; + name = Release; + }; + DA107C411DBCA2FA005CF7B3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = TaskListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = TaskList; + }; + name = Debug; + }; + DA107C421DBCA2FA005CF7B3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = TaskListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.xmt.learn.TaskListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = TaskList; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + DA107C051DBCA2F9005CF7B3 /* Build configuration list for PBXProject "TaskList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA107C381DBCA2FA005CF7B3 /* Debug */, + DA107C391DBCA2FA005CF7B3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DA107C3A1DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA107C3B1DBCA2FA005CF7B3 /* Debug */, + DA107C3C1DBCA2FA005CF7B3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + DA107C3D1DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskListTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA107C3E1DBCA2FA005CF7B3 /* Debug */, + DA107C3F1DBCA2FA005CF7B3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + DA107C401DBCA2FA005CF7B3 /* Build configuration list for PBXNativeTarget "TaskListUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DA107C411DBCA2FA005CF7B3 /* Debug */, + DA107C421DBCA2FA005CF7B3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + DA107C191DBCA2F9005CF7B3 /* TaskList.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + DA107C1A1DBCA2F9005CF7B3 /* TaskList.xcdatamodel */, + ); + currentVersion = DA107C1A1DBCA2F9005CF7B3 /* TaskList.xcdatamodel */; + path = TaskList.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = DA107C021DBCA2F9005CF7B3 /* Project object */; +} diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.h" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.h" new file mode 100644 index 0000000..759efb3 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.h" @@ -0,0 +1,26 @@ +// +// AppDelegate.h +// TaskList +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@property (readonly, strong) NSPersistentContainer *persistentContainer; + +@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; +@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel; +@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; + +- (void)saveContext; +- (NSURL *)applicationDocumentsDirectory; + +@end + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.m" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.m" new file mode 100644 index 0000000..62bda35 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/AppDelegate.m" @@ -0,0 +1,153 @@ +// +// AppDelegate.m +// TaskList +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. 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:. + // Saves changes in the application's managed object context before the application terminates. + [self saveContext]; +} + + +#pragma mark - Core Data stack + +@synthesize managedObjectContext = _managedObjectContext; +@synthesize managedObjectModel = _managedObjectModel; +@synthesize persistentStoreCoordinator = _persistentStoreCoordinator; + +@synthesize persistentContainer = _persistentContainer; + +- (NSURL *)applicationDocumentsDirectory { + // The directory the application uses to store the Core Data store file. This code uses a directory named "com.chenyufengweb.TaskList" in the application's documents directory. + return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; +} + +- (NSManagedObjectModel *)managedObjectModel { + + if (_managedObjectModel != nil) { + return _managedObjectModel; + } + NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"TaskList" withExtension:@"momd"]; + _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; + return _managedObjectModel; +} + +- (NSPersistentStoreCoordinator *)persistentStoreCoordinator { + if (_persistentStoreCoordinator != nil) { + return _persistentStoreCoordinator; + } + _persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; + NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"TaskList.sqlite"]; + NSLog(@"数据库文件位置:%@",storeURL); + + NSError *error = nil; + NSString *failureReason = @"There was an error creating or loading the application's saved data."; + if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&error]) { + + NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + dict[NSLocalizedDescriptionKey] = @"Failed to initialize the application's saved data"; + dict[NSLocalizedFailureReasonErrorKey] = failureReason; + dict[NSUnderlyingErrorKey] = error; + error = [NSError errorWithDomain:@"YOUR_ERROR_DOMAIN" code:9999 userInfo:dict]; + NSLog(@"Unresolved error %@, %@", error, [error userInfo]); + abort(); + } + return _persistentStoreCoordinator; +} + +- (NSPersistentContainer *)persistentContainer { + // The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it. + @synchronized (self) { + if (_persistentContainer == nil) { + _persistentContainer = [[NSPersistentContainer alloc] initWithName:@"TaskList"]; + [_persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *storeDescription, NSError *error) { + if (error != nil) { + // Replace this implementation with code to handle the error appropriately. + // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + + /* + Typical reasons for an error here include: + * The parent directory does not exist, cannot be created, or disallows writing. + * The persistent store is not accessible, due to permissions or data protection when the device is locked. + * The device is out of space. + * The store could not be migrated to the current model version. + Check the error message to determine what the actual problem was. + */ + NSLog(@"Unresolved error %@, %@", error, error.userInfo); + abort(); + } + }]; + } + } + + return _persistentContainer; +} + +- (NSManagedObjectContext *)managedObjectContext { + if (_managedObjectContext != nil) { + return _managedObjectContext; + } + NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator]; + if (!coordinator) { + return nil; + } + _managedObjectContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSMainQueueConcurrencyType]; + [_managedObjectContext setPersistentStoreCoordinator:coordinator]; + return _managedObjectContext; +} + +#pragma mark - Core Data Saving support + +- (void)saveContext { + NSManagedObjectContext *context = self.persistentContainer.viewContext; + NSError *error = nil; + if ([context hasChanges] && ![context save:&error]) { + // Replace this implementation with code to handle the error appropriately. + // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + NSLog(@"Unresolved error %@, %@", error, error.userInfo); + abort(); + } +} + +@end diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/LaunchScreen.storyboard" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fdf3f97 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/Main.storyboard" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..d9997ae --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Base.lproj/Main.storyboard" @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Info.plist" new file mode 100644 index 0000000..d052473 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/Info.plist" @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/.xccurrentversion" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/.xccurrentversion" new file mode 100644 index 0000000..b7ada02 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/.xccurrentversion" @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + TaskList.xcdatamodel + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/TaskList.xcdatamodel/contents" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/TaskList.xcdatamodel/contents" new file mode 100644 index 0000000..aff2fc3 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/TaskList.xcdatamodeld/TaskList.xcdatamodel/contents" @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.h" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.h" new file mode 100644 index 0000000..62058eb --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.h" @@ -0,0 +1,15 @@ +// +// ViewController.h +// TaskList +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.m" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.m" new file mode 100644 index 0000000..7ae2e02 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/ViewController.m" @@ -0,0 +1,92 @@ +// +// ViewController.m +// TaskList +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import "ViewController.h" +#import "AppDelegate.h" +#import + +@interface ViewController () +@property (weak, nonatomic) IBOutlet UITextField *inputTextField; +@property (weak, nonatomic) IBOutlet UITableView *taskTableView; + +@property(strong,nonatomic) NSMutableArray *taskArray; +@property(strong,nonatomic) NSArray *arr; + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + //加载数据库文件; + NSManagedObjectContext *context = [(AppDelegate*)[[UIApplication sharedApplication] delegate] managedObjectContext]; + NSFetchRequest *fetchData = [[NSFetchRequest alloc] initWithEntityName:@"Task"]; + self.arr = [context executeFetchRequest:fetchData error:nil]; + self.taskArray = [[NSMutableArray alloc] initWithArray:[self.arr valueForKey:@"taskname"]]; +} + +//cell +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ + return self.taskArray.count; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCell" forIndexPath:indexPath]; + + cell.textLabel.text = [self.taskArray objectAtIndex:indexPath.row]; + return cell; +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (IBAction)addTaskButtonClick:(id)sender { + NSString *inputStr = [[NSMutableString alloc] initWithFormat:@"%@",self.inputTextField.text]; + inputStr = [inputStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; + + //如果输入为空则不添加; + if ([inputStr isEqual: @""]) { + + UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"输入的内容不能为空" preferredStyle:UIAlertControllerStyleAlert]; + [alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:nil]]; + [self presentViewController:alert animated:true completion:nil]; + } else { + + //点击按钮,就把该数据存储到CoreData中 + [self saveToCoreData:inputStr]; + //把文本存储到taskArray数组中 + [self.taskArray insertObject:self.inputTextField.text atIndex:self.taskArray.count]; + [self.taskTableView reloadData]; + //清空输入框 + self.inputTextField.text = nil; + //隐藏软键盘 + [self.inputTextField resignFirstResponder]; + } +} + +//保存数据到CoreData +- (void) saveToCoreData:(NSString *)taskName{ + + NSManagedObjectContext *context = [(AppDelegate*)[[UIApplication sharedApplication] delegate] managedObjectContext]; + NSManagedObject *row = [NSEntityDescription insertNewObjectForEntityForName:@"Task" inManagedObjectContext:context]; + [row setValue:taskName forKey:@"taskname"]; + [context save:nil]; + NSLog(@"已保存到数据库"); +} + +//隐藏软键盘(滚动时) +- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ + [self.inputTextField resignFirstResponder]; +} + +@end diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/main.m" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/main.m" new file mode 100644 index 0000000..c381890 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskList/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// TaskList +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. 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/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/TaskListTests.m" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/TaskListTests.m" new file mode 100644 index 0000000..10c48f1 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListTests/TaskListTests.m" @@ -0,0 +1,39 @@ +// +// TaskListTests.m +// TaskListTests +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface TaskListTests : XCTestCase + +@end + +@implementation TaskListTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/Info.plist" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/Info.plist" new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/TaskListUITests.m" "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/TaskListUITests.m" new file mode 100644 index 0000000..62c2ff2 --- /dev/null +++ "b/21651161\350\202\226\346\242\246\345\251\267/project03/TaskList/TaskListUITests/TaskListUITests.m" @@ -0,0 +1,40 @@ +// +// TaskListUITests.m +// TaskListUITests +// +// Created by xmt on 16/10/23. +// Copyright © 2016年 xmt. All rights reserved. +// + +#import + +@interface TaskListUITests : XCTestCase + +@end + +@implementation TaskListUITests + +- (void)setUp { + [super setUp]; + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end