How to save images and recorded files in temp directory?
问题 I want to store pictures taken from camera and video recordings from my application in a separate folder in temporary directories for a while. And as the task is being completed, they shall be going to save into the database. How do I save pictures taken from camera & video recording files in a separate folder in temp directories? 回答1: You are looking for this to get tot he caches folder to store temporary files: NSString* path = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory,