EaseImageView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. @interface EaseImageView : UIView
  14. /** @brief 头像图片 */
  15. @property (strong, nonatomic) UIImageView *imageView;
  16. @property (strong, nonatomic) UIImage *image;
  17. /** @brief 角标数 */
  18. @property (nonatomic) NSInteger badge;
  19. /** @brief 是否显示角标 */
  20. @property (nonatomic) BOOL showBadge;
  21. /** @brief 头像圆角 */
  22. @property (nonatomic) CGFloat imageCornerRadius UI_APPEARANCE_SELECTOR;
  23. /** @brief 角标控件宽度 */
  24. @property (nonatomic) CGFloat badgeSize UI_APPEARANCE_SELECTOR;
  25. /** @brief 角标字体 */
  26. @property (nonatomic) UIFont *badgeFont UI_APPEARANCE_SELECTOR;
  27. /** @brief 角标文字颜色 */
  28. @property (nonatomic) UIColor *badgeTextColor UI_APPEARANCE_SELECTOR;
  29. /** @brief 角标背景色 */
  30. @property (nonatomic) UIColor *badgeBackgroudColor UI_APPEARANCE_SELECTOR;
  31. @end