2
0

Fix MPAppsVC pager positioning on 4".

[FIXED]     Manually added pager VC added to wrong superview.
This commit is contained in:
Maarten Billemont 2013-08-26 23:17:02 -04:00
parent e3d8d3c31c
commit 3086baf523

View File

@ -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];