From 6117eaca354c40e480af9b7b53b5f9c0fac1c3ec Mon Sep 17 00:00:00 2001 From: Sean Barney Date: Thu, 3 May 2018 22:20:33 -0700 Subject: [PATCH] Fixed an issue with the SimpleAuthWebViewController that would cause the Instagram login page to render underneath the NavigationBar of the webview's UINavigationController. On some devices, this made the username field inaccessible. --- SimpleAuthInstagram/ios/SimpleAuthWebViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SimpleAuthInstagram/ios/SimpleAuthWebViewController.m b/SimpleAuthInstagram/ios/SimpleAuthWebViewController.m index 33f0ec9..3f05b68 100755 --- a/SimpleAuthInstagram/ios/SimpleAuthWebViewController.m +++ b/SimpleAuthInstagram/ios/SimpleAuthWebViewController.m @@ -26,7 +26,9 @@ @implementation SimpleAuthWebViewController { - (void)viewDidLoad { [super viewDidLoad]; - self.webView.frame = self.view.bounds; + CGFloat bottomY = CGRectGetMaxY(self.navigationController.navigationBar.frame) + [UIApplication sharedApplication].statusBarFrame.size.height; + + self.webView.frame = CGRectMake(self.view.bounds.origin.x, bottomY, self.view.bounds.size.width, self.view.bounds.size.height); [self.view addSubview:self.webView]; }