From 3086baf52338a7312f2edb645ce614f882dd4c46 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 26 Aug 2013 23:17:02 -0400 Subject: [PATCH] Fix MPAppsVC pager positioning on 4". [FIXED] Manually added pager VC added to wrong superview. --- MasterPassword/ObjC/iOS/MPAppsViewController.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MasterPassword/ObjC/iOS/MPAppsViewController.m b/MasterPassword/ObjC/iOS/MPAppsViewController.m index 17c23db1..d3e988d2 100644 --- a/MasterPassword/ObjC/iOS/MPAppsViewController.m +++ b/MasterPassword/ObjC/iOS/MPAppsViewController.m @@ -51,10 +51,9 @@ options:nil]; self.pageViewController.dataSource = self; self.pageViewController.delegate = self; + self.pageViewController.view.frame = CGRectFromOriginWithSize( CGPointZero, self.pagePositionView.bounds.size ); [self addChildViewController:self.pageViewController]; - [self.view addSubview:self.pageViewController.view]; - self.pageViewController.view.frame = self.pagePositionView.frame; - [self.pagePositionView removeFromSuperview]; + [self.pagePositionView addSubview:self.pageViewController.view]; [self.pageViewController didMoveToParentViewController:self]; [super viewDidLoad];