[
https://issues.apache.org/jira/browse/CB-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13679415#comment-13679415
]
Mike Kwan commented on CB-2397:
-------------------------------
You can already load non-file:// startPages. Just set the www property to nil
then set startPage to be http://...
> 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