Sketch out GIF picker.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-09-26 12:43:01 -04:00
parent 27e5a2f1b2
commit 62ba5701f6
3 changed files with 19 additions and 1 deletions

View File

@ -662,6 +662,10 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
[self createScrollDownButton];
[self createHeaderViews];
[self addNotificationListeners];
dispatch_async(dispatch_get_main_queue(), ^{
[self showGifPicker];
});
}
- (void)registerCustomMessageNibs

View File

@ -273,7 +273,12 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState };
[self updateBarButtonItems];
[GifManager.sharedInstance test];
// [GifManager.sharedInstance test];
dispatch_async(dispatch_get_main_queue(), ^{
TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
[self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
});
}
- (void)updateBarButtonItems

View File

@ -601,6 +601,12 @@
/* A label for generic attachments. */
"GENERIC_ATTACHMENT_LABEL" = "Attachment";
/* Title for the 'gif picker' dialog. */
"GIF_PICKER_VIEW_TITLE" = "Gif Search";
/* Placeholder text for the search field in gif view */
"GIF_VIEW_SEARCH_PLACEHOLDER_TEXT" = "Enter your search";
/* No comment provided by engineer. */
"GROUP_AVATAR_CHANGED" = "Avatar changed. ";
@ -1295,6 +1301,9 @@
/* No comment provided by engineer. */
"SECURE_SESSION_RESET" = "Secure session was reset.";
/* Label for 'select gif to attach' action sheet button */
"SELECT_GIF_BUTTON" = "Gif";
/* No comment provided by engineer. */
"SEND_AGAIN_BUTTON" = "Send Again";