1234567891011121314151617181920212223242526272829303132333435 |
- //
- // KDPublicMethod.h
- // KuDianProject
- //
- // Created by 学丽 on 2019/7/4.
- // Copyright © 2019 KDP. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface KDPublicMethod : NSObject
- +(NSMutableAttributedString *)sethanggaoWithStr:(NSString *)text linSpacing:(CGFloat)line;
- +(NSString *)getNowTimeTimestamp;
- + (NSString *)md5:(NSString *)str;
- #pragma mark---b保存聊天记录
- +(void)saveMessage:(NSDictionary *)message;
- +(NSDictionary *)getMessage;
- + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
- + (NSString *)convertToJsonData:(NSDictionary *)dict;
- #pragma mark--计算高度
- + (CGFloat)getHeightByWidth:(CGFloat)width title:(NSString *)title font:(UIFont*)font;
- +(BOOL)is_hiddenMoney;
- + (BOOL)JumpOpenURL:(NSString *)url;
- + (BOOL)isInstallTB;
- +(void) jumpKwaiWithURL:(NSString *)str;
- #pragma mark---计算时间
- +(NSString *)CalculateCurrentDate:(NSString *)dateStr;
- @end
- NS_ASSUME_NONNULL_END
|