27 lines
533 B
Objective-C
Executable File
27 lines
533 B
Objective-C
Executable File
|
||
|
||
#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
|