title: Storing iCloud Container URL
body: <p>Can I store the NSURL returned from:</p>
  
  <pre><code>[[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]
  </code></pre>
  
  <p>in the NSUserDefaults (or plist) to enable faster access to the iCloud container when my app starts?</p>
  
  <p>Currently, the above code can take a good few seconds (sometimes 10 seconds plus) to return the container path. This results in a noticeable and annoying lag in loading up the user's data from iCloud as my app waits for the return.</p>
  
  <p>I'm assuming that the NSURL path is exactly the same each time the app is launched and so it should be ok to store it for quick access later.</p>
  
  <p>I have tried this on my own devices and it works fine, I am just wondering if there may be any problems doing this out in the 'wild'.</p>
  
  <p>Ta</p>