phonegap/phonegap — pull request #33 by ziweizhou (2013-05-17 00:04:29+00:00)
Title: using block for dismiss camera modal window.

sometimes I want to bring up another modal window after the imagepicker window is dismissed, such as a picture editor modal window. It fails because it cannot bring a new modal window when the imagepicker window is in the process of getting dismissed.

so i update the CDVCamera code to use block, like following.

[[cameraPicker presentingViewController] dismissViewControllerAnimated:YES
completion:^{
[self processPickedImage:cameraPicker didFinishPickingMediaWithInfo:info];
}];

please let me know your thoughts.

Thank you