YahooArchive/YangMingShan

accessing _cachedSystemAnimationFence requires the main thread

Closed this issue · 3 comments

I got error like Error Log.txt.

Case :

  • Take Picture from Camera
  • Single Picture pick

I just implement it using yms_presentAlbumPhotoViewWithDelegate like your example

Thanks for your feedback! Could you tell me what did you put inside

photoPickerViewController:didFinishPickingImage:

? This link may can help

Ya, thanks i already solve it. I think because PHPhotoLibrary performChanges completionHandler still in run in background and the picker dismiss it.

solve it :
[self performSelectorOnMainThread:@selector(didFinishPickingImage:) withObject:image waitUntilDone:YES];

-(void)didFinishPickingImage:(UIImage*)image{ [self.delegate photoPickerViewController:self didFinishPickingImage:image]; }

Great!