Likely this is the only list where Zuma will find the expertise to answer
this question.
When you create a new cordova-ios app, your MainViewController is a
subclass of CDVViewController.
If you comment out the following method, and provide an implementation,
then you will have a chance to inspect the new url before the base class
does.
Call super to let default processing continue,
- (BOOL) webView:(UIWebView*)theWebView
shouldStartLoadWithRequest:(NSURLRequest*)request
navigationType:(UIWebViewNavigationType)navigationType
{
return [super webView:theWebView
shouldStartLoadWithRequest:request navigationType:navigationType];
}
@purplecabbage
risingj.com
On Mon, Dec 2, 2013 at 10:58 AM, Lorin Beer <[email protected]>wrote:
> Hi Zuma,
>
> the dev list may not be the best place to get an answer. This list handles
> discussions and issues around developing Cordova itself, not developing
> *with
> *Cordova.
>
> That having been said, you can take a look at
> UIWebViewDelegate<
> https://developer.apple.com/library/ios/documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html
> >
> protocol
> or NSURLRequest<
> https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/Reference/Reference.html
> >
> documentation.
> Both provide techniques to intercept and redirect based on the url the
> WebView is trying to open.
>
> You can look at the iOS View Controller programming
> guide<
> https://developer.apple.com/library/IOS/featuredarticles/ViewControllerPGforiPhoneOS/Introduction/Introduction.html
> >for
> more information on how that portion would be implemented.
>
> Hope that helps,
>
> - Lorin
>
> On Mon, Dec 2, 2013 at 9:12 AM, ZUMA <[email protected]> wrote:
>
> > Hello,
> >
> > I am trying to figure out how to load my custom view controller in my iOS
> > app within the Cordova Framework.
> >
> > For example, I want to load a custom view controller if the url that
> > cordova is trying to open contains a certain string….
> >
> > What method can I interact with to achieve this within the cordova
> > framework?
> >
> > Thank you
> >
> >
>