-(void) openPopUpWithUrl:(NSString*)urlString{
AppDelegate* appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
ExtraWebViewController* extraWebView = [[ExtraWebViewController alloc] init];
extraWebView.url = urlString;
[appDelegate.masterViewController presentViewController:extraWebView animated:YES completion:nil];
}
-(BOOL) webView:(WKWebView *)webView decidePolicyForNavigationAction:(NSURLRequest *)request navigationType:(WKNavigationResponsePolicy)navigationType decisionHandler:(nonnull void (^)(WKNavigationActionPolicy))decisionHandler {
if([(AKBannerWebView*)webView isFirstLoad]){
return YES;
}
else{
[self openPopUpWithUrl:[[request URL] absoluteString]];
return NO;
I want to open fullscreen with the wkwebview in the banner? objective-c