HBCoreLabel.h 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // HBCoreLabel.h
  3. // CoreTextMagazine
  4. //
  5. // Created by weqia on 13-10-27.
  6. // Copyright (c) 2013年 Marin Todorov. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "MatchParser.h"
  10. @class HBCoreLabel;
  11. @protocol HBCoreLabelDelegate <NSObject>
  12. @optional
  13. -(void)coreLabel:(HBCoreLabel*)coreLabel linkClick:(NSString*)linkStr;
  14. -(void)coreLabel:(HBCoreLabel *)coreLabel phoneClick:(NSString *)linkStr;
  15. -(void)coreLabel:(HBCoreLabel *)coreLabel mobieClick:(NSString *)linkStr;
  16. @end
  17. @interface HBCoreLabel : UILabel
  18. {
  19. MatchParser* _match;
  20. BOOL touch;
  21. id<MatchParserDelegate> _data;
  22. NSString * _linkStr;
  23. NSString * _linkType;
  24. BOOL _copyEnableAlready;
  25. BOOL _attributed;
  26. }
  27. @property(nonatomic,strong ) MatchParser * match;
  28. @property(nonatomic,weak) IBOutlet id<HBCoreLabelDelegate> delegate;
  29. @property(nonatomic) BOOL linesLimit;
  30. -(void)registerCopyAction;
  31. -(void)setAttributedText:(NSString *)attributedText;
  32. @end