Skip to content

Commit

Permalink
chat view added
Browse files Browse the repository at this point in the history
  • Loading branch information
kanibek committed Jan 17, 2012
1 parent ece788e commit aaaa29c
Show file tree
Hide file tree
Showing 24 changed files with 1,184 additions and 9 deletions.
42 changes: 42 additions & 0 deletions ChatViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Old
#import <AudioToolbox/AudioToolbox.h>

@class Message;

@interface ChatViewController : UIViewController <NSFetchedResultsControllerDelegate,
UITableViewDelegate, UITableViewDataSource, UITextViewDelegate, UIActionSheetDelegate> {

}

@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;

@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;

- (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;

- (void)fetchResults;

@end
Loading

0 comments on commit aaaa29c

Please sign in to comment.