2010-03-17 28 views

回答

0

參閱以下方法NSFileManager類:

- (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes 
- (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary *)attributes error:(NSError **)error 

還要注意的是,你可以不寫任何東西到申請。然而,應用程序沙箱包含幾個文件夾,您可以在其中進行書寫(它們之間的選擇取決於您的需要)。有關更多信息,請參見"Commonly Used Directories"

相關問題