JXTMsghomeVc.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. //
  2. // JXMsgViewController.h
  3. //
  4. // Created by flyeagleTang on 14-4-3.
  5. // Copyright (c) 2014年 Reese. All rights reserved.
  6. //
  7. #import "JXTableViewController.h"
  8. #import <UIKit/UIKit.h>
  9. #import "JXMessageTableVc.h"
  10. #import "JXGroupViewController.h"
  11. #import "JXAudioPlayer.h"
  12. #import "JXCsHomeVc.h"
  13. #import "JXFriendObject.h"
  14. @interface JXTMsghomeVc : JXMessageTableVc <UIScrollViewDelegate>{
  15. // NSMutableArray *_array;
  16. int _refreshCount;
  17. int _recordCount;
  18. float lastContentOffset;
  19. int upOrDown;
  20. JXAudioPlayer* _audioPlayer;
  21. JXRoomObject *_chatRoom;
  22. roomData* _room;
  23. }
  24. @property(nonatomic,assign) int msgTotal;
  25. @property (nonatomic, strong) NSMutableArray *array;
  26. @property (nonatomic, strong) UIView *backView;
  27. @property (nonatomic,copy)NSArray *customerArr; //客服信息
  28. - (void)cancelBtnAction;
  29. - (void)getTotalNewMsgCount;
  30. @end
  31. //- (void) customView {
  32. //
  33. //// UIButton * scanButton = [UIButton buttonWithType:UIButtonTypeCustom];
  34. //// scanButton.frame = CGRectMake(8, JX_SCREEN_TOP - 38, 34, 34);
  35. //// [scanButton setImage:[UIImage imageNamed:@"scanicon"] forState:UIControlStateNormal];
  36. //// [scanButton setImage:[UIImage imageNamed:@"scanicon"] forState:UIControlStateHighlighted];
  37. //// [scanButton setImageEdgeInsets:UIEdgeInsetsMake(5, 5, 5, 5)];
  38. //// scanButton.custom_acceptEventInterval = 1.0f;
  39. //// [scanButton addTarget:self action:@selector(showScanViewController:) forControlEvents:UIControlEventTouchUpInside];
  40. //// [self.tableHeader addSubview:scanButton];
  41. //
  42. // self.moreBtn = [UIFactory createButtonWithImage:@"im_003_more_button_black"
  43. // highlight:nil
  44. // target:self
  45. // selector:@selector(onMore:)];
  46. // self.moreBtn.custom_acceptEventInterval = 1.0f;
  47. // 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);
  48. // [self.tableHeader addSubview:self.moreBtn];
  49. //
  50. // self.editBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, JX_SCREEN_TOP - 33, 60, 24)];
  51. // [self.editBtn setTitle:Localized(@"JX_Edit") forState:UIControlStateNormal];
  52. // [self.editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  53. // self.editBtn.titleLabel.font = [UIFont systemFontOfSize:15.0];
  54. // [self.editBtn addTarget:self action:@selector(editBtnAction:) forControlEvents:UIControlEventTouchUpInside];
  55. // [self.tableHeader addSubview:self.editBtn];
  56. //
  57. // self.doneBtn = [[UIButton alloc] initWithFrame:CGRectMake(JX_SCREEN_WIDTH - 60, JX_SCREEN_TOP - 33, 60, 24)];
  58. // [self.doneBtn setTitle:Localized(@"JX_Finish") forState:UIControlStateNormal];
  59. // [self.doneBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  60. // self.doneBtn.titleLabel.font = [UIFont systemFontOfSize:15.0];
  61. // [self.doneBtn addTarget:self action:@selector(doneBtnAction:) forControlEvents:UIControlEventTouchUpInside];
  62. // self.doneBtn.hidden = YES;
  63. // [self.tableHeader addSubview:self.doneBtn];
  64. //
  65. // //搜索输入框
  66. //
  67. // UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, JX_SCREEN_TOP, JX_SCREEN_WIDTH, 55)];
  68. //// backView.backgroundColor = HEXCOLOR(0xf0f0f0);
  69. // [self.view addSubview:backView];
  70. //
  71. // // [seekImgView release];
  72. //
  73. //// UIButton *cancelBtn = [[UIButton alloc] initWithFrame:CGRectMake(backView.frame.size.width-5-45, 5, 45, 30)];
  74. //// [cancelBtn setTitle:Localized(@"JX_Cencal") forState:UIControlStateNormal];
  75. //// [cancelBtn setTitleColor:THEMECOLOR forState:UIControlStateNormal];
  76. //// cancelBtn.custom_acceptEventInterval = .25f;
  77. //// [cancelBtn addTarget:self action:@selector(cancelBtnAction) forControlEvents:UIControlEventTouchUpInside];
  78. //// cancelBtn.titleLabel.font = SYSFONT(14);
  79. //// [backView addSubview:cancelBtn];
  80. //
  81. //
  82. // _seekTextField = [[UITextField alloc] initWithFrame:CGRectMake(15, 10, backView.frame.size.width - 30, 35)];
  83. // _seekTextField.placeholder = Localized(@"JX_Seach");
  84. // _seekTextField.backgroundColor = HEXCOLOR(0xf0f0f0);
  85. // _seekTextField.textColor = [UIColor blackColor];
  86. // [_seekTextField setFont:SYSFONT(14)];
  87. //// _seekTextField.backgroundColor = [UIColor whiteColor];
  88. // UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"card_search"]];
  89. // UIView *leftView = [[UIView alloc ]initWithFrame:CGRectMake(0, 0, 30, 30)];
  90. //// imageView.center = CGPointMake(leftView.frame.size.width/2, leftView.frame.size.height/2);
  91. // imageView.center = leftView.center;
  92. // [leftView addSubview:imageView];
  93. // _seekTextField.leftView = leftView;
  94. // _seekTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
  95. // _seekTextField.leftViewMode = UITextFieldViewModeAlways;
  96. // _seekTextField.borderStyle = UITextBorderStyleNone;
  97. // _seekTextField.layer.masksToBounds = YES;
  98. // _seekTextField.layer.cornerRadius = 5;
  99. // _seekTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
  100. // _seekTextField.delegate = self;
  101. // _seekTextField.returnKeyType = UIReturnKeyGoogle;
  102. // [backView addSubview:_seekTextField];
  103. // [_seekTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
  104. //
  105. //
  106. // self.tableView.tableHeaderView = backView;
  107. //
  108. //}