From 5e79e3f24f87c0ca0e0ebee80579d50a887e2294 Mon Sep 17 00:00:00 2001 From: GitHubChenYi <1226913499@qq.com> Date: Wed, 26 Oct 2016 20:13:30 +0800 Subject: [PATCH] HW 2 && 3 Homework 2 and 3. --- .../project01/README.md" | 0 .../project02/README.md" | 10 + .../project02/iPhoneCal/._.DS_Store" | Bin 0 -> 4096 bytes .../iPhoneCal.xcodeproj/project.pbxproj" | 495 ++++++++++++++++++ .../iPhoneCal/iPhoneCal/._.DS_Store" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._AppDelegate.h" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._AppDelegate.m" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._CalMonth.h" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._CalMonth.m" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._ViewController.h" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/._ViewController.m" | Bin 0 -> 4096 bytes .../iPhoneCal/._iPhoneCal-Prefix.pch" | Bin 0 -> 4096 bytes .../project02/iPhoneCal/iPhoneCal/._main.m" | Bin 0 -> 4096 bytes .../iPhoneCal/iPhoneCal/AppDelegate.h" | 15 + .../iPhoneCal/iPhoneCal/AppDelegate.m" | 46 ++ .../iPhoneCal/Base.lproj/._.DS_Store" | Bin 0 -> 4096 bytes .../Base.lproj/._Main_iPad.storyboard" | Bin 0 -> 4096 bytes .../Base.lproj/Main_iPad.storyboard" | 30 ++ .../Base.lproj/Main_iPhone.storyboard" | 63 +++ .../project02/iPhoneCal/iPhoneCal/CalMonth.h" | 29 + .../project02/iPhoneCal/iPhoneCal/CalMonth.m" | 194 +++++++ .../iPhoneCal/Images.xcassets/._.DS_Store" | Bin 0 -> 4096 bytes .../AppIcon.appiconset/._.DS_Store" | Bin 0 -> 4096 bytes .../AppIcon.appiconset/._Contents.json" | Bin 0 -> 4096 bytes .../AppIcon.appiconset/Contents.json" | 53 ++ .../LaunchImage.launchimage/._.DS_Store" | Bin 0 -> 4096 bytes .../LaunchImage.launchimage/._Contents.json" | Bin 0 -> 4096 bytes .../LaunchImage.launchimage/Contents.json" | 51 ++ .../iPhoneCal/iPhoneCal/ViewController.h" | 13 + .../iPhoneCal/iPhoneCal/ViewController.m" | 60 +++ .../iPhoneCal/iPhoneCal/en.lproj/._.DS_Store" | Bin 0 -> 4096 bytes .../iPhoneCal/en.lproj/._InfoPlist.strings" | Bin 0 -> 4096 bytes .../iPhoneCal/en.lproj/InfoPlist.strings" | 2 + .../iPhoneCal/iPhoneCal/iPhoneCal-Info.plist" | 49 ++ .../iPhoneCal/iPhoneCal/iPhoneCal-Prefix.pch" | 16 + .../project02/iPhoneCal/iPhoneCal/main.m" | 18 + .../iPhoneCalTests/._iPhoneCalTests.m" | Bin 0 -> 4096 bytes .../en.lproj/._InfoPlist.strings" | Bin 0 -> 4096 bytes .../en.lproj/InfoPlist.strings" | 2 + .../iPhoneCalTests/iPhoneCalTests-Info.plist" | 22 + .../iPhoneCalTests/iPhoneCalTests.m" | 34 ++ .../project03/README.md" | 26 + .../project03/TaskList/._.DS_Store" | Bin 0 -> 4096 bytes .../TaskList.xcodeproj/project.pbxproj" | 471 +++++++++++++++++ .../project03/TaskList/TaskList/._.DS_Store" | Bin 0 -> 4096 bytes .../TaskList/TaskList/._AppDelegate.h" | Bin 0 -> 4096 bytes .../TaskList/TaskList/._AppDelegate.m" | Bin 0 -> 4096 bytes .../TaskList/TaskList/._TaskList-Prefix.pch" | Bin 0 -> 4096 bytes .../TaskList/TaskList/._ViewController.h" | Bin 0 -> 4096 bytes .../TaskList/TaskList/._ViewController.m" | Bin 0 -> 4096 bytes .../project03/TaskList/TaskList/._main.m" | Bin 0 -> 4096 bytes .../TaskList/TaskList/AppDelegate.h" | 15 + .../TaskList/TaskList/AppDelegate.m" | 55 ++ .../TaskList/TaskList/Base.lproj/._.DS_Store" | Bin 0 -> 4096 bytes .../TaskList/Base.lproj/Main.storyboard" | 69 +++ .../TaskList/Images.xcassets/._.DS_Store" | Bin 0 -> 4096 bytes .../AppIcon.appiconset/._Contents.json" | Bin 0 -> 4096 bytes .../AppIcon.appiconset/Contents.json" | 23 + .../LaunchImage.launchimage/._Contents.json" | Bin 0 -> 4096 bytes .../LaunchImage.launchimage/Contents.json" | 23 + .../TaskList/TaskList/TaskList-Info.plist" | 40 ++ .../TaskList/TaskList/TaskList-Prefix.pch" | 16 + .../TaskList/TaskList/ViewController.h" | 14 + .../TaskList/TaskList/ViewController.m" | 145 +++++ .../TaskList/TaskList/en.lproj/._.DS_Store" | Bin 0 -> 4096 bytes .../TaskList/en.lproj/._InfoPlist.strings" | Bin 0 -> 4096 bytes .../TaskList/en.lproj/InfoPlist.strings" | 2 + .../project03/TaskList/TaskList/main.m" | 18 + .../TaskList/TaskListTests/._.DS_Store" | Bin 0 -> 4096 bytes .../TaskList/TaskListTests/._TaskListTests.m" | Bin 0 -> 4096 bytes .../TaskListTests/TaskListTests-Info.plist" | 22 + .../TaskList/TaskListTests/TaskListTests.m" | 34 ++ .../TaskListTests/en.lproj/._.DS_Store" | Bin 0 -> 4096 bytes .../en.lproj/._InfoPlist.strings" | Bin 0 -> 4096 bytes .../TaskListTests/en.lproj/InfoPlist.strings" | 2 + 75 files changed, 2177 insertions(+) rename "21651145\351\231\210\344\273\252/README.md" => "21651145\351\231\210\344\273\252/project01/README.md" (100%) create mode 100644 "21651145\351\231\210\344\273\252/project02/README.md" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal.xcodeproj/project.pbxproj" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._AppDelegate.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._AppDelegate.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._CalMonth.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._CalMonth.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._ViewController.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._ViewController.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._iPhoneCal-Prefix.pch" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._main.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._Main_iPad.storyboard" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPad.storyboard" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPhone.storyboard" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/LaunchImage.launchimage/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/LaunchImage.launchimage/._Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/LaunchImage.launchimage/Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/ViewController.h" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/ViewController.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/iPhoneCal-Info.plist" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/iPhoneCal-Prefix.pch" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/main.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/._iPhoneCalTests.m" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/en.lproj/._InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/en.lproj/InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests-Info.plist" create mode 100644 "21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/README.md" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList.xcodeproj/project.pbxproj" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._AppDelegate.h" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._AppDelegate.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._TaskList-Prefix.pch" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._ViewController.h" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._ViewController.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._main.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.h" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Base.lproj/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Base.lproj/Main.storyboard" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/AppIcon.appiconset/._Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/AppIcon.appiconset/Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/LaunchImage.launchimage/._Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/LaunchImage.launchimage/Contents.json" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/TaskList-Info.plist" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/TaskList-Prefix.pch" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.h" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskList/main.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/._TaskListTests.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/TaskListTests-Info.plist" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/TaskListTests.m" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/._.DS_Store" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/._InfoPlist.strings" create mode 100644 "21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/InfoPlist.strings" diff --git "a/21651145\351\231\210\344\273\252/README.md" "b/21651145\351\231\210\344\273\252/project01/README.md" similarity index 100% rename from "21651145\351\231\210\344\273\252/README.md" rename to "21651145\351\231\210\344\273\252/project01/README.md" diff --git "a/21651145\351\231\210\344\273\252/project02/README.md" "b/21651145\351\231\210\344\273\252/project02/README.md" new file mode 100644 index 0000000..44565ff --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/README.md" @@ -0,0 +1,10 @@ +功能:在iPhone(模拟器)上根据日期选择打印出一个月历。当然只有改变年、月才有变化。 + +不好意思,没有将第一个作业生成framework再导入,而是直接将CalMonth.h和CalMonth.m文件添加进来。 + +本次作业的详细代码都在storyboard和ViewController.m中。 + +显示月历用的是UILabel控件,用sizeThatFits和setFrame方法实现自适应调整大小显示内容。 +控件是用代码添加,没直接拖到storyboard上。因为如果那样做,不知道为什么程序进入的时候不会自适应调整大小显示内容。 + +用到DatePick控件,其value changed事件的回调方法是:- (IBAction)onYearOrMonthChanged:(id)sender \ No newline at end of file diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/._.DS_Store" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..a3d695155b98bacae6e9885f1f713da8d2f67d27 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ne+ zQ{q4xL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nes z_Q7&HL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vQo3Qd z8=`|@4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v>Pc8E z4bj0c2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0{{TbDrEow literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._CalMonth.h" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._CalMonth.h" new file mode 100644 index 0000000000000000000000000000000000000000..aee6690a07c160990c44abc11e63f432bbb3aeea GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v(%iY} zE<^{z9H4T3G%bukK2%&hIX_n~v7jI)RWBs9qQo^XIX@*cFCD0$v?NW}!rIW-#K_Rx z(!vDIh*9on2#kinXb6mkz-S1JhQMeDjE2By2#kinXb6mkz-S1dh5)Fu3Bq6?7m|@# ztWcC%oL^d$oT`wPUzDwonOBmUSCW~Zmza}NsgRSJR-%xUlbDwc>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vD$x8W z3(>(a2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0|3!lDq;Wt literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._ViewController.h" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._ViewController.h" new file mode 100644 index 0000000000000000000000000000000000000000..1c8abe7858a4481220daab35fbc6b7213fecaeab GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vIx6)( z2%>{w4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vYVjz( z1ku4T2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0{~1BD$D=? literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._iPhoneCal-Prefix.pch" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/._iPhoneCal-Prefix.pch" new file mode 100644 index 0000000000000000000000000000000000000000..cd858f790814272da85637d3ce0950f3bf3f978f GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v+Us+{ z8=`|@4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v`eWy1 z4AH?b2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0|3n6Dslh- literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.h" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.h" new file mode 100644 index 0000000..251fb5f --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.h" @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// iPhoneCal +// +// Created by iOSChenYi on 16-10-15. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.m" new file mode 100644 index 0000000..ce37e65 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/AppDelegate.m" @@ -0,0 +1,46 @@ +// +// AppDelegate.m +// iPhoneCal +// +// Created by iOSChenYi on 16-10-15. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import "AppDelegate.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._.DS_Store" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..157d2ff2be505284a37cf753066f46f458d5d543 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ne+ z;{3!4hzoE9~J-r literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._Main_iPad.storyboard" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/._Main_iPad.storyboard" new file mode 100644 index 0000000000000000000000000000000000000000..d3f22c4e1364c35266c787524717fd7c48c228b6 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vn)&M4 zErVgEB*ig literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPad.storyboard" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPad.storyboard" new file mode 100644 index 0000000..4edef30 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPad.storyboard" @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPhone.storyboard" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPhone.storyboard" new file mode 100644 index 0000000..3097629 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Base.lproj/Main_iPhone.storyboard" @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +VFppZgAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAC5AAAABAAAABCepkign7sVkKCGKqChmveQ +y4kaoNIj9HDSYSYQ1v50INiArZDa/tGg28CQENzes6DdqayQ3r6VoN+JjpDgnneg4WlwkOJ+WaDjSVKQ +5F47oOUpNJDmR1gg5xJREOgnOiDo8jMQ6gccIOrSFRDr5v4g7LH3EO3G4CDukdkQ76/8oPBxuxDxj96g +8n/BkPNvwKD0X6OQ9U+ioPY/hZD3L4Sg+CiiEPkPZqD6CIQQ+viDIPvoZhD82GUg/chIEP64RyD/qCoQ +AJgpIAGIDBACeAsgA3EokARhJ6AFUQqQBkEJoAcw7JAHjUOgCRDOkAmtvyAK8LCQC+CvoAzZzRANwJGg +DrmvEA+priAQmZEQEYmQIBJ5cxATaXIgFFlVEBVJVCAWOTcQFyk2IBgiU5AZCRggGgI1kBryNKAb4heQ +HNIWoB3B+ZAesfigH6HbkCB2KyAhgb2QIlYNICNq2hAkNe8gJUq8ECYV0SAnKp4QJ/7toCkKgBAp3s+g +KupiECu+saAs036QLZ6ToC6zYJAvfnWgMJNCkDFnkiAycySQM0d0IDRTBpA1J1YgNjLokDcHOCA4HAUQ +OOcaIDn75xA6xvwgO9vJEDywGKA9u6sQPo/6oD+bjRBAb9ygQYSpkEJPvqBDZIuQRC+goEVEbZBF89Mg +Ry2KEEfTtSBJDWwQSbOXIErtThBLnLOgTNZqkE18laBOtkyQT1x3oFCWLpBRPFmgUnYQkFMcO6BUVfKQ +VPwdoFY11JBW5TogWB7xEFjFHCBZ/tMQWqT+IFvetRBchOAgXb6XEF5kwiBfnnkQYE3eoGGHlZBiLcCg +Y2d3kGQNoqBlR1mQZe2EoGcnO5BnzWagaQcdkGmtSKBq5v+Qa5ZlIGzQHBBtdkcgbq/+EG9WKSBwj+AQ +cTYLIHJvwhBzFe0gdE+kEHT/CaB2OMCQdt7roHgYopB4vs2gefiEkHqer6B72GaQfH6RoH24SJB+XnOg +f5gqkAABAAECAwEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA +AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA +AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEA +AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA + + + + + + + + + + + + + + + + + + + + diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.h" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.h" new file mode 100644 index 0000000..ec6e238 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.h" @@ -0,0 +1,29 @@ +// +// CalMonth.h +// CalPrint +// +// Created by iOSChenYi on 16-10-2. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import + +@interface CalMonth : NSObject +@property NSUInteger year; +@property NSUInteger month; + +//灏嗚繖涓湀鐨勬瘡涓琛岃緭鍑烘斁鍒發ines涓紝鎻愰珮澶嶇敤鏁堢巼锛屽苟涓斾緵CalYear蹇熶娇鐢ㄣ +@property NSMutableArray *lines; +//鏄惁鏈夛紞j杩欎釜option銆傦紞j鐢ㄦ潵杈撳嚭杩欎釜鏈堟瘡涓澶╂槸杩欎竴骞寸殑绗嚑澶┿ +@property bool jFlag; + +- (NSUInteger) numOfDay; +- (NSUInteger) weekDayOfFirstDay; +- (NSUInteger) indexOfFirstDay; +- (id) init; +- (id) initWithMonth:(NSUInteger)month withJFlag:(bool)flag; +- (id) initWithYear:(NSUInteger)year andMonth:(NSUInteger) month; +- (NSString *) toString; +- (NSDate *) date; +- (void) setLines; +@end diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.m" new file mode 100644 index 0000000..4aa909d --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/CalMonth.m" @@ -0,0 +1,194 @@ +// +// CalMonth.m +// CalPrint +// +// Created by iOSChenYi on 16-10-2. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import "CalMonth.h" + +@implementation CalMonth + +//璁$畻涓涓湀鏈夊灏戝ぉ +- (NSUInteger) numOfDay +{ + NSCalendar *cal=[NSCalendar currentCalendar]; + + NSDate *date=[self date]; + + NSRange range=[cal rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:date]; + NSUInteger numOfDay=range.length; + + return numOfDay; +} + +//璁$畻姣忎釜鏈堢涓澶╂槸杩欎竴鍛ㄧ殑绗嚑澶┿傛槦鏈熸棩涓虹涓澶╋紝鏄熸湡涓涓虹浜屽ぉ锛屼緷姝ょ被鎺ㄣ +- (NSUInteger) weekDayOfFirstDay +{ + NSCalendar *cal=[NSCalendar currentCalendar]; + + NSDate *firstDay=[self date]; + NSUInteger weekday=[cal ordinalityOfUnit:NSDayCalendarUnit inUnit:NSWeekCalendarUnit forDate:firstDay]; + + return weekday; +} + +//璁$畻姣忎釜鏈堢涓澶╂槸涓骞翠腑鐨勭鍑犲ぉ +- (NSUInteger) indexOfFirstDay +{ + NSCalendar *cal=[NSCalendar currentCalendar]; + + NSDate *firstDay=[self date]; + NSUInteger index=[cal ordinalityOfUnit:NSDayCalendarUnit inUnit:NSYearCalendarUnit forDate:firstDay]; + + return index; +} + +- (id)init +{ + self=[super init]; + if(self) + { + NSDate *today=[NSDate date]; + NSCalendar *cal=[NSCalendar currentCalendar]; + + //寰楀埌浠婂ぉ鏄摢涓骞村摢涓鏈堛 + NSDateComponents *comps=[cal components:NSCalendarUnitYear|NSCalendarUnitMonth fromDate:today]; + + [self setYear:[comps year]]; + [self setMonth:[comps month]]; + + [self setLines]; + } + return self; +} + +- (id) initWithMonth:(NSUInteger) month withJFlag:(bool)flag +{ + self=[super init]; + if(self) + { + NSDate *today=[NSDate date]; + NSCalendar *cal=[NSCalendar currentCalendar]; + + NSDateComponents *comps=[cal components:NSCalendarUnitYear fromDate:today]; + + [self setYear:[comps year]]; + [self setMonth:month]; + [self setJFlag:flag]; + + [self setLines]; + } + return self; +} + +- (id) initWithYear:(NSUInteger)year andMonth:(NSUInteger)month +{ + self=[super init]; + if(self) + { + [self setYear:year]; + [self setMonth:month]; + + [self setLines]; + } + return self; +} + +//鏍煎紡鍖栬緭鍑鸿繖涓湀 +- (NSString *) toString +{ + NSMutableString *output=[NSMutableString stringWithFormat:@""]; + + NSArray *months=@[@"涓", @"浜", @"涓", + @"鍥", @"浜", @"鍏", + @"涓", @"鍏", @"涔", + @"鍗", @"鍗佷竴", @"鍗佷簩"]; + + //璁剧疆绗竴琛屾渶鍓嶉潰鐨勭┖鐧 + if ([self month]<=10) { + [output appendFormat:@" "]; + } else { + [output appendFormat:@" "]; + } + [output appendFormat:@"%@鏈 %d", [months objectAtIndex:[self month]-1], [self year]]; + + [output appendFormat:@"\n鏃 涓 浜 涓 鍥 浜 鍏璡n"]; + + for(NSString *line in [self lines]) + { + [output appendString:line]; + } + //涓涓湀鍙兘杈撳嚭鍙湁浜旇鏁板瓧锛屾寜鐓х郴缁焎al鐨勪範鎯紝蹇呴』鏈夊叚琛屻 + if ([[self lines] count]<6) { + [output appendString:@"\n"]; + } + return output; +} + +- (void) setLines +{ + //鍒濆鍖杔ines + _lines=[[NSMutableArray alloc] init]; + NSMutableString *output=[NSMutableString stringWithFormat:@""]; + + unsigned long weekday=[self weekDayOfFirstDay]; + unsigned long index=[self indexOfFirstDay]; + unsigned long numOfDay=[self numOfDay]; + + //鍒濆鍖栫涓琛屾渶鍓嶉潰鐨勭┖鐧姐 + for(int i=0; i$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nec z%q3F<(ZNuGRne&6Xb6mkz-S1JhQMeDjE2By2#kinXb6mkz-S1JhQMeDP&ot`f#!iQ z7|4ZWWELwFr55Lx7A2=Dq~#Z7D`e)Cq~?`m=I15m4jn|NjF3KB66w literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._.DS_Store" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..6e973814473c86090098d6ab27015047575c6f28 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nec zaHpyTqJyCVtD;fC(GVC7fzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@RpmGQ>0?h+q zFpvw$$ShVUN-fSWElN&RNXswER>;gNNzE(C%+E{A$*EMxNlhzJNXkjf%LaCJp}K}N Ph3bE}S7aFE{{II6z*8R3 literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._Contents.json" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/AppIcon.appiconset/._Contents.json" new file mode 100644 index 0000000000000000000000000000000000000000..dbe787ba3a1b94f2e324b63d33895f91315b93ef GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v;(75$ z0HT9o4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ndR zr%@;cqJyCVtD;fC(GVC7fzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@RpmGQ>0?h+q zFpvw$$ShVUN-fSWElN&RNXswER>;gNNzE(C%+E{A$*EMxNlhzJNXkjf%LaCJp}K}N Ph3bE}S7aFE{{II6im)Cj literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/LaunchImage.launchimage/._Contents.json" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/Images.xcassets/LaunchImage.launchimage/._Contents.json" new file mode 100644 index 0000000000000000000000000000000000000000..d1a45bd5d56ccc6db25712bd011793cc5734b6d9 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v;@ibA z7ovk<4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE| + +@interface ViewController : UIViewController + +@end diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/ViewController.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/ViewController.m" new file mode 100644 index 0000000..8f2a2b5 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/ViewController.m" @@ -0,0 +1,60 @@ +// +// ViewController.m +// iPhoneCal +// +// Created by iOSChenYi on 16-10-15. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import "ViewController.h" +#import "CalMonth.h" + +@interface ViewController () + +@end + +@implementation ViewController +{ + UILabel* label; +} +- (IBAction)onYearOrMonthChanged:(id)sender { + NSDate *date=[sender date]; + NSCalendar *cal=[NSCalendar currentCalendar]; + NSDateComponents *comps=[cal components:NSCalendarUnitYear|NSCalendarUnitMonth fromDate:date]; + + CalMonth *month=[[CalMonth alloc] initWithYear:[comps year] andMonth:[comps month]]; + + [self outputToLabel:month]; +} + +- (void)outputToLabel:(CalMonth*)month +{ + [label setNumberOfLines:0]; + [label setText:[month toString]]; + + CGRect screen=[[UIScreen mainScreen] bounds]; + + CGSize expectSize=[label sizeThatFits:CGSizeMake(screen.size.width, screen.size.height)]; + + [label setFrame:CGRectMake((screen.size.width-expectSize.width)/2, 15, expectSize.width, expectSize.height)]; + + [[self view] addSubview:label]; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + label=[[UILabel alloc] init]; + + CalMonth *month=[[CalMonth alloc] init]; + [self outputToLabel:month]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._.DS_Store" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..87c63d46ad14465be130245aa4b6a0ca1ef37ecc GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nfn zf5I0fhz^DdtcpejM?+vV1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONfXX4j2s96b z!9Xq~BePhcD784hv?w`MAuYcsTOl*ABsH%jGe0jeC#O;&CpE1^At@&@FB{m^h3Xp8 P6srH>UXfvt`~M#ROmZJP literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._InfoPlist.strings" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/en.lproj/._InfoPlist.strings" new file mode 100644 index 0000000000000000000000000000000000000000..6f747d6715f8a65fe593cae556535efc64313d7a GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vD!F&F z7ovk<4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE| + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.ChenYi.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main_iPhone + UIMainStoryboardFile~ipad + Main_iPad + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/iPhoneCal-Prefix.pch" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/iPhoneCal-Prefix.pch" new file mode 100644 index 0000000..82a2bb4 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/iPhoneCal-Prefix.pch" @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/main.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/main.m" new file mode 100644 index 0000000..3c9496f --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCal/main.m" @@ -0,0 +1,18 @@ +// +// main.m +// iPhoneCal +// +// Created by iOSChenYi on 16-10-15. +// Copyright (c) 2016骞 ChenYi. 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/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/._iPhoneCalTests.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/._iPhoneCalTests.m" new file mode 100644 index 0000000000000000000000000000000000000000..4eefce28d3ea40e3fa0b2141e6d24a313e00a05e GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vn*Y_? z45EW!4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vI=%1L zH;4{~IY8z7Xj&M7e5km1a(=E}VnIPps$NKHMTu)(a(+r?UOG@gX-S%{g|(rviIJhX zrG*Ka5u@DE5Eu=C(GVC7fzc2c4S~@R7!85Z5Eu=C(GVC7fzc2^4FOPR6NJG)E+iwf zSfMDjIKQ+gIaMJozbIQFGp{5yuOu@+FEJ;lQXwZbtwbRyCowM@*cXQC8qyT1|KVPd JVUYX(9{^9QEHnTB literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/en.lproj/InfoPlist.strings" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/en.lproj/InfoPlist.strings" new file mode 100644 index 0000000..477b28f --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/en.lproj/InfoPlist.strings" @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests-Info.plist" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests-Info.plist" new file mode 100644 index 0000000..fd77c6b --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests-Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.ChenYi.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git "a/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests.m" "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests.m" new file mode 100644 index 0000000..90f8c3e --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project02/iPhoneCal/iPhoneCalTests/iPhoneCalTests.m" @@ -0,0 +1,34 @@ +// +// iPhoneCalTests.m +// iPhoneCalTests +// +// Created by iOSChenYi on 16-10-15. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import + +@interface iPhoneCalTests : XCTestCase + +@end + +@implementation iPhoneCalTests + +- (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 +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git "a/21651145\351\231\210\344\273\252/project03/README.md" "b/21651145\351\231\210\344\273\252/project03/README.md" new file mode 100644 index 0000000..3ea9322 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/README.md" @@ -0,0 +1,26 @@ +功能:任务管理列表。可以添加、删除、显示完整内容、移动列表行、保存列表。 + +因为是在上课之前就独立完成的,所以主要用到了storyboard、ViewController.m和AppDelegate.m文件。 + +输入内容用到了UITextView控件,不是UITextField,所以输入区域会大一点。 +其边框是在代码中自己瞎写的。请不要嫌丑。 +不知道为什么UITextView控件默认无边框,而且在storyboard中没有这个选项。哭…… + +添加的时候点击Add,可以隐藏软键盘。事件触发的方法为:- (IBAction)addTask:(UIButton *)sender。 +新添加的任务显示在列表最上方。并且无论列表当前滚动到哪里,都会滚动回第一条来进行显示。 + +可以通过左滑列表行来进行删除操作。 + +因为一行可能显示不全任务内容,所以可以通过单击列表行来弹出一个简单的UIAlertView控件来显示完整内容。 + +Edit按键是仿照iPhone通讯录的设计,点击后会进入列表行编辑模式。 +在此模式下,无法进行左滑删除操作和单击行事件,必须点击左边的红圆圈来删除。 +还可以进行移动列表行的操作。 +最后点击Done按键退出此模式。 +在这里吐槽一下,并不理解为什么要有这么严格的行编辑模式。 + +有数据持久化功能。用的是读写Documentation下的Tasks.plist文件。 +是在viewDidLoad方法中加载数据。 +在applicationDidEnterBackground和applicationWillTerminate方法中获得rootViewController来保存列表。 + +最后,点击空白处可以隐藏软键盘,只要你找得到……额,在列表上的空白处是没有用的,因为我没写。 \ No newline at end of file diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..c41fcf257750d766dead2385539089c71d87a81c GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ne6 zbhDchL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ne+ z^?y_eL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vdM|y( z8KQ$>4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|D%1b~ literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._AppDelegate.m" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._AppDelegate.m" new file mode 100644 index 0000000000000000000000000000000000000000..848b63138abeceaffc50a60fc050864b9f6f9378 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vD*cqO z6{3S-4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE|ncD literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._TaskList-Prefix.pch" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._TaskList-Prefix.pch" new file mode 100644 index 0000000000000000000000000000000000000000..35f74f72904411bfbccef6cdd3d10f19546e79ba GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vs#7TW z3emwZ2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0|2itD#8E& literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._ViewController.h" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/._ViewController.h" new file mode 100644 index 0000000000000000000000000000000000000000..78c9f4b42216a32e36c30d308725a2746be73c49 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vIy`B! zEJO#x9H4T3G%bukK2%&hIX_n~v7jI)RWBs9qQo^XIX@*cFCD0$v?NW}!rIW-#K_Rx z(!vDIh*9on2#kinXb6mkz-S1JhQMeDjE2By2#kinXb6mkz-S1dh5)Fu3Bq6?7m|@# ztWcC%oL^d$oT`wPUzDwonOBmUSCW~Zmza}NsgRSJR-%xUlbDwc>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v+PLOV zAVdel9H4T3G%bukK2%&hIX_n~v7jI)RWBs9qQo^XIX@*cFCD0$v?NW}!rIW-#K_Rx z(!vDIh*9on2#kinXb6mkz-S1JhQMeDjE2By2#kinXb6mkz-S1dh5)Fu3Bq6?7m|@# ztWcC%oL^d$oT`wPUzDwonOBmUSCW~Zmza}NsgRSJR-%xUlbDwc>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v62BAW z2+_eX2dJDMO$#HC4;2?r&d=3LEGWoH)eA|jC~?h8&QHnAO9v__ElJb0ur@R{F)}o_ zv@k(4Vw5`?0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71=Apq)Zf-o4!g=AzF zD-@*`=a&{Grz)i77iBAC=9Q%8m1O4UCFbN*D&(Z5l_(_TB<5uU`@&FNLz+VMKin%a J408Yf0{}_#DoFqU literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.h" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.h" new file mode 100644 index 0000000..ad19584 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.h" @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// TaskList +// +// Created by iOSChenYi on 16-10-18. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.m" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.m" new file mode 100644 index 0000000..728fbcb --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/AppDelegate.m" @@ -0,0 +1,55 @@ +// +// AppDelegate.m +// TaskList +// +// Created by iOSChenYi on 16-10-18. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import "AppDelegate.h" +#import "ViewController.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + UIViewController* v=self.window.rootViewController; + if ([v isKindOfClass:[ViewController class]]) { + [(ViewController*)v saveTaskList]; + } +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + UIViewController* v=self.window.rootViewController; + if ([v isKindOfClass:[ViewController class]]) { + [(ViewController*)v saveTaskList]; + } +} + +@end diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Base.lproj/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Base.lproj/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..35038ba76cf92b7d9ce524b239025b938793b113 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ne+ zS#Y`tL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..f09aaa904b4cdbd37c76777e01fe9aa37d29de14 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nec zb@3cfH%JFV1y)6)f}Oyr5 QX$sZBh08Yssr~m)} literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/AppIcon.appiconset/._Contents.json" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/Images.xcassets/AppIcon.appiconset/._Contents.json" new file mode 100644 index 0000000000000000000000000000000000000000..0e50879227674b94345682be79deab83f3ec915e GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v+WTv- z4MYdS9H4T3G%bukK2%&hIX_n~v7jI)RWBs9qQo^XIX@*cFCD0$v?NW}!rIW-#K_Rx z(!vDIh*9on2#kinXb6mkz-S1JhQMeDjE2By2#kinXb6mkz-S1dh5)Fu3Bq6?7m|@# ztWcC%oL^d$oT`wPUzDwonOBmUSCW~Zmza}NsgRSJR-%xUlbDwc>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v5?I!J zAEJX{4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE| + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.ChenYi.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/TaskList-Prefix.pch" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/TaskList-Prefix.pch" new file mode 100644 index 0000000..82a2bb4 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/TaskList-Prefix.pch" @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.h" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.h" new file mode 100644 index 0000000..32132e9 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.h" @@ -0,0 +1,14 @@ +// +// ViewController.h +// TaskList +// +// Created by iOSChenYi on 16-10-18. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + +-(void)saveTaskList; +@end diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.m" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.m" new file mode 100644 index 0000000..322d0bb --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/ViewController.m" @@ -0,0 +1,145 @@ +// +// ViewController.m +// TaskList +// +// Created by iOSChenYi on 16-10-18. +// Copyright (c) 2016骞 ChenYi. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () +@property (weak, nonatomic) IBOutlet UITextView *inputTask; +@property (weak, nonatomic) IBOutlet UITableView *taskList; + + +@end + +@implementation ViewController +{ + NSMutableArray* list; + BOOL isEditing; +} + +- (IBAction)addTask:(UIButton *)sender { + NSString *task=[NSString stringWithString:[_inputTask text]]; + if (![task isEqual:@""]) + { + [_inputTask setText:@""]; + [_inputTask resignFirstResponder]; + + [list insertObject:task atIndex:0]; + + NSIndexPath *index=[NSIndexPath indexPathForRow:0 inSection:0]; + + [_taskList reloadData]; + [_taskList scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionTop animated:true]; + } +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"Sample"]; + + if(cell==nil) + { + cell=[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Sample"]; + } + NSUInteger row=[indexPath row]; + cell.textLabel.text=[list objectAtIndex:row]; + + return cell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + NSString *task=[list objectAtIndex:[indexPath row]]; + UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"Task" message:task delegate:self cancelButtonTitle:@"Return" otherButtonTitles:nil]; + [alert show]; +} + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return [list count]; +} + +- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath +{ + [list removeObjectAtIndex:[indexPath row]]; + [_taskList deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; +} + +- (IBAction)setEdit:(UIButton *)sender { + if (isEditing) { + [sender setTitle:@"Edit" forState:UIControlStateNormal]; + [_taskList setEditing:NO animated:NO]; + } else { + [sender setTitle:@"Done" forState:UIControlStateNormal]; + [_taskList setEditing:YES animated:YES]; + } + isEditing=!isEditing; + [_inputTask resignFirstResponder]; +} + +- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath +{ + return YES; +} + +- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath +{ + NSString* src=[list objectAtIndex:[sourceIndexPath row]]; + [list removeObjectAtIndex:[sourceIndexPath row]]; + [list insertObject:src atIndex:[destinationIndexPath row]]; + [_taskList reloadData]; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + [[_inputTask layer] setBorderWidth:1]; + [[_inputTask layer] setBorderColor:[[UIColor grayColor] CGColor]]; + [[_inputTask layer] setCornerRadius:10]; + + list=[NSMutableArray arrayWithContentsOfFile:[self fileName]]; + if(list==nil) + { + list=[[NSMutableArray alloc] init]; + } + + [_taskList setDelegate:self]; + [_taskList setDataSource:self]; + + isEditing=false; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + [_inputTask resignFirstResponder]; +} + +-(void)saveTaskList +{ + [list writeToFile:[self fileName] atomically:YES]; +} + +- (NSString*)fileName +{ + NSString *path=NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES).firstObject; + NSString *fileName=[path stringByAppendingString:@"Tasks.plist"]; + + return fileName; +} +@end diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..51ce699dbfb6b335b9349de6bd52f3f0f078975c GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nfn z`q$L}hz^DdtcpejM?+vV1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONfXX4j2s96b z!9Xq~BePhcD784hv?w`MAuYcsTOl*ABsH%jGe0jeC#O;&CpE1^At@&@FB{m^h3Xp8 P6srH>UXfvt`~M#Rd0ro& literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._InfoPlist.strings" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskList/en.lproj/._InfoPlist.strings" new file mode 100644 index 0000000000000000000000000000000000000000..a04ffb79ef63321b71101537a3fff02d4f9fe227 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v3Ye + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..989227dffdbd2d46ac51da82e7e393bddde85bd2 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nec z(zJOaL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vvSF#= zhUj3J160nBriBs6hl-0Q=jZAr78K;9>V>3Ml(^<4=ci=mr2`d|mZa%gSQ{Ff7#W&d zT9}|2G0Ghcfzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@R7!3i`5CC;HK^P3=LNYRo z6^c@e^Gl18Qx($ki?S6m^GZ_lN;32F5_57Y6>?J3N)(cE67#ZwePO7sAx)wBAMO + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.ChenYi.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/TaskListTests.m" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/TaskListTests.m" new file mode 100644 index 0000000..dc6fbf2 --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/TaskListTests.m" @@ -0,0 +1,34 @@ +// +// TaskListTests.m +// TaskListTests +// +// Created by iOSChenYi on 16-10-18. +// Copyright (c) 2016骞 ChenYi. 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 +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/._.DS_Store" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/._.DS_Store" new file mode 100644 index 0000000000000000000000000000000000000000..3b111cbf8eeece2bef7e1b0ba61e39b74c77462d GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!ndR zqienxL$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v;(wX< zAEJX{4p2EinifVNA1W@MoS&q9#3*+(1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0!Ljcs-1Yt0c3(3eV zRwzm>&Mz%WPE| literal 0 HcmV?d00001 diff --git "a/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/InfoPlist.strings" "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/InfoPlist.strings" new file mode 100644 index 0000000..477b28f --- /dev/null +++ "b/21651145\351\231\210\344\273\252/project03/TaskList/TaskListTests/en.lproj/InfoPlist.strings" @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ +