EaseUserCell.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import <UIKit/UIKit.h>
  13. #import "IUserModel.h"
  14. #import "IModelCell.h"
  15. #import "EaseImageView.h"
  16. static CGFloat EaseUserCellMinHeight = 50;
  17. @protocol EaseUserCellDelegate;
  18. /** @brief 好友(用户)列表自定义UITableViewCell */
  19. @interface EaseUserCell : UITableViewCell<IModelCell>
  20. @property (weak, nonatomic) id<EaseUserCellDelegate> delegate;
  21. /** @brief 头像 */
  22. @property (strong, nonatomic) EaseImageView *avatarView;
  23. /** @brief 昵称(环信id) */
  24. @property (strong, nonatomic) UILabel *titleLabel;
  25. /** @brief 用户model */
  26. @property (strong, nonatomic) id<IUserModel> model;
  27. /** @brief 是否显示头像,默认为YES */
  28. @property (nonatomic) BOOL showAvatar;
  29. /** @brief 当前cell在tabeleView的位置 */
  30. @property (strong, nonatomic) NSIndexPath *indexPath;
  31. /** @brief titleLabel的字体 */
  32. @property (nonatomic) UIFont *titleLabelFont UI_APPEARANCE_SELECTOR;
  33. /** @brief titleLabel的文字颜色 */
  34. @property (nonatomic) UIColor *titleLabelColor UI_APPEARANCE_SELECTOR;
  35. @end
  36. /** @brief 好友(用户)列表自定义UITableViewCell */
  37. @protocol EaseUserCellDelegate <NSObject>
  38. /*!
  39. @method
  40. @brief 选中的好友(用户)cell长按回调
  41. @discussion
  42. @param indexPath 选中的cell所在位置
  43. @result
  44. */
  45. - (void)cellLongPressAtIndexPath:(NSIndexPath *)indexPath;
  46. @end