-
Notifications
You must be signed in to change notification settings - Fork 3
/
SSMessagesViewController.h
43 lines (34 loc) · 1.36 KB
/
SSMessagesViewController.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
41
42
43
//
// SSMessagesViewController.h
// Messages
//
// Created by Sam Soffes on 3/10/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
// This is an abstract class for displaying a UI similar to Apple's SMS application. A subclass should override the
// messageStyleForRowAtIndexPath: and textForRowAtIndexPath: to customize this class.
//
#import "SSMessageTableViewCell.h"
@class SSTextField;
@interface SSMessagesViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate> {
UITableView *_tableView;
UIImageView *_inputBackgroundView;
SSTextField *_textField;
UIButton *_sendButton;
UIImage *_leftBackgroundImage;
UIImage *_rightBackgroundImage;
NSMutableArray *chatData;
BOOL _reloading;
}
@property (nonatomic, retain, readonly) UITableView *tableView;
@property (nonatomic, retain, readonly) UIImageView *inputBackgroundView;
@property (nonatomic, retain, readonly) SSTextField *textField;
@property (nonatomic, retain, readonly) UIButton *sendButton;
@property (nonatomic, retain) UIImage *leftBackgroundImage;
@property (nonatomic, retain) UIImage *rightBackgroundImage;
@property (nonatomic, retain) NSMutableArray *chatData;
-(NSString *)getText;
-(void)clear;
- (SSMessageStyle)messageStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString *)textForRowAtIndexPath:(NSIndexPath *)indexPath;
@end