Files
mier_ios/SweetParty/Expand/Category/NSString+String.h

27 lines
533 B
C
Raw Normal View History

2025-08-11 10:43:19 +08:00
#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