UtilsTools.h 764 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // UtilsTools.h
  3. // smartRhino
  4. //
  5. // Created by armin on 2019/11/1.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UtilsTools : NSObject
  11. /**
  12. UIModalPresentationStyle 显示方式
  13. */
  14. + (UIModalPresentationStyle)modalPresentationStyle:(UIModalPresentationStyle)modalPresentationStyle;
  15. + (UIWindow*)getWindow;
  16. + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
  17. + (UIImage*) imageWithColor:(UIColor*)color andHeight:(CGFloat)height;
  18. //计算聊天消息的高 不是公用
  19. + (CGFloat)calculationHeightWithContent:(NSString *)content;
  20. //计算聊天消息的宽 不是公用
  21. + (CGFloat)calculationWidthWithContent:(NSString *)content;
  22. @end
  23. NS_ASSUME_NONNULL_END