If NSTemporaryDirectory returns nil <p>According to the documentation, <code>NSTemporaryDirectory()</code> can return nil. I need to save some temporary files in the device. What should I do if <code>NSTemporaryDirectory()</code> returns nil? Should I create a folder elsewhere? If yes, where? Or should I just show a message to the user?</p>