Note that there are some explanatory texts on larger screens.

plurals
  1. POUIWebView shifting to the right Xcode 4.6.3
    primarykey
    data
    text
    <p>Please help, Ive got a PDF in a UIWebView, it moves to the right cutting off the border and some content. Putting the device into landscape and then opening the page containing the webview/ pdf causes this to happen. This happends on device and in the simulator. Heres the code. </p> <pre><code>#import "waterTwoViewController.h" @interface waterTwoViewController () @end @implementation waterTwoViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. double screenWidth = [UIScreen mainScreen].bounds.size.width; double screenHeight = [UIScreen mainScreen].bounds.size.height; UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, screenWidth, screenHeight)]; webView.scalesPageToFit=YES; webView.contentMode = UIViewContentModeScaleToFill; webView.multipleTouchEnabled = YES; webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; [self.view addSubview:webView]; NSString *path = [[NSBundle mainBundle] pathForResource:@"WaterLineSizingValues" ofType:@"pdf"]; NSURL *targetURL = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; [webView loadRequest:request]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload