YahooArchive / YangMingShan

YangMingShan is a collection of iOS UI components that we created while building Yahoo apps.
Other
638 stars 97 forks source link

accessing _cachedSystemAnimationFence requires the main thread #10

Closed yulichandra closed 8 years ago

yulichandra commented 8 years ago

I got error like Error Log.txt.

Case :

I just implement it using yms_presentAlbumPhotoViewWithDelegate like your example

ZZBHuang commented 8 years ago

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

photoPickerViewController:didFinishPickingImage:

? This link may can help

yulichandra commented 8 years ago

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]; }

ZZBHuang commented 8 years ago

Great!