开发者

Get url variable

开发者 https://www.devze.com 2023-03-15 01:25 出处:网络
I have a application on iPad 1 and a PDF with several links. Th开发者_如何学Ce client will click on that link and I need to get its variables values and use it on my application.

I have a application on iPad 1 and a PDF with several links.

Th开发者_如何学Ce client will click on that link and I need to get its variables values and use it on my application.

Is it possible?

Thanks in advance


Use a UIWebView and load the PDF in it. Something like this (note - it's untested but should get you on the right track!):

NSString* basePath = [[NSBundle mainBundle] bundlePath];
NSURL* baseurl = [NSURL fileURLWithPath:basePath];
[self.webView loadData:MIMEType:@"application/pdf" textEncodingName:nil baseURL:baseurl];
0

精彩评论

暂无评论...
验证码 换一张
取 消