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 2014/05/06 01:16:17 UTC

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

     [ https://issues.apache.org/jira/browse/CB-3745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-3745:
---------------------------------

    Component/s:     (was: iOS)
    Description: 
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:

  was:

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:

    Environment: iOS

> 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: Plugin Camera
>    Affects Versions: Master
>         Environment: iOS
>            Reporter: 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 was sent by Atlassian JIRA
(v6.2#6252)