forked from KanybekMomukeyev/FacebookChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChatViewController.h
40 lines (28 loc) · 1.14 KB
/
ChatViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import <AudioToolbox/AudioToolbox.h>
@class Message;
@class Conversation;
@interface ChatViewController : UIViewController <
UITableViewDelegate, UITableViewDataSource, UITextViewDelegate, UIActionSheetDelegate> {
NSMutableArray *messages;
}
@property (nonatomic, retain) Conversation *conversation;
@property (nonatomic, assign) SystemSoundID receiveMessageSound;
@property (nonatomic, retain) UITableView *chatContent;
@property (nonatomic, retain) UIImageView *chatBar;
@property (nonatomic, retain) UITextView *chatInput;
@property (nonatomic, assign) CGFloat previousContentHeight;
@property (nonatomic, retain) UIButton *sendButton;
@property (nonatomic, copy) NSMutableArray *cellMap;
- (void)enableSendButton;
- (void)disableSendButton;
- (void)resetSendButton;
- (void)keyboardWillShow:(NSNotification *)notification;
- (void)keyboardWillHide:(NSNotification *)notification;
- (void)resizeViewWithOptions:(NSDictionary *)options;
- (void)scrollToBottomAnimated:(BOOL)animated;
- (void)sendMessage;
- (void)clearChatInput;
- (NSUInteger)addMessage:(Message *)message;
- (NSUInteger)removeMessageAtIndex:(NSUInteger)index;
- (void)clearAll;
@end