UILabel+TD.h 571 B

123456789101112131415161718192021
  1. //
  2. // UILabel+TD.h
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/10/22.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UILabel (TD)
  11. - (void)highlightString:(NSString *)string color:(UIColor *)color;
  12. - (NSAttributedString *)subhighlightString:(NSString *)string color:(UIColor *)color;
  13. - (void)highlightString:(NSString *)string color:(UIColor *)color withSpace:(CGFloat)space withFont:(UIFont*)font setLineSpace:(NSUInteger)headIndent setTextSpace:(CGFloat)textspace;
  14. @end
  15. NS_ASSUME_NONNULL_END