Width of PDF file is less that iPad screen, what should do?

I tried to display Pdf file in UIWebView like this: 1.Take one UIwebView (name:pdfView). 2.Give Iboutlet connection to it & Delegate it to FilesOwner 3.In Viewdidload

[self.pdfView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"ObjC" ofType:@"pdf"]]]];

4.ObjC.pdf should be in resource folder.. Its working fine but when this file displays on view in runtime on iPad it shows simulator screen on right side. Means,, pdf is by default left alinged so that in right side it shows simulator screen.


尝试

[self.pdfView setScalesPageToFit:YES];

链接地址: http://www.djcxy.com/p/72680.html

上一篇: 如何在iOS中添加UIWebView的Highcharts?

下一篇: PDF文件的宽度小于iPad屏幕,应该怎么做?