How do i get the tmp directory on the iPhone or iPad?
if i use NSTemporaryDirectory() to create a file it does not save to the simulator temp directory.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As drawnonward said correctly in a comment
“NSTemporaryDirectory() will do the right thing on a device.”
and thats true…
EDIT: Apparently there may be a problem with this approach on later Os’s (>6.1.3), maybe try the NSCachesDirectory instead of the tmp directory.