JXSearchListVC.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // JXSearchListVC.h
  3. // shiku_im
  4. //
  5. // Created by IMAC on 2019/8/9.
  6. // Copyright © 2019 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #define SCREEN_BAR (THE_DEVICE_HAVE_HEAD ? 44 : 20)
  10. #define SCREEN_VIEW (THE_DEVICE_HAVE_HEAD ? 44+44 : 20+44)
  11. #define CONTACT Localized(@"JX_SelectImageContact")
  12. #define GROUP Localized(@"JX_ManyPerChat")
  13. #define PUBLIC Localized(@"JX_PublicNumberOfInterest")
  14. #define RECORD Localized(@"JX_ChatRecord")
  15. #define USERNUMBER Localized(@"JX_Communication")
  16. #define CONTAIN Localized(@"JX_Contain")
  17. #define RECORDNUMBERS Localized(@"JX_RelatedChatHistory")
  18. #define MORE Localized(@"JX_More")
  19. #define SEARCH Localized(@"JX_Seach")
  20. #define CANCEL Localized(@"JX_Cencal")
  21. NS_ASSUME_NONNULL_BEGIN
  22. @protocol JXSearchListDelegate <NSObject>
  23. - (void)tapSearchCancelBtn;
  24. - (void)tapBackBtn:(BOOL )hasRecord;
  25. - (void)listDidAppear:(BOOL )hasRecord;
  26. - (void)listWillDisappear:(BOOL )hasRecord;
  27. - (void)saveSearchRecord:(NSString *)searchRecord;
  28. @end
  29. @interface JXSearchListVC : UIViewController
  30. @property (nonatomic,strong)UISearchBar *searchbar;
  31. @property (nonatomic,strong)UITableView *tableview;
  32. @property (nonatomic,strong)UITableView *recordtableview;
  33. @property (nonatomic,strong)UIButton *backbtn;
  34. @property (nonatomic,weak)id<JXSearchListDelegate> delegate;
  35. - (instancetype)initWithLable:(NSString *)lable withSearchText:(NSString *)searchtext withUserArray:(nullable NSMutableArray *)array withGroupDictionary:(nullable NSMutableDictionary *)groupdic withMsgDictionary:(nullable NSMutableDictionary *)msgDic isChatRecord:(BOOL )isChatRecord enterChatRecord:(BOOL )enterChatRecord withPeople:(nullable JXUserObject *)people;
  36. @end
  37. NS_ASSUME_NONNULL_END