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

[jira] [Updated] (CB-2397) iOS: Enable non-file:// startPages for CordovaView apps

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

Christoph Jerolimov updated CB-2397:
------------------------------------

    Summary: iOS: Enable non-file:// startPages for CordovaView apps  (was: iOS: Enable non-URI startPages with small refactoring)
    
> iOS: Enable non-file:// startPages for CordovaView apps
> -------------------------------------------------------
>
>                 Key: CB-2397
>                 URL: https://issues.apache.org/jira/browse/CB-2397
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 2.4.0
>            Reporter: Christoph Jerolimov
>            Priority: Minor
>
> Method {{CDVViewController viewDidLoad}} is really long and not extendable.
> At the beginning of this method the property {{startPage}} was transferred into an {{appURL}} or an {{loadErr}}. Used at the very very end of this more than 100 lines of code.
> To allow apps to extend the {{CDVViewController}} and load other content than a simple URL please externalize the start code to something like {{startRequest}}. No error handling, esp. no filesystem checks are needed here.
> If it's required to show an "file not found" error it's better to implement this in the {{webView:didFailLoadWithError:}} webview delegate callback.

--
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