From fcfef587834b053465a872d4fbf1a6dcc7f93244 Mon Sep 17 00:00:00 2001 From: nvtu Date: Sun, 20 Aug 2017 02:00:14 +0700 Subject: [PATCH] Add my group screen, add API get group list and update member list or tweet list when change group --- LifeLog/LifeLog.xcodeproj/project.pbxproj | 18 ++ .../History/arrow_down.imageset/Contents.json | 21 ++ .../History/arrow_down.imageset/arrow_down.png | Bin 0 -> 527 bytes LifeLog/LifeLog/GroupDetailViewController.xib | 2 +- LifeLog/LifeLog/GroupObject.h | 1 + LifeLog/LifeLog/GroupObject.m | 11 + LifeLog/LifeLog/MyGroupViewController.h | 32 +++ LifeLog/LifeLog/MyGroupViewController.m | 251 +++++++++++++++++++++ LifeLog/LifeLog/MyGroupViewController.xib | 241 ++++++++++++++++++++ LifeLog/LifeLog/SNSViewController.m | 5 +- LifeLog/LifeLog/ServerAPI.h | 1 + LifeLog/LifeLog/ServerAPI.m | 55 ++++- 12 files changed, 633 insertions(+), 5 deletions(-) create mode 100644 LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/Contents.json create mode 100644 LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/arrow_down.png create mode 100644 LifeLog/LifeLog/MyGroupViewController.h create mode 100644 LifeLog/LifeLog/MyGroupViewController.m create mode 100644 LifeLog/LifeLog/MyGroupViewController.xib diff --git a/LifeLog/LifeLog.xcodeproj/project.pbxproj b/LifeLog/LifeLog.xcodeproj/project.pbxproj index cf94803..4fcd6f5 100644 --- a/LifeLog/LifeLog.xcodeproj/project.pbxproj +++ b/LifeLog/LifeLog.xcodeproj/project.pbxproj @@ -60,6 +60,8 @@ E9497FD51F46EC1100E6AF8D /* MemberObject.m in Sources */ = {isa = PBXBuildFile; fileRef = E9497FD41F46EC1100E6AF8D /* MemberObject.m */; }; E95F4CED1F475C6A00D27E80 /* CreateGroupViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E95F4CEB1F475C6A00D27E80 /* CreateGroupViewController.m */; }; E95F4CEE1F475C6A00D27E80 /* CreateGroupViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E95F4CEC1F475C6A00D27E80 /* CreateGroupViewController.xib */; }; + E95F4CF31F48B39200D27E80 /* MyGroupViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E95F4CF11F48B39200D27E80 /* MyGroupViewController.m */; }; + E95F4CF41F48B39200D27E80 /* MyGroupViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E95F4CF21F48B39200D27E80 /* MyGroupViewController.xib */; }; E9682E2E1F39675A00FE05A2 /* RankingTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = E9682E2C1F39675A00FE05A2 /* RankingTableViewCell.m */; }; E9682E2F1F39675A00FE05A2 /* RankingTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E9682E2D1F39675A00FE05A2 /* RankingTableViewCell.xib */; }; E968550A1F3C444900317CEF /* AutoTransButton.m in Sources */ = {isa = PBXBuildFile; fileRef = E96855091F3C444900317CEF /* AutoTransButton.m */; }; @@ -189,6 +191,9 @@ E95F4CEA1F475C6A00D27E80 /* CreateGroupViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CreateGroupViewController.h; sourceTree = ""; }; E95F4CEB1F475C6A00D27E80 /* CreateGroupViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CreateGroupViewController.m; sourceTree = ""; }; E95F4CEC1F475C6A00D27E80 /* CreateGroupViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CreateGroupViewController.xib; sourceTree = ""; }; + E95F4CF01F48B39200D27E80 /* MyGroupViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyGroupViewController.h; sourceTree = ""; }; + E95F4CF11F48B39200D27E80 /* MyGroupViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyGroupViewController.m; sourceTree = ""; }; + E95F4CF21F48B39200D27E80 /* MyGroupViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MyGroupViewController.xib; sourceTree = ""; }; E9682E2B1F39675A00FE05A2 /* RankingTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RankingTableViewCell.h; sourceTree = ""; }; E9682E2C1F39675A00FE05A2 /* RankingTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RankingTableViewCell.m; sourceTree = ""; }; E9682E2D1F39675A00FE05A2 /* RankingTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = RankingTableViewCell.xib; sourceTree = ""; }; @@ -441,6 +446,7 @@ 6E84E3AC1F27A954001EB88E /* SNS */ = { isa = PBXGroup; children = ( + E95F4CEF1F48B37100D27E80 /* MyGroup */, E95F4CE91F475C4B00D27E80 /* CreateGroup */, E933E6751F4050E6002926F5 /* GroupDetail */, E933E6671F3E0479002926F5 /* SeachGroup */, @@ -597,6 +603,16 @@ name = CreateGroup; sourceTree = ""; }; + E95F4CEF1F48B37100D27E80 /* MyGroup */ = { + isa = PBXGroup; + children = ( + E95F4CF01F48B39200D27E80 /* MyGroupViewController.h */, + E95F4CF11F48B39200D27E80 /* MyGroupViewController.m */, + E95F4CF21F48B39200D27E80 /* MyGroupViewController.xib */, + ); + name = MyGroup; + sourceTree = ""; + }; E99E13A71F336F0C00C78787 /* CustomView */ = { isa = PBXGroup; children = ( @@ -745,6 +761,7 @@ 6EF1630A1F29069300DA306C /* Localizable.strings in Resources */, 6E84E3B11F27A975001EB88E /* HomeViewController.xib in Resources */, 6E84E3B61F27A98B001EB88E /* HistoryViewController.xib in Resources */, + E95F4CF41F48B39200D27E80 /* MyGroupViewController.xib in Resources */, E933E66C1F3E04A6002926F5 /* SearchGroupViewController.xib in Resources */, E96855121F3C5D9A00317CEF /* SNSRecentTopicTableViewCell.xib in Resources */, E933E67A1F40513C002926F5 /* GroupDetailViewController.xib in Resources */, @@ -861,6 +878,7 @@ 6E84E3761F27A701001EB88E /* main.m in Sources */, E933E6701F3E09B6002926F5 /* SearchGroupTableViewCell.m in Sources */, 6E84E3B51F27A98B001EB88E /* HistoryViewController.m in Sources */, + E95F4CF31F48B39200D27E80 /* MyGroupViewController.m in Sources */, E9373E4D1F361A230059355A /* HistoryGraphObject.m in Sources */, E933E66B1F3E04A6002926F5 /* SearchGroupViewController.m in Sources */, 6E84E3BF1F27A9B1001EB88E /* SNSViewController.m in Sources */, diff --git a/LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/Contents.json b/LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/Contents.json new file mode 100644 index 0000000..48e8981 --- /dev/null +++ b/LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "arrow_down.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/arrow_down.png b/LifeLog/LifeLog/Assets.xcassets/History/arrow_down.imageset/arrow_down.png new file mode 100644 index 0000000000000000000000000000000000000000..5cd9ad86d3681bf8f07d65dcb6577505a9d0f9ca GIT binary patch literal 527 zcmV+q0`UEbP)-hJ00001b5ch_0zklh z#Q*>R32;bRa{vGr5&!@f5&>tQ(oz5b02y>eSaefwW^{L9a%BKbX=8G4b8lvJAWvpy zX=7!7?KN=#00EClL_t(&-tE~vOT$1I2k?x3pEOAa2c=5Y!O0Kc_b^ElK`8YFU!X$4 z!O6j?lZ&%2h=_wIh#d+J>g9!|v9yt%c}fckMaA4*o8u1tLm-g+$h|z_kyH~sW(>*bl^(}Zo?(jXGtxVRstG7Ec6oZk+5$!+*}a?J~3PfIO$2V4M$ zrrgBS>;8Mza;tm-`39x3Odv1X+Rb?GT`~u^EO#lT@00nTofJavy z{L<)R+QSXI_`LSP9(ei?VOHb1J_6uUCG0(z1rDAyk~K&hNdlL6lc9wqg(I?y!i&I0 zFpfB)#{`Luhcu4(IhX`V14rec{|}NDj#?#ia`$&6tY2C@0-fG+eb0s&Db*I85Fu&!u zwE{YWW+*p6n3A)b4Xmv?o@P0hgHErM(NU1r7WTJxcD&v+!#kE&-0asD_9w*+E?Dpt RpNIee002ovPDHLkV1n;c;%EQ> literal 0 HcmV?d00001 diff --git a/LifeLog/LifeLog/GroupDetailViewController.xib b/LifeLog/LifeLog/GroupDetailViewController.xib index 2d48257..0894bfe 100644 --- a/LifeLog/LifeLog/GroupDetailViewController.xib +++ b/LifeLog/LifeLog/GroupDetailViewController.xib @@ -89,7 +89,7 @@ -