when I use [[NSFileManager defaultManager] createFileAtPath:filePath contents:imageData attributes:nil] store image data, in some case this method return failed.I really don't know why. And the path is right,just like '/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-8A642743A991/Library/Caches/com.hackemist.SDWebImageCache.default/c513458d06b63d4561e39f77269e520d'. And I find in the same path,invoke [data writeToFile:filePath options:0 error:&error] work well, no error. Can someone tell me some of the reasons?
createFileAtPath with imageData failed
Add a Comment