App if you need to display PDF, Word file, at this time there is no other control, more suitable than UIWebView, which is highly abstract technical details, can be very easy to adopt
UIWebView Open File Type list
Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvehvuew4=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">
(Requires iOS3.0 system above)
You can see Excel, PPT, PDF, and word open.
Click to download the demo that opens the PDF
Add UIWebView to the interface. Gets the source file path. Open File
NSString *path = [[NSBundle mainbundle] pathforresource:@ "Swift" oftype:@ "PDF"]; Nsurl *url = [Nsurl Fileurlwithpath:path]; Nsurlrequest *re = [Nsurlrequest requestwithurl:url]; [_webview Loadrequest:re];
Effect:
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Hybrid----u use Iwebview for PDF and other documents