Skip to content

Commit

Permalink
Fixed an issue with the SimpleAuthWebViewController that would cause …
Browse files Browse the repository at this point in the history
…the Instagram login page to render underneath the NavigationBar of the webview's UINavigationController. On some devices, this made the username field inaccessible.
  • Loading branch information
seanbarney committed May 4, 2018
1 parent a86ab6f commit 6117eac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimpleAuthInstagram/ios/SimpleAuthWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 6117eac

Please sign in to comment.