YahooArchive / YangMingShan

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

Fix perform to main thread after picking image from camera #13

Closed yulichandra closed 8 years ago

yulichandra commented 8 years ago

cause : still in background ? fix : perform delegate in MainThread

yahoocla commented 8 years ago

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

yahoocla commented 8 years ago

CLA is valid!

ZZBHuang commented 8 years ago

Did you try to put

dispatch_async(dispatch_get_main_queue(), ^{  //Do something  });

inside the delegate

(void)photoPickerViewController:(YMSPhotoPickerViewController )picker didFinishPickingImage:(UIImage )image {}

?

yulichandra commented 8 years ago

ok thanks. Since i didn't do image processing after taking photo so i don't come up with that solution.