UILabel+RightAndLeft.h 427 B

123456789101112131415161718192021222324252627
  1. //
  2. // UILabel+RightAndLeft.h
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/28.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UILabel (RightAndLeft)
  11. //两端对齐
  12. - (void)textAlignmentLeftAndRight;
  13. //指定Label以最后的冒号对齐的width两端对齐
  14. - (void)textAlignmentLeftAndRightWith:(CGFloat)labelWidth;
  15. @end
  16. NS_ASSUME_NONNULL_END