M80AttributedLabelURL.h 808 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // M80AttributedLabelURL.h
  3. // M80AttributedLabel
  4. //
  5. // Created by amao on 13-8-31.
  6. // Copyright (c) 2013年 www.xiangwangfeng.com. All rights reserved.
  7. //
  8. #import "M80AttributedLabelDefines.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface M80AttributedLabelURL : NSObject
  11. @property (nonatomic,strong) id linkData;
  12. @property (nonatomic,assign) NSRange range;
  13. @property (nonatomic,strong,nullable) UIColor *color;
  14. + (M80AttributedLabelURL *)urlWithLinkData:(id)linkData
  15. range:(NSRange)range
  16. color:(nullable UIColor *)color;
  17. + (nullable NSArray *)detectLinks:(nullable NSString *)plainText;
  18. + (void)setCustomDetectMethod:(nullable M80CustomDetectLinkBlock)block;
  19. @end
  20. NS_ASSUME_NONNULL_END