NSString+CGSize.h 336 B

1234567891011121314151617181920
  1. //
  2. // NSString+CGSize.h
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/10/15.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface NSString (CGSize)
  11. + (CGSize)calculateSizeWithString:(NSString *)string fontSize:(CGFloat)size;
  12. @end
  13. NS_ASSUME_NONNULL_END