Hi
I have the same issue.
I was deleting plugins from project to find out which one is making errors and I see there are problems with MobileAdvert and Share plugins.
I'm sending code from Xcode that refers to UIWebView. I hope that it will help somehow.
@implementation PACView {
UIWebView *_webView;
NSDictionary<PACFormKey, id> *_formInformation;
PACLoadCompletion _loadCompletionHandler;
}
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
self.backgroundColor = UIColor.clearColor;
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_webView = [[UIWebView alloc] initWithFrame:frame];
_webView.delegate = self;
_webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_webView.backgroundColor = UIColor.clearColor;
_webView.opaque = NO;
_webView.scrollView.bounces = NO;
[self addSubview:_webView];
}
return self;
}
#pragma mark UIWebViewDelegate
- (void)webViewDidFinishLoad:(UIWebView *)webView {
[self updateWebViewInformation];
}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
[self loadCompletedWithError:error];
}
- (BOOL)webView:(nonnull UIWebView *)webView
shouldStartLoadWithRequest:(nonnull NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType {
NSString *URLString = request.URL.absoluteString;
if (!) {
return YES;
}
- (NSString*)getIPadPopupCoordinates {
if (_popupCoordinates != nil) {
return _popupCoordinates;
}
if ([self.webView respondsToSelector:@selector(stringByEvaluatingJavaScriptFromString:)]) {
return [(UIWebView*)self.webView stringByEvaluatingJavaScriptFromString:@"window.plugins.socialsharing.iPadPopupCoordinates();"];
} else {
// prolly a wkwebview, ignoring for now
return nil;
}
}