From acc6ff4edde5f802b4d4c063381456725147a13f Mon Sep 17 00:00:00 2001 From: nixzhu Date: Fri, 16 Oct 2015 17:01:14 +0800 Subject: [PATCH 01/25] add MoreMessageTypesView --- Yep.xcodeproj/project.pbxproj | 12 ++ Yep/Base.lproj/Main.storyboard | 82 +------- .../ConversationViewController.swift | 34 ++-- .../MoreMessageTypesView.swift | 176 ++++++++++++++++++ 4 files changed, 218 insertions(+), 86 deletions(-) create mode 100644 Yep/Views/MoreMessageTypes/MoreMessageTypesView.swift diff --git a/Yep.xcodeproj/project.pbxproj b/Yep.xcodeproj/project.pbxproj index 9cb5d45f..128b8b20 100644 --- a/Yep.xcodeproj/project.pbxproj +++ b/Yep.xcodeproj/project.pbxproj @@ -214,6 +214,7 @@ 50AFBF4E1BB3A594007D19DA /* bub3.caf in Resources */ = {isa = PBXBuildFile; fileRef = 50AFBF4D1BB3A594007D19DA /* bub3.caf */; settings = {ASSET_TAGS = (); }; }; 50AFBF5F1BB4F332007D19DA /* FeedsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50AFBF5E1BB4F332007D19DA /* FeedsViewController.swift */; settings = {ASSET_TAGS = (); }; }; 50B2CA921BD0BF3800668AC6 /* FeedTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B2CA911BD0BF3800668AC6 /* FeedTextView.swift */; settings = {ASSET_TAGS = (); }; }; + 50B2CA941BD0EF7900668AC6 /* MoreMessageTypesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B2CA931BD0EF7900668AC6 /* MoreMessageTypesView.swift */; settings = {ASSET_TAGS = (); }; }; 50B38FB71B69CD960064C132 /* Array+Yep.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B38FB61B69CD960064C132 /* Array+Yep.swift */; }; 50B38FCC1B6B37F00064C132 /* FeedbackViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B38FCB1B6B37F00064C132 /* FeedbackViewController.swift */; }; 50B8E6161B40F9E700C17EA1 /* YepDownloader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B8E6151B40F9E700C17EA1 /* YepDownloader.swift */; }; @@ -511,6 +512,7 @@ 50AFBF4D1BB3A594007D19DA /* bub3.caf */ = {isa = PBXFileReference; lastKnownFileType = file; name = bub3.caf; path = Sounds/bub3.caf; sourceTree = ""; }; 50AFBF5E1BB4F332007D19DA /* FeedsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FeedsViewController.swift; path = ViewControllers/Feeds/FeedsViewController.swift; sourceTree = ""; }; 50B2CA911BD0BF3800668AC6 /* FeedTextView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FeedTextView.swift; path = Views/TextViews/FeedTextView.swift; sourceTree = ""; }; + 50B2CA931BD0EF7900668AC6 /* MoreMessageTypesView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MoreMessageTypesView.swift; path = Views/MoreMessageTypes/MoreMessageTypesView.swift; sourceTree = ""; }; 50B38FB61B69CD960064C132 /* Array+Yep.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Array+Yep.swift"; path = "Extensions/Array+Yep.swift"; sourceTree = ""; }; 50B38FCB1B6B37F00064C132 /* FeedbackViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FeedbackViewController.swift; path = ViewControllers/Feedback/FeedbackViewController.swift; sourceTree = ""; }; 50B8E6151B40F9E700C17EA1 /* YepDownloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = YepDownloader.swift; path = Services/YepDownloader.swift; sourceTree = ""; }; @@ -974,6 +976,7 @@ 0AC25F041B1100F3009E6E13 /* ScrollView */, 50E18BB81B180F8E0076C3C6 /* SayHi */, 5019F62F1B39BFCB0000D993 /* ConversationMore */, + 50B2CA951BD0EF8A00668AC6 /* MoreMessageTypes */, 500A0B201B451A7400D49358 /* Badge */, 504F85AD1B4D21E400F909BE /* DiscoverFilter */, 8409137E1B7DB178001C89D6 /* FriendRequest */, @@ -1693,6 +1696,14 @@ name = Feed; sourceTree = ""; }; + 50B2CA951BD0EF8A00668AC6 /* MoreMessageTypes */ = { + isa = PBXGroup; + children = ( + 50B2CA931BD0EF7900668AC6 /* MoreMessageTypesView.swift */, + ); + name = MoreMessageTypes; + sourceTree = ""; + }; 50B38FCD1B6B37F90064C132 /* Feedback */ = { isa = PBXGroup; children = ( @@ -2242,6 +2253,7 @@ 50F5AF991BBBD02A0033C9BC /* FeedMediaCell.swift in Sources */, 5023DE331AB688F600B3EE96 /* UIColor+Yep.swift in Sources */, 503315971AC1017E0008A209 /* ChatLeftTextCell.swift in Sources */, + 50B2CA941BD0EF7900668AC6 /* MoreMessageTypesView.swift in Sources */, 0A8F54B11AB67D11004AD60E /* AppDelegate.swift in Sources */, 508F8FC81B0161EF00461B0B /* ProfileSeparationLineCell.swift in Sources */, 500A0B1C1B450C2100D49358 /* EditNicknameAndBadgeViewController.swift in Sources */, diff --git a/Yep/Base.lproj/Main.storyboard b/Yep/Base.lproj/Main.storyboard index 277e7ff2..5ac28a41 100644 --- a/Yep/Base.lproj/Main.storyboard +++ b/Yep/Base.lproj/Main.storyboard @@ -117,91 +117,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -302,13 +239,13 @@ - + - + @@ -1031,7 +968,7 @@ - - - + @@ -1271,14 +1208,14 @@ - + @@ -239,13 +245,13 @@ - + - + @@ -824,7 +830,7 @@ - + @@ -968,7 +974,7 @@ - - - + @@ -1049,7 +1055,7 @@ @@ -1098,18 +1104,18 @@ - +