Files
mier_ios/SweetParty/Expand/Category/NSString+String.h
2025-08-11 10:43:19 +08:00

27 lines
533 B
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (String)
-(CGSize)sizeWithFont:(UIFont *)font With:(CGFloat)with;
-(CGSize)sizeWithFont:(UIFont *)font hiegth:(CGFloat)hiegth;
/**
* 根据文件名返回文件在Documents下的路径
*
* @param filename 文件名字
*
* @return 文件路径
*/
+(NSString *)filePathInDocumentsWithFileName:(NSString *)filename;
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonStr;
@end