ios - iPad landscape right view clipped off on load -
Text after "div class =" itemprop = "text">
We just have an iOS app that launches our actual app, which opens only a web application. However, if I open the app in landscape on an iPad, then this is the correct orientation, but it clips from one third to the right of the screen. Essentially, it is establishing a landscape view in the form of a picture, then everything has moved to the left.
If I open the app in any other situation, it's okay and it switch between the original portrait or the landscape in any direction. I'm just jumping into the code and not an IOS specialist, so I am not sure about all the different things to try, but I will show the code in which I am working and whatever changes I have made.
@ Property (non-dynamic, strong) UIActivInIndicatorview * Activity Indicatorview; @property (non-dynamic, robust) UIWebView * webView; @end @implementation ViewController - (zero) viewDidoadload {[Super Viewedload]; Self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; Dispatch_async (dispatch_get_main_queue (), ^ {NSURLRequest * request = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString: portalUrl]]; _webView = [[UIWebView alloc] initWithFrame: self.view.frame]; _webView.delegate = self [_webView LoadRequest: request]; _webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight [self.view addSubview: _webView]; [self showBusyIndicator];}); } // I have tried different combinations here, and none of them help - (NSUntengar) Supported Interface Orientation {return UIInterfaceOrientationMaskAll; } - (zero) viewWillLayoutSubviews {self.view.frame = CGRectMake (0, 0, self.view.frame.size.width, self.view.frame.size.height); }
In addition, I have Plist has checked, and all the mentioned in it are listed. I know that the problem revolves around when you open in the right scenario, the picture sets the size of the screen, but I do not know the culprit.
I have been trolling the internet for a solution, but I can not find anything that fixes it (I'm probably not searching for the right thing ...) If this is useful , Then I'm testing on the 7.1 iOS iPad.
Comments
Post a Comment