Thursday, October 8, 2026
HomeiOS Developmentios - UIWebview crashing when open pdf

ios – UIWebview crashing when open pdf

[ad_1]

I’ve an app constructed with Goal C which is crashing solely on iOS 16. iOS 15 & under is working effective.

I’m merely opening pdf hyperlink within the webview. Under is the code I’m utilizing.

NSURLRequest *requestObj = [NSURLRequest requestWithURL:[NSURL URLWithString:myUrlAsString]];
[myWebView loadRequest:requestObj];

myWebView.scalesPageToFit = YES;

myUrlAsString is holding the url of the pdf.

App is crashing with none log.

In log I’ve as under.

CoreGraphics PDF has logged an error. Set atmosphere variable “CG_PDF_VERBOSE” to be taught extra.

Additionally in crashes in debug navigator have errors as under.

JavaScriptCore libpas scavenger (9):

WebThread (10)

com.apple.NSURLConnectionLoader (11):

Thread 16: EXC_BAD_ACCESS (code=1, deal with=0x20)

Anybody can level me to the proper path why this may be occurring?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments