1
iPhoneのフォトアプリに似た画像ブラウザアプリを作成しています。 TEMPフォルダに保存しているWebから写真をダウンロードします。一時フォルダからファイルを取得できません
NSString *uniquePath = [NSTemporaryDirectory() stringByAppendingPathComponent: filename];
[UIImageJPEGRepresentation(localImage, 100) writeToFile:uniquePath atomically:YES];
以降を取得してUIImage Viewに表示します。
if([[NSFileManager defaultManager] fileExistsAtPath: uniquePath])
{
UIImage* localImage = [UIImage imageWithContentsOfFile: uniquePath];
}
私は手動で一度、コードの上にフォルダ内のアイテム
[[NSFileManager defaultManager] removeItemAtPath:NSTemporaryDirectory() error:&errorInfo];
を削除するまで、すべてがうまく動作が実行され、私はもはや画像を保存または取得することができるよませんが、制御フローは画像が存在することを示してい一時フォルダ内... 誰かが問題になると特定できますか?
PS:画像が大き