title: iOS - Cached data used by ALAssetsLibrary is not updated
body: <p>I seem to be having caching issues with the ALAssetLibrary when testing my app on the iPhone. </p>
  
  <p>Steps used to produce this issue</p>
  
  <ol>
  <li>Take a photo using the iPhone camera</li>
  <li>Access the Camera Roll using ALAssetsLibrary (through <a href="https://github.com/elc/ELCImagePickerController" rel="nofollow">ELCImagePicker</a>)</li>
  </ol>
  
  <p>The problem is that when ELCImagePicker displays the list of albums, the thumbnail of the photo taken in step 1 is displayed for the Camera Roll album (which is correct), but when I go into the Camera Roll album, that photo is not there. An error like this is also displayed in the console log:</p>
  
  <pre><code>Cached count is off for 0x2391d0 &lt;x-coredata://D226A7C3-95D5-40B3-BCFB-726E534AB57A/Album/p1&gt; (1357 != 1358) moc=&lt;PLManagedObjectContext: 0x63794c0&gt;
  </code></pre>
  
  <p>1357 and 1358 appears to be match the photo count before and after I take the photo, and closing the image picker and opening it again doesn't help. But if I switch to the Photos app, the photo is displayed there. And when I return to my app, the photo is now displayed as well.</p>
  
  <p>I have tried both</p>
  
  <pre><code>UIImageWriteToSavedPhotosAlbum ( UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo );
  </code></pre>
  
  <p>and ALAssetsLibrary's</p>
  
  <pre><code>(void)writeImageToSavedPhotosAlbum:(CGImageRef)imageRef orientation:(ALAssetOrientation)orientation completionBlock:(ALAssetsLibraryWriteImageCompletionBlock)completionBlock
  </code></pre>
  
  <p>but neither works. Any help is greatly appreciated. Thanks!</p>