// // JCHATSendMessageViewController.h // JPush IM // // Created by Apple on 14/12/26. // Copyright (c) 2014年 Apple. All rights reserved. // #import #import "JCHATToolBar.h" #import "JCHATMoreView.h" #import "JCHATRecordAnimationView.h" #import "JCHATChatModel.h" #import "XHVoiceRecordHUD.h" #import "XHVoiceRecordHelper.h" //#import "JCHATVoiceTableViewCell.h" #import "JCHATMessageTableView.h" #import "JCHATMessageTableViewCell.h" #import "JCHATPhotoPickerViewController.h" #import "MessageListModel.h" typedef void (^chatSmallBlock)(int type); typedef void (^CanSendBlock)(BOOL canSend); #define interval 60*2 //static =const #define navigationRightButtonRect CGRectMake(0, 0, 14, 17) #define messageTableColor [UIColor colorWithRed:236/255.0 green:237/255.0 blue:240/255.0 alpha:1] static NSInteger const messagePageNumber = 25; static NSInteger const messagefristPageNumber = 20; @interface JCHATConversationViewController : YBBaseViewController < UITableViewDataSource, UITableViewDelegate, SendMessageDelegate, AddBtnDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, PictureDelegate, playVoiceDelegate, UIGestureRecognizerDelegate, UIAlertViewDelegate, JMessageDelegate, UIScrollViewDelegate, JCHATPhotoPickerViewControllerDelegate, UITextViewDelegate>{ } /** tableView 距离顶部的距离 */ @property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageTabTop; @property (weak, nonatomic) IBOutlet JCHATMessageTableView *messageTableView; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *toolBarHeightConstrait; @property (weak, nonatomic) IBOutlet JCHATToolBarContainer *toolBarContainer; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *toolBarToBottomConstrait; @property (weak, nonatomic) IBOutlet JCHATMoreViewContainer *moreViewContainer; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *moreViewHeight; @property(nonatomic, assign) JPIMInputViewType textViewInputViewType; @property(assign, nonatomic) BOOL barBottomFlag; @property(nonatomic, strong, readwrite) XHVoiceRecordHUD *voiceRecordHUD; @property(strong, nonatomic) JMSGConversation *conversation; @property(strong, nonatomic) NSString *targetName; @property(assign, nonatomic) BOOL isConversationChange; @property(weak,nonatomic)id superViewController; @property(nonatomic,strong)MessageListModel *userModel; @property(nonatomic,assign)BOOL isWhiteStyle; //YES:直播间内、NO:tab-消息 /** * 管理录音工具对象 */ @property(nonatomic, strong) XHVoiceRecordHelper *voiceRecordHelper; /** * 记录旧的textView contentSize Heigth */ @property(nonatomic, assign) CGFloat previousTextViewContentHeight; @property (nonatomic,copy) chatSmallBlock block; - (void)setupView; - (void)prepareImageMessage:(UIImage *)img; - (void)reloadSamllChtaView:(NSString *)isatt; @end