I am loading PDF from the web using the UIWebView, which works great and how I interact with PDF I want to do that,
Next I would like to be able to save that PDF from iBooks, so I am using a UID DocumentInteractionController. In reading the documents it seems that you can only use the UIDant Interaction Controller with local files instead of remote files.
My question is, is that the PDF which UI webboad load should be cached somewhere, so I actually have to make a second call to download the same file, just replace the UIDent Control Controller To be able to load as a file? Or can I somehow use the file that UIWebView is already full? You can access the data directly that UIWebView cache if you only have PDF If you want to download (which is the right way to do this), save the file locally and then load it into your UIWebView:
NSURL * url = [NSURL URLWithString: @ " Path for local file "]; NSURLRequest * urlRequest = [[NSURLRequest alloc] initWithURL: url]; [MyWebView loadRequest: urlRequest]; [UrlRequest release];
Comments
Post a Comment