有沒有辦法從「createFileAtPath」獲取更詳細的錯誤數據我是否期待NSError?目前我正在使用BOOL返回值。更多詳細錯誤來自createFileAtPath?
success = [fileMan createFileAtPath:fileOnDisk contents:dBuffer attributes:nil];
if(success == YES) NSLog(@"FileCreated");
else {
NSLog(@"ERROR: Failed to create file");
return 1;
}
加里
完美,非常感謝... – fuzzygoat 2009-12-07 14:36:47
這個答案很大。聰明! – 2013-10-09 21:58:11