// // JXMsgViewController.h // // Created by flyeagleTang on 14-4-3. // Copyright (c) 2014年 Reese. All rights reserved. // #import "JXTableViewController.h" #import #import "JXMessageTableVc.h" #import "JXGroupViewController.h" #import "JXAudioPlayer.h" #import "JXCsHomeVc.h" #import "JXFriendObject.h" @interface JXTMsghomeVc : 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; //客服信息 - (void)cancelBtnAction; - (void)getTotalNewMsgCount; @end //- (void) customView { // //// UIButton * scanButton = [UIButton buttonWithType:UIButtonTypeCustom]; //// scanButton.frame = CGRectMake(8, JX_SCREEN_TOP - 38, 34, 34); //// [scanButton setImage:[UIImage imageNamed:@"scanicon"] forState:UIControlStateNormal]; //// [scanButton setImage:[UIImage imageNamed:@"scanicon"] forState:UIControlStateHighlighted]; //// [scanButton setImageEdgeInsets:UIEdgeInsetsMake(5, 5, 5, 5)]; //// scanButton.custom_acceptEventInterval = 1.0f; //// [scanButton addTarget:self action:@selector(showScanViewController:) forControlEvents:UIControlEventTouchUpInside]; //// [self.tableHeader addSubview:scanButton]; // // self.moreBtn = [UIFactory createButtonWithImage:@"im_003_more_button_black" // highlight:nil // target:self // selector:@selector(onMore:)]; // self.moreBtn.custom_acceptEventInterval = 1.0f; // self.moreBtn.frame = CGRectMake(JX_SCREEN_WIDTH - 18-BTN_RANG_UP*2, JX_SCREEN_TOP - 18-BTN_RANG_UP*2, 18+BTN_RANG_UP*2, 18+BTN_RANG_UP*2); // [self.tableHeader addSubview:self.moreBtn]; // // self.editBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, JX_SCREEN_TOP - 33, 60, 24)]; // [self.editBtn setTitle:Localized(@"JX_Edit") forState:UIControlStateNormal]; // [self.editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; // self.editBtn.titleLabel.font = [UIFont systemFontOfSize:15.0]; // [self.editBtn addTarget:self action:@selector(editBtnAction:) forControlEvents:UIControlEventTouchUpInside]; // [self.tableHeader addSubview:self.editBtn]; // // self.doneBtn = [[UIButton alloc] initWithFrame:CGRectMake(JX_SCREEN_WIDTH - 60, JX_SCREEN_TOP - 33, 60, 24)]; // [self.doneBtn setTitle:Localized(@"JX_Finish") forState:UIControlStateNormal]; // [self.doneBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; // self.doneBtn.titleLabel.font = [UIFont systemFontOfSize:15.0]; // [self.doneBtn addTarget:self action:@selector(doneBtnAction:) forControlEvents:UIControlEventTouchUpInside]; // self.doneBtn.hidden = YES; // [self.tableHeader addSubview:self.doneBtn]; // // //搜索输入框 // // UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, JX_SCREEN_TOP, JX_SCREEN_WIDTH, 55)]; //// backView.backgroundColor = HEXCOLOR(0xf0f0f0); // [self.view addSubview:backView]; // // // [seekImgView release]; // //// UIButton *cancelBtn = [[UIButton alloc] initWithFrame:CGRectMake(backView.frame.size.width-5-45, 5, 45, 30)]; //// [cancelBtn setTitle:Localized(@"JX_Cencal") forState:UIControlStateNormal]; //// [cancelBtn setTitleColor:THEMECOLOR forState:UIControlStateNormal]; //// cancelBtn.custom_acceptEventInterval = .25f; //// [cancelBtn addTarget:self action:@selector(cancelBtnAction) forControlEvents:UIControlEventTouchUpInside]; //// cancelBtn.titleLabel.font = SYSFONT(14); //// [backView addSubview:cancelBtn]; // // // _seekTextField = [[UITextField alloc] initWithFrame:CGRectMake(15, 10, backView.frame.size.width - 30, 35)]; // _seekTextField.placeholder = Localized(@"JX_Seach"); // _seekTextField.backgroundColor = HEXCOLOR(0xf0f0f0); // _seekTextField.textColor = [UIColor blackColor]; // [_seekTextField setFont:SYSFONT(14)]; //// _seekTextField.backgroundColor = [UIColor whiteColor]; // UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"card_search"]]; // UIView *leftView = [[UIView alloc ]initWithFrame:CGRectMake(0, 0, 30, 30)]; //// imageView.center = CGPointMake(leftView.frame.size.width/2, leftView.frame.size.height/2); // imageView.center = leftView.center; // [leftView addSubview:imageView]; // _seekTextField.leftView = leftView; // _seekTextField.clearButtonMode = UITextFieldViewModeWhileEditing; // _seekTextField.leftViewMode = UITextFieldViewModeAlways; // _seekTextField.borderStyle = UITextBorderStyleNone; // _seekTextField.layer.masksToBounds = YES; // _seekTextField.layer.cornerRadius = 5; // _seekTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; // _seekTextField.delegate = self; // _seekTextField.returnKeyType = UIReturnKeyGoogle; // [backView addSubview:_seekTextField]; // [_seekTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; // // // self.tableView.tableHeaderView = backView; // //}