// // JXMsgViewController.h // // Created by flyeagleTang on 14-4-3. // Copyright (c) 2014年 Reese. All rights reserved. // #import "JXTableViewController.h" #import #import "JXMessageTableVc.h" #import "JXXMMainVc.h" #import "JXMyModel.h" #import #import "SimpleAudioPlayer.h" /// <#Description#> @interface JXMsgViewController : JXMessageTableVc { // NSMutableArray *_array; int _refreshCount; int _recordCount; float lastContentOffset; int upOrDown; JXAudioPlayer* _audioPlayer; JXRoomObject *_chatRoom; roomData* _room; } @property(nonatomic,assign) int msgTotal; @property (nonatomic, strong) NSMutableArray *array; @property (nonatomic, strong) UIView *backView; @property (nonatomic,copy)NSArray *customerArr; //客服信息 @property (nonatomic,weak) UILabel *titleLb; - (void)cancelBtnAction; - (void)getTotalNewMsgCount; @property (nonatomic,strong) AVPlayer *palyer; @property (nonatomic,assign) NSInteger reciveScrollViewIndex; @property (nonatomic,strong) NSMutableArray *dataArrOneOne; //记录收到的新消息 @property (nonatomic,assign) int reciveNewMessage2222; @property (nonatomic,assign) int reciveNewMessage; @property (nonatomic,strong) NSDictionary *dictMsag; @property (nonatomic,strong) AVAudioPlayer *player; @end /* if( [aDownload.action isEqualToString:act_getGroupOneType] ){ _indexNums++; [_tempGoundArr addObject:dict]; if (_reciveNewMessage2222==100) { _dataArrOneOne=_tempGoundArr; [[NSUserDefaults standardUserDefaults] setObject:_indexGoundArr forKey:@"groundType"]; [[NSUserDefaults standardUserDefaults] synchronize]; [_table reloadData]; }else{ if (_indexNums==_array.count) { _indexGoundArr=_tempGoundArr; [[NSUserDefaults standardUserDefaults] setObject:_indexGoundArr forKey:@"groundType"]; [[NSUserDefaults standardUserDefaults] synchronize]; [_table reloadData]; return; }else{ [_indexGoundArr removeAllObjects]; } } //[_tempGoundArr removeAllObjects]; JXCell* cell = [_table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:_reciveScrollViewIndex inSection:0]]; if (dict[@"data"]==nil) { cell.chujiIMG.image=[UIImage imageNamed:dict[@"typeName"]]; }else{ // cell.chujiIMG.image=[UIImage imageNamed:@""]; } [_array enumerateObjectsUsingBlock:^(JXMsgAndUserObject *_Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { JXCell* cell = [_table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:idx inSection:1]]; if (dict[@"data"]==nil) { cell.chujiIMG.image=[UIImage imageNamed:@""]; }else{ if ([dict[@"data"][@"typeName"] isEqualToString:@"普通群"]) { cell.chujiIMG.image=[UIImage imageNamed:@"msgChuji"]; }if ([dict[@"data"][@"typeName"] isEqualToString:@"msgzhongji"]) { cell.chujiIMG.image=[UIImage imageNamed:@"msgChuji"]; }if ([dict[@"data"][@"typeName"] isEqualToString:@"高级群"]) { cell.chujiIMG.image=[UIImage imageNamed:@"msgGaoji"]; }if ([dict[@"data"][@"typeName"] isEqualToString:@"特级群"]) { cell.chujiIMG.image=[UIImage imageNamed:@"msgTeji"]; } } if ([obj.message.fromUserId isEqualToString:@""]) { } }]; } */