I want to display a pdf file in a UIWebView. My PDF is coming from a web service and I am able to store it in a documents directory successfully. But when I try to load the PDF url into my UIWebView, it displays a blank webview. No errors are reported.
Does anyone have an idea as to what might be going wrong here or how I can better debug this problem?
Use debugger to check the contents of
url. It should point to the exactpdflocation.Also, You can use
UIWebView‘s delegate methods:-