如何創建並寫入一個文件捆綁?我有這樣的:
//make path to file
NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *filePath = [documentsPath stringByAppendingPathComponent:[NSString stringWithFormat:@"usnews.txt", [sharedManager.articleNumber intValue] + 1]];
//write file
[textContent writeToFile:filePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
,但其寫入到文件夾,當應用程序被關閉刪除。
或者沒有無用的否定:當設備越獄有可能 – 2015-05-11 08:01:20