AttributedLabel.h 494 B

1234567891011121314151617181920
  1. //
  2. // UILabel+LinkUrl.h
  3. // WildFireChat
  4. //
  5. // Created by heavyrain.lee on 2018/5/15.
  6. // Copyright © 2018 WildFireChat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol AttributedLabelDelegate <NSObject>
  10. @optional
  11. - (void)didSelectUrl:(NSString *)urlString;
  12. - (void)didSelectPhoneNumber:(NSString *)phoneNumberString;
  13. @end
  14. @interface AttributedLabel : UILabel
  15. @property(nonatomic, weak)id<AttributedLabelDelegate> attributedLabelDelegate;
  16. - (void)setText:(NSString *)text;
  17. @end