You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/06/08 21:57:19 UTC

[jira] [Created] (CB-3745) Camera callbacks - the animation of the viewcontroller may not have finished, for display of another modal viewcontroller after

Shazron Abdullah created CB-3745:
------------------------------------

             Summary: Camera callbacks - the animation of the viewcontroller may not have finished, for display of another modal viewcontroller after
                 Key: CB-3745
                 URL: https://issues.apache.org/jira/browse/CB-3745
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS, Plugin Camera
    Affects Versions: Master
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
            Priority: Minor



When the success/failure handler for CDVCamera fires, the modal viewcontroller may not have been finished animating and closing. This is problematic if you are chaining showing a different viewcontroller after the camera has been dismissed, resulting in the new viewcontroller not being shown and an error in the console log.

To fix this, do not send the pluginresult immediately in the camerapicker didfinish functions, but wait to send it in the completion handler of dismissViewController:completion:

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira