I have a app with storyboard and navigationViewController. On one page, i have a webView object, which contains a webshop. In this view i had to hide the top bar, because i want to use this place for my own html5-bar.
Now my question. Is it possible to trigger the (hidden) backbutton via javascript from webView?
E D I T
I tried this code from the solution-link
- (void)viewDidLoad
{
[super viewDidLoad];
[[self navigationController] setNavigationBarHidden:YES animated:YES];
[self.browser loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString:@"http://www.mywebshop.com/mobile/"]]];
}
-(void) webView:(UIWebView *)browser shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType {
if ( [[[inRequest URL] scheme] isEqualToString:@"callback"] ) {
NSLog(@"Catched Succesfull");
}
NSLog(@"NOT Catched");
}
But it catches not the event. There is no logging. Did i misunderstood something?