Fix MPAppsVC pager positioning on 4".
[FIXED] Manually added pager VC added to wrong superview.
This commit is contained in:
parent
e3d8d3c31c
commit
3086baf523
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user