酷店

KDPublicMethod.h 967B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // KDPublicMethod.h
  3. // KuDianProject
  4. //
  5. // Created by 学丽 on 2019/7/4.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface KDPublicMethod : NSObject
  11. +(NSMutableAttributedString *)sethanggaoWithStr:(NSString *)text linSpacing:(CGFloat)line;
  12. +(NSString *)getNowTimeTimestamp;
  13. + (NSString *)md5:(NSString *)str;
  14. #pragma mark---b保存聊天记录
  15. +(void)saveMessage:(NSDictionary *)message;
  16. +(NSDictionary *)getMessage;
  17. + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
  18. + (NSString *)convertToJsonData:(NSDictionary *)dict;
  19. #pragma mark--计算高度
  20. + (CGFloat)getHeightByWidth:(CGFloat)width title:(NSString *)title font:(UIFont*)font;
  21. +(BOOL)is_hiddenMoney;
  22. + (BOOL)JumpOpenURL:(NSString *)url;
  23. + (BOOL)isInstallTB;
  24. +(void) jumpKwaiWithURL:(NSString *)str;
  25. #pragma mark---计算时间
  26. +(NSString *)CalculateCurrentDate:(NSString *)dateStr;
  27. @end
  28. NS_ASSUME_NONNULL_END